summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Head (Hawk777) <headch@gmail.com>2010-10-20 08:21:21 +0000
committerChristopher Head (Hawk777) <headch@gmail.com>2010-10-20 08:21:21 +0000
commitf6cc50db7c17ffbeb27901d5cbb8bec3efbe294f (patch)
treee4024ddd88588a88c2bb351e24fc608c01a44a7a /sci-electronics/gerbmerge/gerbmerge-1.6.ebuild
parentdrop python inheriting because inheriting distutils (diff)
downloadsunrise-f6cc50db7c17ffbeb27901d5cbb8bec3efbe294f.tar.gz
sunrise-f6cc50db7c17ffbeb27901d5cbb8bec3efbe294f.tar.bz2
sunrise-f6cc50db7c17ffbeb27901d5cbb8bec3efbe294f.zip
sci-electronics/gerbmerge: New Ebuild for bug 338875
svn path=/sunrise/; revision=11446
Diffstat (limited to 'sci-electronics/gerbmerge/gerbmerge-1.6.ebuild')
-rw-r--r--sci-electronics/gerbmerge/gerbmerge-1.6.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/sci-electronics/gerbmerge/gerbmerge-1.6.ebuild b/sci-electronics/gerbmerge/gerbmerge-1.6.ebuild
new file mode 100644
index 000000000..3781b2176
--- /dev/null
+++ b/sci-electronics/gerbmerge/gerbmerge-1.6.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils
+
+DESCRIPTION="A program for combining (panelizing) Gerber/Excellon files"
+HOMEPAGE="http://claymore.engineer.gvsu.edu/~steriana/Python/gerbmerge/"
+SRC_URI="http://claymore.engineer.gvsu.edu/~steriana/Software/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+DEPEND="dev-python/simpleparse"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-no-fixperms.patch"
+ distutils_src_prepare
+}
+
+src_install() {
+ # The provided build script mashes all the examples and documentation into
+ # /usr/lib/pythonX.Y/gerbmerge. Do it manually to put all the files in the
+ # right places.
+
+ # First the per-ABI stuff into site-packages.
+ install_perabi() {
+ insinto "$(python_get_sitedir)"
+ doins -r "build-${PYTHON_ABI}/lib/${PN}" || die "Failed to install libs"
+ }
+ python_execute_function install_perabi
+
+ # Next the wrapper script.
+ dobin misc/gerbmerge || die "Failed to install wrapper script"
+
+ # Finally the documentation and examples.
+ dodoc PKG-INFO README || die "Failed to install documentation"
+ if use doc; then
+ dohtml -A cfg -A def doc/* || die "Failed to install documentation"
+ fi
+ if use examples; then
+ docinto testdata
+ dodoc testdata/* || die "Failed to install examples"
+ fi
+}