summaryrefslogtreecommitdiff
blob: 957b3b3401a3568e03629d1501c9151474a70195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils versionator

MY_PN="PythonCAD"
#MY_PV="DS$(replace_version_separator 1 '-R' $(get_version_component_range 2-))"
MY_PV="DS$(replace_version_separator 1 '-R' $(get_after_major_version))"

DESCRIPTION="CAD program written in PyGTK"
HOMEPAGE="http://www.pythoncad.org/"
LICENSE="GPL-2"
SRC_URI="http://www.pythoncad.org/releases/${MY_PN}-${MY_PV}.tar.bz2"

SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND=">=dev-python/pygtk-1.99.16"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${MY_PN}-${MY_PV}"

src_install() {
	distutils_src_install
	newbin gtkpycad.py pythoncad
	dodir /etc/${PN}
	insinto /etc/${PN}
	doins prefs.py
}