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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gtk-mac-bundler |
---|
7 | version 0.7.3 |
---|
8 | set branch 0.7 |
---|
9 | categories devel |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | supported_archs noarch |
---|
13 | |
---|
14 | description Mac OS X application bundle utility |
---|
15 | |
---|
16 | long_description A utility that aids in the creation of Mac OS X \ |
---|
17 | application bundles |
---|
18 | |
---|
19 | homepage http://sourceforge.net/projects/gtk-osx |
---|
20 | |
---|
21 | #--------- |
---|
22 | # FETCHING |
---|
23 | #--------- |
---|
24 | master_sites ftp://ftp.gnome.org/pub/GNOME/sources/${name}/${branch} |
---|
25 | |
---|
26 | distfiles ${name}-${version}.tar.xz |
---|
27 | |
---|
28 | #---------------------------- |
---|
29 | # EXTRACTION AND CHECKSUMMING |
---|
30 | #---------------------------- |
---|
31 | use_xz yes |
---|
32 | |
---|
33 | checksums \ |
---|
34 | sha256 799d8d2bbd747ddddba55d32b7c9f08116e5f2b349358175b05544a4baa91365 |
---|
35 | |
---|
36 | #--------- |
---|
37 | # PATCHING |
---|
38 | #--------- |
---|
39 | patchfiles patch-bundler_py.diff \ |
---|
40 | patch-launcher_sh.diff |
---|
41 | |
---|
42 | #--------------------------- |
---|
43 | # CONFIGURATION AND BUILDING |
---|
44 | #--------------------------- |
---|
45 | use_configure no |
---|
46 | |
---|
47 | build {} |
---|
48 | |
---|
49 | #----------- |
---|
50 | # DEPLOYMENT |
---|
51 | #----------- |
---|
52 | destroot { |
---|
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 | #----------- |
---|
63 | livecheck.type regex |
---|
64 | livecheck.url [lindex ${master_sites} 0] |
---|
65 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix} |
---|