source: trunk/dports/textproc/recode/Portfile @ 93362

Last change on this file since 93362 was 93362, checked in by jmr@…, 8 years ago

recode: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 93362 2012-05-20 22:47:01Z jmr@macports.org $
2
3PortSystem      1.0
4
5name            recode
6version         3.6
7revision        3
8categories      textproc
9license         GPL-2+
10maintainers     nomaintainer
11platforms       darwin
12description     charset conversion program
13
14long_description \
15        This recode program has the purpose of converting files between \
16        various character sets and usages. When exact transliterations \
17        are not possible, as it is often the case, the program may get \
18        rid of the offending characters or fall back on approximations.
19
20homepage        http://www.gnu.org/software/recode/
21master_sites    gnu
22
23checksums       md5 be3f40ad2e93dae5cd5f628264bf1877 \
24                sha1 2de90cd2ba553bc07d75a29913ea4424dd9e616b \
25                rmd160 97dcb2544472c9025689452a94bed98ea36374b5
26
27depends_lib     port:libtool port:gettext
28
29# src/libiconv.c patch from Debian,
30# http://packages.debian.org/stable/text/recode
31patchfiles      patch-lib_Makefile.in.diff patch-src_libiconv.c.diff
32
33pre-configure {
34    if {[file exists ${prefix}/share/libtool/config/config.guess]} {
35        copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${worksrcpath}
36    } else {
37        copy -force ${prefix}/share/libtool/config.guess ${prefix}/share/libtool/config.sub ${worksrcpath}
38    }
39}
40
41configure.ldflags-append    -liconv
42
43configure.args  --infodir=${prefix}/share/info \
44                --mandir=${prefix}/share/man \
45                --without-included-gettext
46
47post-destroot {
48    delete ${destroot}${prefix}/lib/charset.alias
49    delete ${destroot}${prefix}/share/info/dir
50
51    set docdir ${prefix}/share/doc/${name}-${version}
52    xinstall -d ${destroot}${docdir}
53    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README THANKS \
54        TODO ${destroot}${docdir}
55}
56
57test.run        yes
58test.target     check
59
Note: See TracBrowser for help on using the repository browser.