source: trunk/dports/textproc/recode-devel/Portfile @ 88963

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

recode-devel: use a distfile instead of fetching from git

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 88963 2012-01-15 09:23:39Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        pinard Recode 3.7-beta2 v
7name                recode-devel
8conflicts           recode
9categories          textproc
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://recode.progiciels-bpi.ca/
21distname            recode-${version}
22dist_subdir         recode
23
24checksums           rmd160  9d6c8d9eaf5262d5b35e7bef3fbaba223cd4f871 \
25                    sha256  ba3eec3e6a223b84c7f0d3e177ef62d12c65e90323e8691b45a41e350017e528
26
27depends_lib         port:libtool port:gettext port:libiconv
28
29# src/libiconv.c patch from Debian,
30# http://packages.debian.org/stable/text/recode
31# patchfiles          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 \
42                    -lintl -liconv
43
44configure.args      --infodir=${prefix}/share/info \
45                    --mandir=${prefix}/share/man \
46                    --with-libiconv-prefix=${prefix} \
47                    --with-libintl-prefix=${prefix}
48
49post-destroot {
50    set docdir ${prefix}/share/doc/${name}-${version}
51    xinstall -d ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README THANKS \
53        TODO ${destroot}${docdir}
54}
55
56test.run        yes
57test.target     check
Note: See TracBrowser for help on using the repository browser.