diff options
author | Andreas Hüttel <dilfridge@gentoo.org> | 2009-09-20 13:06:58 +0000 |
---|---|---|
committer | Andreas Hüttel <dilfridge@gentoo.org> | 2009-09-20 13:06:58 +0000 |
commit | 87a2460e3e10442ed9901c7eefa5f4ee1862b4b3 (patch) | |
tree | 5b48c90fffaa96249e51238ba7459f69ce86867d /sci-electronics | |
parent | media-radio/fldigi: fix typo in RDEPEND and add ~amd64 (diff) | |
download | sunrise-reviewed-87a2460e3e10442ed9901c7eefa5f4ee1862b4b3.tar.gz sunrise-reviewed-87a2460e3e10442ed9901c7eefa5f4ee1862b4b3.tar.bz2 sunrise-reviewed-87a2460e3e10442ed9901c7eefa5f4ee1862b4b3.zip |
sci-electronics/klayout: New application, viewer and editor for integrated circuit layouts. Thanks to Andreas Krinke and _AxS_ for the ebuild
svn path=/sunrise/; revision=9254
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/klayout/ChangeLog | 10 | ||||
-rw-r--r-- | sci-electronics/klayout/Manifest | 6 | ||||
-rw-r--r-- | sci-electronics/klayout/files/klayout-0.18.1-Makefile.conf.linux-gentoo | 24 | ||||
-rw-r--r-- | sci-electronics/klayout/files/klayout-0.18.1-configureonly.patch | 37 | ||||
-rw-r--r-- | sci-electronics/klayout/klayout-0.18.1.ebuild | 82 | ||||
-rw-r--r-- | sci-electronics/klayout/metadata.xml | 5 |
6 files changed, 164 insertions, 0 deletions
diff --git a/sci-electronics/klayout/ChangeLog b/sci-electronics/klayout/ChangeLog new file mode 100644 index 000000000..19ceae49a --- /dev/null +++ b/sci-electronics/klayout/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-electronics/klayout +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 20 Sep 2009; Andreas K. Huettel (dilfridge) <mail@akhuettel.de> + +klayout-0.18.1.ebuild, +files/klayout-0.18.1-Makefile.conf.linux-gentoo, + +files/klayout-0.18.1-configureonly.patch, +metadata.xml: + New application, viewer and editor for integrated circuit layouts. Thanks to + Andreas Krinke and _AxS_ for the ebuild + diff --git a/sci-electronics/klayout/Manifest b/sci-electronics/klayout/Manifest new file mode 100644 index 000000000..8db31b85d --- /dev/null +++ b/sci-electronics/klayout/Manifest @@ -0,0 +1,6 @@ +AUX klayout-0.18.1-Makefile.conf.linux-gentoo 495 RMD160 a0beeffdb8250fd0c10430cd7c5aa710fe04209b SHA1 2fa5f3955442e3e9b5b2c48ffe464e70951aa7f6 SHA256 11b8a120c01c21356810261ea5da86c4a3c5a4a31d819ff886083b4341c75430 +AUX klayout-0.18.1-configureonly.patch 767 RMD160 658e32a3a6349571e43a8872ed4ae434c40ad556 SHA1 de03b3d17aa6d54ac5daa1e6c2dc7d10ed53e573 SHA256 b2aa5fed607d300f389c10e976343a38f2b2a32b4fcb74d3abd57ffaea165f28 +DIST klayout-0.18.1.tar.gz 1286117 RMD160 50ce9ec28209d73319d4a6b7bc54741d1c81c0c5 SHA1 11d227207a8b30071dcc4c264de6acd35ca6e865 SHA256 57484a1b84beb344466194268659ed9a282f5332fb871a1c3d5f48f5771c9e0e +EBUILD klayout-0.18.1.ebuild 2002 RMD160 06334815fde1c1f00fb7976bc684f11dd3980248 SHA1 2741ceaff247a7cfc99f3594a5d324d8750349ce SHA256 e383496a07e18102cf9d019c7917313c418455d5aba0ca650d500e51bc781c59 +MISC ChangeLog 448 RMD160 a883a9eb98eedc413227dd37dafcb0ff7b893917 SHA1 694f8666f65540177bcfe5f396167ac60cc9abcb SHA256 9c0fda7a69a6539c411c112ae47a917d67284a2efaa68372386585a300d0aa5c +MISC metadata.xml 171 RMD160 ed284df01c230fc7990a6b5888b39166d23f29ba SHA1 f3d64a69044b710e23fb874b3ee4cd338858c8b4 SHA256 a7b30fbacd0e4c312c07a3efac112a3794c81d134442d8104325734d03425adf diff --git a/sci-electronics/klayout/files/klayout-0.18.1-Makefile.conf.linux-gentoo b/sci-electronics/klayout/files/klayout-0.18.1-Makefile.conf.linux-gentoo new file mode 100644 index 000000000..136c54b04 --- /dev/null +++ b/sci-electronics/klayout/files/klayout-0.18.1-Makefile.conf.linux-gentoo @@ -0,0 +1,24 @@ + +# Configuration file for gentoo-linux +# Compiler options + +CCOPT_DEP=-MM -MG -x c++ + +CCWARN=-Wall -pedantic -Wno-deprecated -Woverloaded-virtual \ + -Wsign-promo -Wsynth -Wno-long-long -Wno-strict-aliasing + +CCOPT=-c -x c++ $(CXXFLAGS) -o +CCOPT_SO=-fPIC $(CCOPT) + +INC=-I$(TOP_SOURCE) -I$(SOURCE) -I. -I$(QTINCLUDE) + +DEFS=-DQT_THREAD_SUPPORT -DQT3_SUPPORT + +# Linker options + +LOPT=-Wl,-E -o +LOPT_SO=-shared -fPIC -o + +LIBS=-L$(QTLIB) -lQtGui -lQtCore -lQtXml -lrt -lstdc++ -lcrypt + +LINK=$(CXX) diff --git a/sci-electronics/klayout/files/klayout-0.18.1-configureonly.patch b/sci-electronics/klayout/files/klayout-0.18.1-configureonly.patch new file mode 100644 index 000000000..74c2e7816 --- /dev/null +++ b/sci-electronics/klayout/files/klayout-0.18.1-configureonly.patch @@ -0,0 +1,37 @@ +--- klayout-0.18.1/build.sh 2009-08-02 15:17:12.000000000 -0400 ++++ klayout-0.18.1/build.sh.new 2009-09-18 16:15:47.000000000 -0400 +@@ -237,34 +237,3 @@ + echo "Building plugins: $PLUGINS" + echo "" + +-# -- Running build -- +- +-echo "Running build .." +-echo "$MAKE_PRG" +-cd $BUILD +-$MAKE_PRG $MAKE_OPT all || exit 1 +-echo "" +- +-cd $CURR_DIR +- +-# -- Installing binaries -- +- +-echo "Installing binaries .." +-cd $BUILD +-$MAKE_PRG install +-cd $CURR_DIR +-echo "Build done." +- +-if [ $WIN_CYGWIN = 0 ]; then +- echo "" +- echo "Final binary is ready in $BIN/$EXEC_NAME." +- echo "To run it, you may need to add the following to your LD_LIBRARY_PATH:" +- echo "$QTLIB" +- +- LD_LIBRARY_PATH=$QTLIB:$LD_LIBRARY_PATH +- $BIN/$EXEC_NAME -v +- $BIN/$EXEC_NAME -h +-fi +- +-exit 0 +- diff --git a/sci-electronics/klayout/klayout-0.18.1.ebuild b/sci-electronics/klayout/klayout-0.18.1.ebuild new file mode 100644 index 000000000..e6854925d --- /dev/null +++ b/sci-electronics/klayout/klayout-0.18.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts" +HOMEPAGE="http://www.klayout.de/" +SRC_URI="http://www.klayout.de/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ruby" + +RDEPEND="x11-libs/qt-gui:4[qt3support] + ruby? ( dev-lang/ruby )" + +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-configureonly.patch" + + # now we generate the stub build configuration file for the home-brew build system + cp "${FILESDIR}/${P}-Makefile.conf.linux-gentoo" "${S}/config/Makefile.conf.linux-gentoo" || die +} + +src_configure() { + local rbinc rblib rbflags + + if use ruby ; then + + # get the location of the ruby.h header file + rbinc=$(ruby -rrbconfig -e "puts Config::CONFIG['archdir'] || Config::CONFIG['rubyhdrdir']") + + # get the filename of libruby.so + rblib=$(ruby -rrbconfig -e "puts Config::CONFIG['LIBRUBY']") + + rbflags="-rblib /usr/$(get_libdir)/${rblib} -rbinc ${rbinc}" + + fi + + ./build.sh \ + -platform linux-gentoo \ + -bin bin \ + -qtbin /usr/bin \ + -qtinc /usr/include/qt4 \ + -qtlib /usr/$(get_libdir)/qt4 \ + ${rbflags} || die "Configuration failed" +} + +src_compile() { + cd build.linux-gentoo + tc-export CC CXX AR LD RANLIB + export AR="${AR} -r" + emake || die "Build failed" +} + +src_install() { + cd build.linux-gentoo + emake install || die "make install failed" + + cd .. + dobin \ + bin/klayout \ + bin/strm2gds \ + bin/strm2oas \ + bin/strmclip \ + bin/strmcmp || die "Installation of binaries failed" + + insinto /usr/share/${PN}/testdata/gds + doins testdata/gds/*.gds || die "Installation of gds testdata failed" + insinto /usr/share/${PN}/testdata/oasis + doins testdata/oasis/*.oas testdata/oasis/*.ot || die "Installation of oasis testdata failed" + + if use ruby; then + insinto /usr/share/${PN} + doins -r testdata/ruby || die "Installation of ruby testdata failed" + fi +} diff --git a/sci-electronics/klayout/metadata.xml b/sci-electronics/klayout/metadata.xml new file mode 100644 index 000000000..6f1d493c5 --- /dev/null +++ b/sci-electronics/klayout/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>maintainer-wanted</herd> +</pkgmetadata> |