/[gentoo-x86]/sci-misc/pythoncad/pythoncad-1.37.ebuild
Gentoo

Contents of /sci-misc/pythoncad/pythoncad-1.37.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 2 21:23:21 2011 UTC (3 years, 4 months ago) by jlec
Branch: MAIN
Changes since 1.2: +3 -3 lines
Correct Slots for gtk 3 introduction to tree

(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/pythoncad/pythoncad-1.37.ebuild,v 1.2 2010/07/06 14:56:37 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
9
10 inherit eutils distutils versionator
11
12 MY_PN="PythonCAD"
13 MY_PV="DS$(get_major_version)-R$(get_after_major_version)"
14 MY_P=${MY_PN}-${MY_PV}
15
16 DESCRIPTION="CAD program written in PyGTK"
17 HOMEPAGE="http://www.pythoncad.org/"
18 SRC_URI="mirror://sourceforge/pythoncad/${MY_P}.tar.gz"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23 IUSE=""
24
25 RDEPEND="dev-python/pygtk:2"
26 DEPEND=""
27
28 PYTHON_MODNAME=${MY_PN}
29
30 S=${WORKDIR}/${MY_P}
31
32 src_prepare() {
33 epatch "${FILESDIR}/${P}-png.patch"
34
35 sed -i \
36 -e "s/gtkpycad.png/pythoncad.png/" \
37 -e "s/gtkpycad.py/pythoncad/" \
38 "pythoncad.desktop" || die "sed failed"
39 }
40
41 src_install() {
42 distutils_src_install
43
44 install_pythoncad() {
45 newbin gtkpycad.py pythoncad-${PYTHON_ABI}
46 }
47 python_execute_function -q install_pythoncad
48 python_generate_wrapper_scripts "${ED}usr/bin/pythoncad"
49
50 insinto /etc/"${PN}"
51 doins prefs.py
52 domenu pythoncad.desktop
53 insinto /usr/share/pixmaps
54 newins gtkpycad.png pythoncad.png
55 }

  ViewVC Help
Powered by ViewVC 1.1.20