Ticket #42027: Portfile

File Portfile, 2.0 KB (added by t.tensi@…, 11 years ago)

revised 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: Portfile 74670 2010-12-27 18:20:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gtk-mac-bundler
7version             0.7.3
8set branch          0.7
9categories          devel
10platforms           darwin
11maintainers         nomaintainer
12supported_archs     noarch
13
14description         Mac OS X application bundle utility
15
16long_description    A utility that aids in the creation of Mac OS X \
17                    application bundles
18
19homepage            http://sourceforge.net/projects/gtk-osx
20
21#---------
22# FETCHING
23#---------
24master_sites        ftp://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}
25
26distfiles           ${name}-${version}.tar.xz
27
28#----------------------------
29# EXTRACTION AND CHECKSUMMING
30#----------------------------
31use_xz yes
32
33checksums \
34    sha256 799d8d2bbd747ddddba55d32b7c9f08116e5f2b349358175b05544a4baa91365
35
36#---------
37# PATCHING
38#---------
39patchfiles          patch-bundler_py.diff \
40                    patch-launcher_sh.diff
41
42#---------------------------
43# CONFIGURATION AND BUILDING
44#---------------------------
45use_configure       no
46
47build {}
48
49#-----------
50# DEPLOYMENT
51#-----------
52destroot {
53    reinplace "s|python|python2.7|g" ${worksrcpath}/gtk-mac-bundler.in
54    reinplace "s|@PATH@|${prefix}/Library/Framework/Python.framework/Version/2.7/lib/site-packages|g" ${worksrcpath}/gtk-mac-bundler.in
55    xinstall -m 755 -d ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
56    copy ${worksrcpath}/bundler ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
57    exec make -C ${worksrcpath} bindir=${destroot}${prefix}/bin install
58}
59
60#-----------
61# LIVECHECK
62#-----------
63livecheck.type      regex
64livecheck.url       [lindex ${master_sites} 0]
65livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}