diff options
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/gerbmerge/ChangeLog | 9 | ||||
-rw-r--r-- | sci-electronics/gerbmerge/Manifest | 5 | ||||
-rw-r--r-- | sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch | 51 | ||||
-rw-r--r-- | sci-electronics/gerbmerge/gerbmerge-1.6.ebuild | 53 | ||||
-rw-r--r-- | sci-electronics/gerbmerge/metadata.xml | 15 |
5 files changed, 133 insertions, 0 deletions
diff --git a/sci-electronics/gerbmerge/ChangeLog b/sci-electronics/gerbmerge/ChangeLog new file mode 100644 index 000000000..d7b21a78c --- /dev/null +++ b/sci-electronics/gerbmerge/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-electronics/gerbmerge +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 20 Oct 2010; Christopher Head (Hawk777) <headch@gmail.com> + +gerbmerge-1.6.ebuild, +files/gerbmerge-1.6-no-fixperms.patch, + +metadata.xml: + New Ebuild for bug 338875 + diff --git a/sci-electronics/gerbmerge/Manifest b/sci-electronics/gerbmerge/Manifest new file mode 100644 index 000000000..bf1a59c5c --- /dev/null +++ b/sci-electronics/gerbmerge/Manifest @@ -0,0 +1,5 @@ +AUX gerbmerge-1.6-no-fixperms.patch 1455 RMD160 3ad45cf987c0f836e6cf2d5fcdd8243c7785b697 SHA1 8a7b70211478f42f601b751502f4983bb545cbb5 SHA256 487030f294cc8d5a1574d0f51382a478b032a8ccec97e96e7a1c6d8a457f5cb8 +DIST gerbmerge-1.6.tar.gz 428478 RMD160 a792ba967ce2d7bcbc6c2afbc32ccf556f0bf400 SHA1 72134925c7a128df153612eab4f15986e9cd3d8a SHA256 a4e22612a65665c028faa4baf0c84657dd2e0e7a9b0a68422f184c5e0863acca +EBUILD gerbmerge-1.6.ebuild 1456 RMD160 f16c7338c3deaddf063c54784537b41eacae2d02 SHA1 6f044ecaa56870cb77916cc8ea43aa7b286ed772 SHA256 cd77ba818ab7c8d16ad00039b9d8d23155d351bbd0004e75cf679e38945f56b0 +MISC ChangeLog 298 RMD160 4c4aa25b814dcae4b573f5fa8de3586123e23532 SHA1 63541d301dd2cea90ec40fe8147e0acf8425c91f SHA256 815fc8efa99af9e57d81c6ab2d544c12c6377286370a3dcf3fc20a7825947e36 +MISC metadata.xml 472 RMD160 2fe2072dcb663a26eef07afbc486ad0de9cec52b SHA1 4d3efdac7c4d9629af9916fe30ffd80be0ef3f53 SHA256 3429dd60bd3441b107fdabe09a737474748ddb3255be5410fa0b27296ebd9882 diff --git a/sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch b/sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch new file mode 100644 index 000000000..84b19dc61 --- /dev/null +++ b/sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch @@ -0,0 +1,51 @@ +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -49,6 +49,7 @@ + python %s/site-packages/gerbmerge/gerbmerge.py $* + """ % DestLib) + fid.close() ++ os.chmod('misc/gerbmerge', 0755) + + dist=setup (name = "gerbmerge", + license = "GPL", +@@ -80,39 +81,11 @@ + (BinDir, BinFiles) ] + ) + +-do_fix_perms = 0 + if sys.platform != "win32": + for cmd in dist.commands: + if cmd[:7]=='install': +- do_fix_perms = 1 + break + +-if do_fix_perms: +- # Ensure package files and misc/help files are world readable-searchable. +- # Shouldn't Distutils do this for us? +- print 'Setting permissions on installed files...', +- try: +- def fixperms(arg, dirname, names): +- os.chmod(dirname, 0755) +- for name in names: +- fullname = os.path.join(dirname, name) +- if os.access(fullname, os.X_OK): +- os.chmod(fullname, 0755) +- else: +- os.chmod(fullname, 0644) +- +- os.path.walk(DestDir, fixperms, 1) +- os.path.walk(os.path.join(DestLib, 'site-packages/gerbmerge'), fixperms, 1) +- +- os.chmod(os.path.join(BinDir, 'gerbmerge'), 0755) +- print 'done' +- except: +- print 'FAILED' +- print +- print '*** Please verify that the installed files have correct permissions. On' +- print "*** systems without permission flags, you don't need to" +- print '*** worry about it.' +- + if cmd[:7]=='install': + print + print '******** Installation Complete ******** ' 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 +} diff --git a/sci-electronics/gerbmerge/metadata.xml b/sci-electronics/gerbmerge/metadata.xml new file mode 100644 index 000000000..2807ce350 --- /dev/null +++ b/sci-electronics/gerbmerge/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>maintainer-wanted@gentoo.org</email> + </maintainer> + <longdescription>A program for combining (panelizing) Gerber/Excellon files</longdescription> + <upstream> + <maintainer> + <email>steriana@claymore.engineer.gvsu.edu</email> + <name>Andrew Sterian</name> + </maintainer> + </upstream> +</pkgmetadata> |