Ticket #42766: Portfile

File Portfile, 1.9 KB (added by gellule.xg@…, 10 years ago)
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 117512 2014-03-07 12:07:34Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        jralls gtk-mac-bundler bundler-0.7.3
8
9name                gtk-mac-bundler
10version             0.7.3
11revision            1
12categories          devel
13license             GPL-2
14platforms           darwin
15maintainers         openmaintainer \
16                    gmail.com:gellule.xg
17supported_archs     noarch
18
19description         Mac OS X application bundle utility
20
21long_description    A utility that aids in the creation of Mac OS X \
22                    application bundles
23
24#---------
25# CHECKSUM
26#---------
27checksums           rmd160  d7773e2394ea46c70510e7481a390db19fca937e \
28                    sha256  f35828c539879bab3d00d53f9c05bbad739756ba733afcfd61ee7e8e3b49d339
29
30#---------
31# PATCHING
32#---------
33# Note: patch-0.73_2014.02.24.diff brings 0.7.3 to commit dated 2014.02.24, remove on next release version
34patchfiles          patch-0.7.3_2014.02.24.diff \
35                    patch-bundler_py.diff \
36                    patch-launcher_sh.diff
37
38#---------------------------
39# CONFIGURATION AND BUILDING
40#---------------------------
41use_configure       no
42
43build {}
44
45#-----------
46# DEPLOYMENT
47#-----------
48pre-destroot {
49    reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|g" ${worksrcpath}/gtk-mac-bundler.in
50    reinplace "s|@PATH@|${prefix}/Library/Framework/Python.framework/Version/2.7/lib/site-packages|g" ${worksrcpath}/gtk-mac-bundler.in
51    xinstall -m 755 -d ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
52    copy ${worksrcpath}/bundler ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
53}
54destroot.args       bindir=${destroot}${prefix}/bin