1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
10 inherit distutils eutils
12 DESCRIPTION="A program for combining (panelizing) Gerber/Excellon files"
13 HOMEPAGE="http://ruggedcircuits.com/gerbmerge/"
14 SRC_URI="http://ruggedcircuits.com/gerbmerge/${P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 DEPEND="dev-python/simpleparse"
25 # This package has a very, very messy distutils situation. This patch rips
26 # out most of setup.py and replaces it with something simpler.
27 epatch "${FILESDIR}/${P}-fix-setup.patch"
29 # This adds a "main" function to the toplevel module in the gerbmerge Python
30 # package, which allows the function to be called from a launcher script
31 # (otherwise it would expect to be invoked directly while having been
32 # installed in site-packages).
33 epatch "${FILESDIR}/${P}-fix-main.patch"
35 # Throw a very simple launcher script into the mix.
36 cp "${FILESDIR}/${P}-launcher.py" "${S}/misc/gerbmerge" || die
44 dohtml -A cfg -A def doc/* || die "Failed to install documentation"
48 dodoc testdata/* || die "Failed to install examples"