From: | "Sergey Popov (pinkbyte)" <pinkbyte@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-misc/pythoncad: ChangeLog pythoncad-1.37-r1.ebuild |
Date: | Sat, 01 Jun 2013 22:28:51 |
Message-Id: | 20130601222848.80A6D2171D@flycatcher.gentoo.org |
1 | pinkbyte 13/06/01 22:28:48 |
2 | |
3 | Modified: ChangeLog |
4 | Added: pythoncad-1.37-r1.ebuild |
5 | Log: |
6 | Revision bump: EAPI 5 and distutils-r1 eclass |
7 | |
8 | (Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
9 | |
10 | Revision Changes Path |
11 | 1.9 sci-misc/pythoncad/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/pythoncad/ChangeLog?rev=1.9&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/pythoncad/ChangeLog?rev=1.9&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/pythoncad/ChangeLog?r1=1.8&r2=1.9 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/ChangeLog,v |
20 | retrieving revision 1.8 |
21 | retrieving revision 1.9 |
22 | diff -u -r1.8 -r1.9 |
23 | --- ChangeLog 1 Jun 2013 21:21:50 -0000 1.8 |
24 | +++ ChangeLog 1 Jun 2013 22:28:48 -0000 1.9 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sci-misc/pythoncad |
27 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/ChangeLog,v 1.8 2013/06/01 21:21:50 pinkbyte Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/ChangeLog,v 1.9 2013/06/01 22:28:48 pinkbyte Exp $ |
30 | + |
31 | +*pythoncad-1.37-r1 (01 Jun 2013) |
32 | + |
33 | + 01 Jun 2013; Sergey Popov <pinkbyte@g.o> +pythoncad-1.37-r1.ebuild: |
34 | + Revision bump: EAPI 5 and distutils-r1 eclass |
35 | |
36 | 01 Jun 2013; Sergey Popov <pinkbyte@g.o> pythoncad-1.37.ebuild: |
37 | Change HOMEPAGE, wrt bug #460330 |
38 | |
39 | |
40 | |
41 | 1.1 sci-misc/pythoncad/pythoncad-1.37-r1.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: pythoncad-1.37-r1.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2013 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild,v 1.1 2013/06/01 22:28:48 pinkbyte Exp $ |
51 | |
52 | EAPI="5" |
53 | |
54 | PYTHON_COMPAT=( python2_{6,7} ) |
55 | inherit eutils distutils-r1 versionator |
56 | |
57 | MY_PN="PythonCAD" |
58 | MY_PV="DS$(get_major_version)-R$(get_after_major_version)" |
59 | MY_P="${MY_PN}-${MY_PV}" |
60 | |
61 | DESCRIPTION="CAD program written in PyGTK" |
62 | HOMEPAGE="http://sourceforge.net/projects/pythoncad" |
63 | SRC_URI="mirror://sourceforge/pythoncad/${MY_P}.tar.gz" |
64 | |
65 | LICENSE="GPL-2" |
66 | SLOT="0" |
67 | KEYWORDS="~amd64 ~x86" |
68 | |
69 | RDEPEND="dev-python/pygtk:2[${PYTHON_USEDEP}]" |
70 | DEPEND="" |
71 | |
72 | S="${WORKDIR}/${MY_P}" |
73 | |
74 | PATCHES=( "${FILESDIR}/${P}-png.patch" ) |
75 | |
76 | python_prepare_all() { |
77 | distutils-r1_python_prepare_all |
78 | sed -i \ |
79 | -e "s/gtkpycad.png/pythoncad.png/" \ |
80 | -e "s/gtkpycad.py/pythoncad/" \ |
81 | "${PN}.desktop" || die "sed failed" |
82 | } |
83 | |
84 | python_install() { |
85 | distutils-r1_python_install |
86 | python_newscript gtkpycad.py pythoncad |
87 | } |
88 | |
89 | src_install() { |
90 | distutils-r1_src_install |
91 | |
92 | insinto /etc/"${PN}" |
93 | doins prefs.py |
94 | domenu "${PN}".desktop |
95 | newicon gtkpycad.png "${PN}".png |
96 | } |