source: trunk/dports/java/unicodeconverter-java/Portfile

Last change on this file was 137842, checked in by larryv@…, 2 years ago

Delete "unicode" category

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 137842 2015-06-21 06:04:28Z ryandesign@macports.org $
2
3PortSystem                      1.0
4name                            unicodeconverter-java
5version                         2.0
6categories                      java textproc
7maintainers                     nomaintainer
8description                     Convert various encodings to UTF-8
9long_description \
10        UnicodeConverter is a Java program that converts text and HTML files in \
11        VNI, VISCII, VPS, TCVN, or VIQR/Vietnet format to Unicode UTF-8. The \
12        program, executable in both graphic user interface (GUI) and command-line \
13        modes, is capable of converting multiple files in a directory, or an \
14        entire directory, including its subdirectories. In effect, this enhanced \
15        capability enables conversion of an entire website to Unicode UTF-8 \
16        format with one single command or a few mouse clicks.
17
18platforms                       darwin
19
20homepage                        http://unicodeconvert.sourceforge.net/
21master_sites            sourceforge:unicodeconvert
22distname                        UnicodeConverter-${version}
23use_zip                         yes
24
25worksrcdir                      UnicodeConverter
26
27checksums                       sha1    606f0cea9bdeb47e65229f34c0c139a9ad72e807 \
28                                        rmd160  d48b4ac4f2e19393e027b302f8eb044c36c13436
29
30depends_lib                     bin:java:kaffe
31
32post-patch {
33        reinplace "s|^PROGDIR=.*|PROGDIR=\"${prefix}/share/java\"|" \
34                ${worksrcpath}/Uni
35}
36
37use_configure           no
38
39build                           {}
40
41destroot {
42        xinstall -m 755 -d ${destroot}${prefix}/share/java \
43                ${destroot}${prefix}/share/doc/${name}
44        xinstall -m 755 -W ${worksrcpath} Uni ${destroot}${prefix}/bin
45        xinstall -m 644 -W ${worksrcpath} UnicodeConverter.jar ${destroot}${prefix}/share/java
46        xinstall -m 644 -W ${worksrcpath} readme.html versionchanges.html \
47                ${destroot}${prefix}/share/doc/${name}
48}
49
50platform darwin {
51        # Build a nice .app
52        post-destroot {
53                set ucAppPath ${destroot}${applications_dir}/UnicodeConverter.app
54                # Build paths
55                xinstall -m 755 -d ${ucAppPath}/Contents/Resources/Java \
56                        ${ucAppPath}/Contents/MacOS
57                # Copy basic package information
58                xinstall -m 644 -W ${filespath} Info.plist PkgInfo \
59                        ${ucAppPath}/Contents
60                # Set version correctly in Info.plist
61                reinplace "s|@@VERSION@@|${version}|g" ${ucAppPath}/Contents/Info.plist
62                # Copy the jar into the right place
63                xinstall -m 644 -W ${worksrcpath} UnicodeConverter.jar \
64                        ${ucAppPath}/Contents/Resources/Java
65                # Copy the stub app
66                xinstall -m 755 "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub" \
67                        ${ucAppPath}/Contents/MacOS
68                # If Jar Bundler is installed, we can grab the generic icon
69                set javaGenericIcon "/Developer/Applications/Java Tools/Jar Bundler.app/Contents/Resources/GenericJavaApp.icns"
70                if {[file exists ${javaGenericIcon}]} {
71                        xinstall -m 644 ${javaGenericIcon} ${ucAppPath}/Contents/Resources
72                }
73        }
74}
Note: See TracBrowser for help on using the repository browser.