mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
python/gerbmerge: Added (A Gerber-file merging program)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
23637dd85c
commit
3dfc7de500
5 changed files with 122 additions and 0 deletions
10
python/gerbmerge/README
Normal file
10
python/gerbmerge/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
GerbMerge is a program for combining (panelizing) the CAM data from
|
||||
multiple printed circuit board designs into a single set of CAM files. The
|
||||
purpose of doing so is to submit a single job to a board manufacturer,
|
||||
thereby saving on manufacturing costs.
|
||||
|
||||
Advice: "Users of GerbMerge complain that the configuration file is the
|
||||
biggest hurdle to overcome in using the program. Don't panic. Start with
|
||||
a sample configuration file and modify it for your own jobs".
|
||||
|
||||
This requires SimpleParse.
|
24
python/gerbmerge/fix-install-paths.patch
Normal file
24
python/gerbmerge/fix-install-paths.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
diff -Naur gerbmerge-1.8old/setup.py gerbmerge-1.8new/setup.py
|
||||
--- gerbmerge-1.8old/setup.py 2011-07-11 19:15:46.000000000 +0200
|
||||
+++ gerbmerge-1.8new/setup.py 2011-07-11 19:13:20.000000000 +0200
|
||||
@@ -37,7 +37,7 @@
|
||||
BinFiles = ['misc/gerbmerge.bat']
|
||||
BinDir = '.'
|
||||
else:
|
||||
- DestLib = distutils.sysconfig.get_config_var('LIBPYTHON')
|
||||
+ DestLib = "/usr/lib/python2.6"
|
||||
DestDir = os.path.join(DestLib, 'gerbmerge')
|
||||
BinFiles = ['misc/gerbmerge']
|
||||
BinDir = distutils.sysconfig.get_config_var('BINDIR')
|
||||
@@ -74,10 +74,7 @@
|
||||
url = "http://ruggedcircuits.com/gerbmerge",
|
||||
packages = ['gerbmerge'],
|
||||
platforms = ['all'],
|
||||
- data_files = [ (DestDir, AuxFiles),
|
||||
- (os.path.join(DestDir,'testdata'), SampleFiles),
|
||||
- (os.path.join(DestDir,'doc'), DocFiles),
|
||||
- (BinDir, BinFiles) ]
|
||||
+ data_files = [ (BinDir, BinFiles) ]
|
||||
)
|
||||
|
||||
do_fix_perms = 0
|
59
python/gerbmerge/gerbmerge.SlackBuild
Normal file
59
python/gerbmerge/gerbmerge.SlackBuild
Normal file
|
@ -0,0 +1,59 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for GerbMerge
|
||||
|
||||
# Written by Andrzej Telszewski <atelszewski@gmail.com>
|
||||
|
||||
PRGNAM=gerbmerge
|
||||
VERSION=1.8
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
patch -p1 < $CWD/fix-install-paths.patch
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
chmod 0755 $PKG/usr/bin/gerbmerge
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a doc testdata COPYING \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
python/gerbmerge/gerbmerge.info
Normal file
10
python/gerbmerge/gerbmerge.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="gerbmerge"
|
||||
VERSION="1.8"
|
||||
HOMEPAGE="http://ruggedcircuits.com/gerbmerge/"
|
||||
DOWNLOAD="http://ruggedcircuits.com/gerbmerge/gerbmerge-1.8.tar.gz"
|
||||
MD5SUM="b34d86e47de1f5c9ce3d2d4c3b35662c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Andrzej Telszewski"
|
||||
EMAIL="atelszewski@gmail.com"
|
||||
APPROVED="Niels Horn"
|
19
python/gerbmerge/slack-desc
Normal file
19
python/gerbmerge/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
gerbmerge: GerbMerge (A Gerber-file merging program)
|
||||
gerbmerge:
|
||||
gerbmerge: GerbMerge is a program for combining (panelizing) the CAM data from
|
||||
gerbmerge: multiple printed circuit board designs into a single set of CAM
|
||||
gerbmerge: files.
|
||||
gerbmerge:
|
||||
gerbmerge: The purpose of doing so is to submit a single job to a board
|
||||
gerbmerge: manufacturer, thereby saving on manufacturing costs.
|
||||
gerbmerge:
|
||||
gerbmerge:
|
||||
gerbmerge:
|
Loading…
Reference in a new issue