From a6c8e94ae10542688f49807f28195c41246dcac8 Mon Sep 17 00:00:00 2001 From: "B. Jogai" Date: Thu, 13 May 2010 00:57:23 +0200 Subject: [PATCH] academic/xcircuit: Added to 13.0 repository --- academic/xcircuit/README | 14 ++++ academic/xcircuit/doinst.sh | 4 ++ academic/xcircuit/slack-desc | 19 ++++++ academic/xcircuit/xcircuit.SlackBuild | 88 ++++++++++++++++++++++++++ academic/xcircuit/xcircuit.desktop | 8 +++ academic/xcircuit/xcircuit.info | 10 +++ academic/xcircuit/xcircuit.png | Bin 0 -> 3748 bytes 7 files changed, 143 insertions(+) create mode 100644 academic/xcircuit/README create mode 100644 academic/xcircuit/doinst.sh create mode 100644 academic/xcircuit/slack-desc create mode 100644 academic/xcircuit/xcircuit.SlackBuild create mode 100644 academic/xcircuit/xcircuit.desktop create mode 100644 academic/xcircuit/xcircuit.info create mode 100644 academic/xcircuit/xcircuit.png diff --git a/academic/xcircuit/README b/academic/xcircuit/README new file mode 100644 index 0000000000..38d5649e3c --- /dev/null +++ b/academic/xcircuit/README @@ -0,0 +1,14 @@ +XCircuit is a program for drawing publishable-quality electrical circuit +schematic diagrams and related figures, and produce circuit netlists through +schematic capture. XCircuit regards circuits as inherently hierarchical, and +writes both hierarchical PostScript output and hierarchical SPICE netlists. +Circuit components are saved in and retrieved from libraries which are fully +editable. XCircuit does not separate artistic expression from circuit +drawing; it maintains flexiblity in style without compromising the power +of schematic capture. + +XCircuit is flexible enough to be used as a generic program for drawing just +about anything, and is competitive with powerful programs such as xfig. +It is especially good for any task requiring repeated use of a standard set +of graphical objects, including architectural drawing, printed circuit board +(PCB) layouts, and music typography. diff --git a/academic/xcircuit/doinst.sh b/academic/xcircuit/doinst.sh new file mode 100644 index 0000000000..4e8ba7071d --- /dev/null +++ b/academic/xcircuit/doinst.sh @@ -0,0 +1,4 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + diff --git a/academic/xcircuit/slack-desc b/academic/xcircuit/slack-desc new file mode 100644 index 0000000000..42a61129c1 --- /dev/null +++ b/academic/xcircuit/slack-desc @@ -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-----------------------------------------------------| +xcircuit: xcircuit (circuit schematic diagram tool) +xcircuit: +xcircuit: XCircuit is a program for drawing publishable-quality electrical +xcircuit: circuit schematic diagrams and related figures, and produce circuit +xcircuit: netlists through schematic capture. XCircuit regards circuits as +xcircuit: inherently hierarchical, and writes both hierarchical PostScript +xcircuit: output and hierarchical SPICE netlists. Circuit components are saved +xcircuit: in and retrieved from libraries which are fully editable. +xcircuit: +xcircuit: Homepage: http://opencircuitdesign.com/xcircuit/ +xcircuit: diff --git a/academic/xcircuit/xcircuit.SlackBuild b/academic/xcircuit/xcircuit.SlackBuild new file mode 100644 index 0000000000..a89c9c7d36 --- /dev/null +++ b/academic/xcircuit/xcircuit.SlackBuild @@ -0,0 +1,88 @@ +#!/bin/sh + +# Slackware build script for grace +# Written by B. Jogai + +PRGNAM=xcircuit +VERSION=3.7.5 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION $PRGNAM +tar xvf $CWD/$PRGNAM-$VERSION.tgz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --with-x \ + --with-ngspice \ + --with-tcl=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux \ + +make +make DESTDIR=$PKG install + + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true +) + +# Add desktop menu entries +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/xcircuit.png > $PKG/usr/share/pixmaps/xcircuit.png +cat $CWD/xcircuit.desktop > $PKG/usr/share/applications/xcircuit.desktop + +# Copy the man pages from the lib to the man directory. +# Don't move it in case the program needs it there for some reason. +rm -rf $PKG/usr/man +mkdir -p $PKG/usr/man/man1 +cp $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM-3.7/man/*.1 $PKG/usr/man/man1 + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples +cp -a CHANGES README* TODO VERSION examples/ \ + $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/academic/xcircuit/xcircuit.desktop b/academic/xcircuit/xcircuit.desktop new file mode 100644 index 0000000000..e5e86f2300 --- /dev/null +++ b/academic/xcircuit/xcircuit.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Exec=xcircuit +Name=xcircuit +GenericName=Circuit drawing program +Icon=/usr/share/pixmaps/xcircuit.png +Terminal=false +Categories=Qt;KDE;Graphics;Development; diff --git a/academic/xcircuit/xcircuit.info b/academic/xcircuit/xcircuit.info new file mode 100644 index 0000000000..4718967c2c --- /dev/null +++ b/academic/xcircuit/xcircuit.info @@ -0,0 +1,10 @@ +PRGNAM="xcircuit" +VERSION="3.7.5" +HOMEPAGE="http://opencircuitdesign.com/xcircuit/" +DOWNLOAD="http://opencircuitdesign.com/xcircuit/archive/xcircuit-3.7.5.tgz" +DOWNLOAD_x86_64="" +MD5SUM="5cbcda1af745898f0f382325562b987b" +MD5SUM_x86_64="" +MAINTAINER="B. Jogai" +EMAIL="jogaib comcast {dot} net" +APPROVED="dsomero" diff --git a/academic/xcircuit/xcircuit.png b/academic/xcircuit/xcircuit.png new file mode 100644 index 0000000000000000000000000000000000000000..85cc4da406a788d670a1b860a5c941cdf5248c43 GIT binary patch literal 3748 zcmV;V4qNewP)9 z)3TgRQBt#V%As=1SxZyFVlWV8kof|4IOm@C54b`IVrK9A`+V+a-?jJJd$0A|Ypt{I zxq{*VpeR2z1AvZ~0R(}1uubLCUw>Iq@_c7nrg(x^WRpKaM^}wYF4oPGYn5!BE;-0~ zRkEdxbX@)r6i<1UX)0KINkf!rk9s+`Fg^q%}-CaN``{iUC(e zc~BzMf~mq$dnEMC`!f+a?^Vcd%PQKZ&Q$384sm!(H%C#FALMDW2e@~43D%AW)fDj@ zpFpv{xt(|v%8$r5RWE^hvC!SN3yuuUC^AfgQ%<*woz%73bgq)V7JLA zO2so3&8^a`nRgZl0x%5}rRKsHQ**96{shL)ttZ7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