Ticket #38264: Portfile.2

File Portfile.2, 2.1 KB (added by cooljeanius (Eric Gallager), 11 years ago)

New portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem           1.0
5
6name                 gcab
7version              0.4
8set branch           [join [lrange [split ${version} .] 0 1] .]
9categories           gnome devel
10platforms            darwin
11maintainers          gwmail.gwu.edu:egall openmaintainer
12license              LGPL-2.1+
13
14description          ${name} is a program to create Microsoft cabinet (.cab) archives
15
16long_description     ${description}. It also provides a gobject-introspection interface.
17
18homepage
19master_sites         gnome:sources/${name}/${branch}/
20
21checksums            md5     27c9f182bd279bedae3ba2fc5734c651 \
22                     sha     d81dfe35125e611e3a94c0d4def37ebf62b9187c \
23                     rmd160  00426e186ff7920dcf55ad3a2b544d396cbeac29 \
24                     sha256  f907b16f1246fbde9397363d9c4ad2291f2a8a53dcd4f5979d3912bb856991b8
25
26use_xz               yes
27depends_build-append port:pkgconfig \
28                     port:valabind \
29                     port:intltool
30post-patch {
31    reinplace "s|m4\_esyscmd\(build-aux\/git-version-gen\ \.tarball-version\)|${version}|" ${worksrcpath}/configure.ac
32    reinplace "s|\,\-\-version\-script\=\$\{srcdir\}\/libgcab\.syms||" ${worksrcpath}/Makefile.am
33}
34pre-configure {
35    system -W ${worksrcpath} "autoupdate -f"
36    reinplace "s|m4\_esyscmd\(build-aux\/git-version-gen\ \.tarball-version\)|${version}|" ${worksrcpath}/configure.ac
37}
38use_autoreconf       yes
39autoreconf.args      -fvi
40depends_lib-append   path:lib/pkgconfig/glib-2.0.pc:glib2 \
41                     port:zlib \
42                     port:gettext \
43                     port:libffi \
44                     port:libiconv \
45                     port:vala \
46                     port:gobject-introspection
47
48configure.ldflags-delete --version-script=./libgcab.syms
49configure.args-append    --disable-gtk-doc
50
51variant docs description {Builds documentation} {
52    depends_build-append port:gtk-doc
53    configure.args-delete --disable-gtk-doc
54    configure.args-append --enable-gtk-doc
55}