diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-06-01 22:28:48 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-06-01 22:28:48 +0000 |
commit | 04d24ad8576b604b2cfc35951f9a03261c27a227 (patch) | |
tree | ecc72a4c7e0ffa4cfb142eac829417953cd1a8e5 /sci-misc | |
parent | Version bump. (diff) | |
download | gentoo-2-04d24ad8576b604b2cfc35951f9a03261c27a227.tar.gz gentoo-2-04d24ad8576b604b2cfc35951f9a03261c27a227.tar.bz2 gentoo-2-04d24ad8576b604b2cfc35951f9a03261c27a227.zip |
Revision bump: EAPI 5 and distutils-r1 eclass
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/pythoncad/ChangeLog | 7 | ||||
-rw-r--r-- | sci-misc/pythoncad/pythoncad-1.37-r1.ebuild | 49 |
2 files changed, 55 insertions, 1 deletions
diff --git a/sci-misc/pythoncad/ChangeLog b/sci-misc/pythoncad/ChangeLog index 5982dbd52661..06f06200aa10 100644 --- a/sci-misc/pythoncad/ChangeLog +++ b/sci-misc/pythoncad/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-misc/pythoncad # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/ChangeLog,v 1.8 2013/06/01 21:21:50 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/ChangeLog,v 1.9 2013/06/01 22:28:48 pinkbyte Exp $ + +*pythoncad-1.37-r1 (01 Jun 2013) + + 01 Jun 2013; Sergey Popov <pinkbyte@gentoo.org> +pythoncad-1.37-r1.ebuild: + Revision bump: EAPI 5 and distutils-r1 eclass 01 Jun 2013; Sergey Popov <pinkbyte@gentoo.org> pythoncad-1.37.ebuild: Change HOMEPAGE, wrt bug #460330 diff --git a/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild new file mode 100644 index 000000000000..593a5eda6d27 --- /dev/null +++ b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild,v 1.1 2013/06/01 22:28:48 pinkbyte Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python2_{6,7} ) +inherit eutils distutils-r1 versionator + +MY_PN="PythonCAD" +MY_PV="DS$(get_major_version)-R$(get_after_major_version)" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="CAD program written in PyGTK" +HOMEPAGE="http://sourceforge.net/projects/pythoncad" +SRC_URI="mirror://sourceforge/pythoncad/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-python/pygtk:2[${PYTHON_USEDEP}]" +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/${P}-png.patch" ) + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -i \ + -e "s/gtkpycad.png/pythoncad.png/" \ + -e "s/gtkpycad.py/pythoncad/" \ + "${PN}.desktop" || die "sed failed" +} + +python_install() { + distutils-r1_python_install + python_newscript gtkpycad.py pythoncad +} + +src_install() { + distutils-r1_src_install + + insinto /etc/"${PN}" + doins prefs.py + domenu "${PN}".desktop + newicon gtkpycad.png "${PN}".png +} |