source: trunk/dports/textproc/recode/Portfile

Last change on this file was 153042, checked in by ryandesign@…, 10 months ago

recode, recode-devel: fix build failure

Recent clang fails to build recode:

error: width of bit-field 'ignore' (2 bits) exceeds width of its type (1 bit)

Fixed using Debian's patch.

Resolves #52312

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 153042 2016-09-22 17:22:17Z ryandesign@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                patch-src-recodext.h.diff
33
34pre-configure {
35    xinstall -m 644 -W ${prefix}/share/libtool/build-aux config.guess config.sub ${worksrcpath}
36}
37
38configure.ldflags-append    -liconv
39
40configure.args  --infodir=${prefix}/share/info \
41                --mandir=${prefix}/share/man \
42                --without-included-gettext
43
44post-destroot {
45    delete ${destroot}${prefix}/lib/charset.alias
46    delete ${destroot}${prefix}/share/info/dir
47
48    set docdir ${prefix}/share/doc/${name}-${version}
49    xinstall -d ${destroot}${docdir}
50    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README THANKS \
51        TODO ${destroot}${docdir}
52}
53
54test.run        yes
55test.target     check
56
Note: See TracBrowser for help on using the repository browser.