[100335] trunk/dports/python
g5pw at macports.org
g5pw at macports.org
Sat Dec 8 09:43:08 PST 2012
Revision: 100335
https://trac.macports.org/changeset/100335
Author: g5pw at macports.org
Date: 2012-12-08 09:43:08 -0800 (Sat, 08 Dec 2012)
Log Message:
-----------
python/py-pygtk:
unify portfile
add quartz and x11 variants
python/py-2?-gtk:
mark as replaced_by
Modified Paths:
--------------
trunk/dports/python/py-pygtk/Portfile
trunk/dports/python/py25-gtk/Portfile
trunk/dports/python/py26-gtk/Portfile
trunk/dports/python/py27-gtk/Portfile
Modified: trunk/dports/python/py-pygtk/Portfile
===================================================================
--- trunk/dports/python/py-pygtk/Portfile 2012-12-08 17:39:37 UTC (rev 100334)
+++ trunk/dports/python/py-pygtk/Portfile 2012-12-08 17:43:08 UTC (rev 100335)
@@ -1,56 +1,96 @@
# $Id$
PortSystem 1.0
+PortGroup python 1.0
+PortGroup active_variants 1.1
-name py-gtk2
set my_name pygtk
-version 2.12.1
-revision 2
+name py-${my_name}
+version 2.22.0
set branch [join [lrange [split ${version} .] 0 1] .]
-categories python x11
+
+python.versions 25 26 27
+
+categories-append \
+ x11
+
license LGPL-2.1+
maintainers nomaintainer
platforms darwin
description PyGTK is the Python binding to GTK+ 2.x
long_description \
- PyGTK contains modules that allow you to use gtk in Python programs. \
- At present, it is a fairly complete set of bindings.
+ PyGTK contains modules that allow you to use gtk in Python programs. \
+ At present, it is a fairly complete set of bindings.
homepage http://www.pygtk.org/
master_sites gnome:sources/${my_name}/${branch}/
distname ${my_name}-${version}
use_bzip2 yes
-checksums md5 a816346d750d61e3fa67a200e4292694 \
- sha1 7a7d095f53829895174640d693c4e4af16122d98 \
- rmd160 c368deab52524248593b77984e93f18150efa0f4
+checksums md5 e9bba9cd4cdaccb22a7991cc2f7c8373 \
+ sha1 6a180d0c9ed19179662f51decb150b2c98cc9362 \
+ rmd160 98fb89d32f36c97cc51bf4eb1aa38699bf010c8e
-depends_build port:pkgconfig
-depends_lib port:python24 \
- port:atk \
- port:gtk2 \
- port:libglade2 \
- port:py-cairo \
- port:py-gobject \
- port:py24-numpy
+build.cmd make
+build.target all
-configure.args --disable-glibtest
+destroot.cmd make
-# needed to find Python pkg-config files
-set python_prefix ${frameworks_dir}/Python.framework/Versions/2.4
-configure.pkg_config_path ${python_prefix}/lib/pkgconfig
+if {${name} != ${subport}} {
+ depends_build-append \
+ port:pkgconfig
+ depends_lib-append \
+ port:atk \
+ port:gtk2 \
+ port:libglade2 \
+ port:py${python.version}-cairo \
+ port:py${python.version}-gobject \
+ port:py${python.version}-numpy
-configure.python ${prefix}/bin/python2.4
+ use_configure yes
+ configure.pre_args-delete --prefix=${prefix}
+ configure.pre_args-append --prefix=${python.prefix}
+ configure.pkg_config_path ${python.prefix}/lib/pkgconfig
+
+ platform darwin 9 {
+ post-patch {
+ reinplace "s| -export-symbols-regex.*||g" \
+ ${worksrcpath}/Makefile.in \
+ ${worksrcpath}/gtk/Makefile.in
+ }
+ }
-platform darwin 9 {
- post-patch {
- reinplace "s| -export-symbols-regex.*||g" \
- ${worksrcpath}/Makefile.in \
- ${worksrcpath}/gtk/Makefile.in
- }
-}
+ destroot.destdir "DESTDIR=${destroot}"
-livecheck.type regex
-livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
-livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
+ post-destroot {
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
+ ${destroot}${docdir}
+ xinstall -d ${destroot}${prefix}/share/gtk-doc/html
+ file link -symbolic ${destroot}${prefix}/share/${my_name}${python.branch} \
+ ../Library/Frameworks/Python.framework/Versions/${python.branch}/share/${my_name}
+ # devhelp requires gtk-doc directory name and .devhelp file name (less the .devhelp) to match
+ file rename ${destroot}${python.prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \
+ ${destroot}${python.prefix}/share/gtk-doc/html/${my_name}/${my_name}${python.branch}.devhelp
+ file link -symbolic ${destroot}${prefix}/share/gtk-doc/html/${my_name}${python.branch} \
+ ${python.prefix}/share/gtk-doc/html/${my_name}
+ }
+
+ variant quartz conflicts x11 {
+ require_active_variants gtk2 quartz
+ }
+ variant x11 conflicts quartz {
+ require_active_variants gtk2 x11
+ }
+ if {![variant_isset x11] && ![variant_isset quartz]} {
+ default_variants +x11
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
+ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
+}
Modified: trunk/dports/python/py25-gtk/Portfile
===================================================================
--- trunk/dports/python/py25-gtk/Portfile 2012-12-08 17:39:37 UTC (rev 100334)
+++ trunk/dports/python/py25-gtk/Portfile 2012-12-08 17:43:08 UTC (rev 100335)
@@ -4,10 +4,8 @@
PortSystem 1.0
name py25-gtk
-set my_name pygtk
version 2.22.0
revision 3
-set branch [join [lrange [split ${version} .] 0 1] .]
categories python x11
license LGPL-2.1+
platforms darwin
@@ -19,39 +17,14 @@
At present, it is a fairly complete set of bindings.
homepage http://www.pygtk.org/
-master_sites gnome:sources/${my_name}/${branch}/
-distname ${my_name}-${version}
-use_bzip2 yes
-checksums md5 e9bba9cd4cdaccb22a7991cc2f7c8373 \
- sha1 6a180d0c9ed19179662f51decb150b2c98cc9362 \
- rmd160 98fb89d32f36c97cc51bf4eb1aa38699bf010c8e
+distfiles
-depends_build port:pkgconfig
-depends_lib port:python25 \
- port:atk \
- port:gtk2 \
- port:libglade2 \
- port:py25-cairo \
- port:py25-gobject \
- port:py25-numpy
+replaced_by py25-gtk2
-set python_prefix ${frameworks_dir}/Python.framework/Versions/2.5
+pre-configure {
+ ui_error "${name} has been replaced by ${replaced_by}; please install that port instead"
+ return -code error "obsolete port"
+}
-configure.args --disable-glibtest
-# needed to find Python pkg-config files
-configure.pkg_config_path ${python_prefix}/lib/pkgconfig
-
-configure.python ${prefix}/bin/python2.5
-
-platform darwin 9 {
- post-patch {
- reinplace "s| -export-symbols-regex.*||g" \
- ${worksrcpath}/Makefile.in \
- ${worksrcpath}/gtk/Makefile.in
- }
-}
-
-livecheck.type regex
-livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
-livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
+livecheck.type none
Modified: trunk/dports/python/py26-gtk/Portfile
===================================================================
--- trunk/dports/python/py26-gtk/Portfile 2012-12-08 17:39:37 UTC (rev 100334)
+++ trunk/dports/python/py26-gtk/Portfile 2012-12-08 17:43:08 UTC (rev 100335)
@@ -4,10 +4,8 @@
PortSystem 1.0
name py26-gtk
-set my_name pygtk
version 2.22.0
revision 3
-set branch [join [lrange [split ${version} .] 0 1] .]
categories python x11
platforms darwin
license LGPL-2.1+
@@ -19,53 +17,13 @@
At present, it is a fairly complete set of bindings.
homepage http://www.pygtk.org/
-master_sites gnome:sources/${my_name}/${branch}/
-distname ${my_name}-${version}
-use_bzip2 yes
+distfiles
-checksums md5 e9bba9cd4cdaccb22a7991cc2f7c8373 \
- sha1 6a180d0c9ed19179662f51decb150b2c98cc9362 \
- rmd160 98fb89d32f36c97cc51bf4eb1aa38699bf010c8e
+replaced_by py26-gtk2
-depends_build port:pkgconfig
-depends_lib port:python26 \
- port:atk \
- port:gtk2 \
- port:libglade2 \
- port:py26-cairo \
- port:py26-gobject \
- port:py26-numpy
-
-set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
-
-configure.pre_args-delete --prefix=${prefix}
-configure.pre_args-append --prefix=${python_prefix}
-configure.args-append --includedir=${python_prefix}/include/python2.6
-configure.pkg_config_path ${python_prefix}/lib/pkgconfig
-
-configure.python ${prefix}/bin/python2.6
-
-platform darwin 9 {
- post-patch {
- reinplace "s| -export-symbols-regex.*||g" \
- ${worksrcpath}/Makefile.in \
- ${worksrcpath}/gtk/Makefile.in
- }
+pre-configure {
+ ui_error "${name} has been replaced by ${replaced_by}; please install that port instead"
+ return -code error "obsolete port"
}
-post-destroot {
- set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}
- xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
- ${destroot}${docdir}
- xinstall -d ${destroot}${prefix}/share/gtk-doc/html
- system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26"
-# devhelp requires gtk-doc directory name and .devhelp file name (less the .devhelp) to match
- file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \
- ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}26.devhelp
- system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26"
-}
-
-livecheck.type regex
-livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
-livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
+livecheck.type none
Modified: trunk/dports/python/py27-gtk/Portfile
===================================================================
--- trunk/dports/python/py27-gtk/Portfile 2012-12-08 17:39:37 UTC (rev 100334)
+++ trunk/dports/python/py27-gtk/Portfile 2012-12-08 17:43:08 UTC (rev 100335)
@@ -4,10 +4,8 @@
PortSystem 1.0
name py27-gtk
-set my_name pygtk
version 2.22.0
revision 3
-set branch [join [lrange [split ${version} .] 0 1] .]
categories python x11
license LGPL-2.1+
platforms darwin
@@ -19,59 +17,15 @@
At present, it is a fairly complete set of bindings.
homepage http://www.pygtk.org/
-master_sites gnome:sources/${my_name}/${branch}/
-distname ${my_name}-${version}
-use_bzip2 yes
-checksums md5 e9bba9cd4cdaccb22a7991cc2f7c8373 \
- sha1 6a180d0c9ed19179662f51decb150b2c98cc9362 \
- rmd160 98fb89d32f36c97cc51bf4eb1aa38699bf010c8e
+distfiles
-depends_build-append path:bin/pkg-config:pkgconfig
-depends_lib-append port:python27 \
- port:atk \
- port:gtk2 \
- port:libglade2 \
- port:py27-cairo \
- port:py27-gobject \
- port:py27-numpy
+replaced_by py27-gtk2
-set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
-
-configure.pre_args-delete --prefix=${prefix}
-configure.pre_args-append --prefix=${python_prefix}
-configure.args-append --includedir=${python_prefix}/include/python2.7
-configure.pkg_config_path ${python_prefix}/lib/pkgconfig
-
-configure.python ${prefix}/bin/python2.7
-
-platform darwin 9 {
- post-patch {
- reinplace "s| -export-symbols-regex.*||g" \
- ${worksrcpath}/Makefile.in \
- ${worksrcpath}/gtk/Makefile.in
- }
+pre-configure {
+ ui_error "${name} has been replaced by ${replaced_by}; please install that port instead"
+ return -code error "obsolete port"
}
-post-destroot {
- set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}
- xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
- ${destroot}${docdir}
- xinstall -d ${destroot}${prefix}/share/gtk-doc/html
- system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}27"
-# devhelp requires gtk-doc directory name and .devhelp file name (less the .devhelp) to match
- file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \
- ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}27.devhelp
- system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}27"
-}
-variant quartz conflicts x11 {}
-variant x11 conflicts quartz {}
-if {![variant_isset x11] && ![variant_isset quartz]} {
- default_variants +x11
-}
-
-livecheck.type regex
-livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
-livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121208/ac509027/attachment-0001.html>
More information about the macports-changes
mailing list