diff --git a/srcpkgs/py3gobject b/srcpkgs/py3gobject deleted file mode 120000 index 3ce0c70e559..00000000000 --- a/srcpkgs/py3gobject +++ /dev/null @@ -1 +0,0 @@ -pygobject \ No newline at end of file diff --git a/srcpkgs/pygobject-devel b/srcpkgs/pygobject-devel deleted file mode 120000 index 3ce0c70e559..00000000000 --- a/srcpkgs/pygobject-devel +++ /dev/null @@ -1 +0,0 @@ -pygobject \ No newline at end of file diff --git a/srcpkgs/pygobject/template b/srcpkgs/pygobject/template deleted file mode 100644 index c31d5d04310..00000000000 --- a/srcpkgs/pygobject/template +++ /dev/null @@ -1,69 +0,0 @@ -# Template file for 'pygobject' -pkgname=pygobject -version=3.12.1 -revision=1 -hostmakedepends="which pkg-config gobject-introspection>=1.38" -makedepends="py2cairo-devel>=1.10.0_2 pycairo-devel>=1.10.0_3 libglib-devel" -depends="py2cairo>=1.10.0_2" -pycompile_module="gi pygtkcompat" -short_desc="Python bindings for GObject" -homepage="http://www.pygtk.org/" -license="LGPL-2.1" -distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" -maintainer="Juan RP " -checksum=da5fe04759e862d347b26b53a6aea0affa7cbe858b7004475fa8c7929496da35 - -do_configure() { - # python2 - mkdir ${wrksrc}/build-python2 - cd ${wrksrc}/build-python2 - ../configure ${configure_args} --with-python=/usr/bin/python - - # python3 - mkdir ${wrksrc}/build-python3 - cd ${wrksrc}/build-python3 - ../configure ${configure_args} --with-python=/usr/bin/python3 -} - -do_build() { - # python2 - cd ${wrksrc}/build-python3 - make ${makejobs} - - # python3 - cd ${wrksrc}/build-python3 - make ${makejobs} -} - -do_install() { - # python2 - cd ${wrksrc}/build-python2 - make DESTDIR=${DESTDIR} install - - # python3 - cd ${wrksrc}/build-python3 - make DESTDIR=${DESTDIR}/python3 install -} - -py3gobject_package() { - short_desc="Python3 bindings for GObject" - depends="pycairo>=1.10.0_2" - pkg_install() { - vmkdir usr/lib - mv ${DESTDIR}/python3/usr/lib/python* ${PKGDESTDIR}/usr/lib - } -} - -pygobject-devel_package() { - depends="libgirepository-devel - py2cairo-devel>=1.10.0_2 - pycairo-devel>=1.10.0_2 - py3gobject>=${version}_${revision} - pygobject>=${version}_${revision}" - short_desc+=" - development files" - pkg_install() { - vmove usr/include - vmove usr/lib/pkgconfig - rm -rf ${DESTDIR}/python3 - } -} diff --git a/srcpkgs/python-gobject-devel b/srcpkgs/python-gobject-devel new file mode 120000 index 00000000000..4af4eca5908 --- /dev/null +++ b/srcpkgs/python-gobject-devel @@ -0,0 +1 @@ +python-gobject \ No newline at end of file diff --git a/srcpkgs/python-gobject/template b/srcpkgs/python-gobject/template new file mode 100644 index 00000000000..ad8fd851edb --- /dev/null +++ b/srcpkgs/python-gobject/template @@ -0,0 +1,74 @@ +# Template file for 'python-gobject' +pkgname=python-gobject +version=3.12.1 +revision=2 +wrksrc="pygobject-${version}" +hostmakedepends="which pkg-config gobject-introspection>=1.38" +makedepends="python-cairo-devel>=1.10.0_2 python3.4-cairo-devel>=1.10.0_3 + libglib-devel" +depends="python-cairo>=1.10.0_2" +replaces="pygobject>=0" +pycompile_module="gi pygtkcompat" +short_desc="Python2 bindings for GObject" +homepage="https://live.gnome.org/PyGObject" +license="LGPL-2.1" +distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz" +maintainer="Juan RP " +checksum=da5fe04759e862d347b26b53a6aea0affa7cbe858b7004475fa8c7929496da35 + +do_configure() { + # python2 + mkdir ${wrksrc}/build-python2 + cd ${wrksrc}/build-python2 + ../configure ${configure_args} --with-python=/usr/bin/python + + # python3.4 + mkdir ${wrksrc}/build-python3.4 + cd ${wrksrc}/build-python3.4 + ../configure ${configure_args} --with-python=/usr/bin/python3.4 +} + +do_build() { + # python2 + cd ${wrksrc}/build-python2 + make ${makejobs} + + # python3.4 + cd ${wrksrc}/build-python3.4 + make ${makejobs} +} + +do_install() { + # python2 + cd ${wrksrc}/build-python2 + make DESTDIR=${DESTDIR} install + + # python3.4 + cd ${wrksrc}/build-python3.4 + make DESTDIR=${DESTDIR} install +} + +python3.4-gobject_package() { + depends="python3.4-cairo>=1.10.0_2" + replaces="py3gobject>=0" + short_desc="Python3.4 bindings for GObject" + pkg_install() { + vmkdir usr/lib + mv ${DESTDIR}/usr/lib/python3.4 ${PKGDESTDIR}/usr/lib + } +} + +python-gobject-devel_package() { + depends="libgirepository-devel + python-cairo-devel>=1.10.0_2 + python3.4-cairo-devel>=1.10.0_2 + python-gobject>=${version}_${revision} + python3.4-gobject>=${version}_${revision}" + replaces="pygobject-devel>=0" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + rm -rf ${DESTDIR}/python3.4 + } +} diff --git a/srcpkgs/python3.4-gobject b/srcpkgs/python3.4-gobject new file mode 120000 index 00000000000..4af4eca5908 --- /dev/null +++ b/srcpkgs/python3.4-gobject @@ -0,0 +1 @@ +python-gobject \ No newline at end of file