From f6cc50db7c17ffbeb27901d5cbb8bec3efbe294f Mon Sep 17 00:00:00 2001 From: "Christopher Head (Hawk777)" Date: Wed, 20 Oct 2010 08:21:21 +0000 Subject: sci-electronics/gerbmerge: New Ebuild for bug 338875 svn path=/sunrise/; revision=11446 --- sci-electronics/gerbmerge/gerbmerge-1.6.ebuild | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 sci-electronics/gerbmerge/gerbmerge-1.6.ebuild (limited to 'sci-electronics/gerbmerge/gerbmerge-1.6.ebuild') 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 +} -- cgit v1.2.3-65-gdbad