diff options
author | Andreas Hüttel <dilfridge@gentoo.org> | 2010-09-20 23:31:27 +0000 |
---|---|---|
committer | Andreas Hüttel <dilfridge@gentoo.org> | 2010-09-20 23:31:27 +0000 |
commit | 9cf1973923345facad459a2070392969a3f62431 (patch) | |
tree | b9ad0d3ed6df650b1efc429a287203d8ab22b990 /sci-electronics | |
parent | Respect LDFLAGS (bug #336820). Do not hard-wire AR. Set RDEPEND. (diff) | |
download | historical-9cf1973923345facad459a2070392969a3f62431.tar.gz historical-9cf1973923345facad459a2070392969a3f62431.tar.bz2 historical-9cf1973923345facad459a2070392969a3f62431.zip |
New application, viewer and editor for integrated circuit layouts.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/klayout/ChangeLog | 12 | ||||
-rw-r--r-- | sci-electronics/klayout/Manifest | 26 | ||||
-rw-r--r-- | sci-electronics/klayout/files/klayout-0.20.2-Makefile.conf.linux-gentoo | 42 | ||||
-rw-r--r-- | sci-electronics/klayout/files/klayout-0.20.2-configureonly.patch | 37 | ||||
-rw-r--r-- | sci-electronics/klayout/klayout-0.20.2.ebuild | 77 | ||||
-rw-r--r-- | sci-electronics/klayout/metadata.xml | 9 |
6 files changed, 203 insertions, 0 deletions
diff --git a/sci-electronics/klayout/ChangeLog b/sci-electronics/klayout/ChangeLog new file mode 100644 index 000000000000..7a374077f3f4 --- /dev/null +++ b/sci-electronics/klayout/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sci-electronics/klayout +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/klayout/ChangeLog,v 1.1 2010/09/20 23:31:27 dilfridge Exp $ + +*klayout-0.20.2 (20 Sep 2010) + + 20 Sep 2010; Andreas K. Huettel <dilfridge@gentoo.org> + +klayout-0.20.2.ebuild, +files/klayout-0.20.2-Makefile.conf.linux-gentoo, + +files/klayout-0.20.2-configureonly.patch, +metadata.xml: + New application, viewer and editor for integrated circuit layouts. Thanks + to Andreas Krinke and _AxS_ for the initial ebuild. Fixes bug 259291. + diff --git a/sci-electronics/klayout/Manifest b/sci-electronics/klayout/Manifest new file mode 100644 index 000000000000..6a6fc7bb1e03 --- /dev/null +++ b/sci-electronics/klayout/Manifest @@ -0,0 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX klayout-0.20.2-Makefile.conf.linux-gentoo 875 RMD160 1a5dba326da987deaa6eda910fed84d9ed9096fb SHA1 da7de7a67dfa04d9578444d18a6746dc4cc88ff9 SHA256 92dd5333f94a18896c252920a364246de5f8e90dd1a78a6b01fe29e7fca3dbcb +AUX klayout-0.20.2-configureonly.patch 767 RMD160 658e32a3a6349571e43a8872ed4ae434c40ad556 SHA1 de03b3d17aa6d54ac5daa1e6c2dc7d10ed53e573 SHA256 b2aa5fed607d300f389c10e976343a38f2b2a32b4fcb74d3abd57ffaea165f28 +DIST klayout-0.20.2.tar.gz 1582828 RMD160 925152f3173f180bc8611f59f239940bbd852183 SHA1 467af487053878f46662ddb144a44444088fbc8e SHA256 a87298bd77e61e2b64245d4fe133d68f579fcb490cc14b4889938e096bf1120f +EBUILD klayout-0.20.2.ebuild 1954 RMD160 f5ca967fe9b066c5a56edb6b0aec6278723b535b SHA1 f87547ef4659ac635a62737624054ed81191e848 SHA256 87094183c4d39860c6a1bd718265f1b86aeb2a5f7b50e5ef2b87b1689ccf86b9 +MISC ChangeLog 595 RMD160 d03ff9958ebe1f61aa31a7adb208e8f10bdcbe1c SHA1 a0fac52b4f30d146a4e45ab2ddecdb8cce5a815c SHA256 69e7e96dd45d54bcec8b4c5b53da8b71a2e90c1d4174db803257e0efcfb8ba37 +MISC metadata.xml 258 RMD160 0c68f5fe3ac9ddaed4725fd9f83820846a357666 SHA1 8096efa78c2c95d9a7ac54964591eb25bd6bd112 SHA256 503c5c542a8646c1a214c9cefe3beaf91b7264de196d3553fb0307c8e9ddcdfe +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iQIcBAEBAgAGBQJMl+7QAAoJENwGBM22xffe2TIQAJmtRVTEieNj/wPoHq5YMYHd +O0wHy74yzQg9MlrFT8tdUsYLs2HrfSurE/pRJyh6hnCcOEqtPq0TYmUuzBcOeXds +R5hWCcqx+40Zts52wR2ednsYvWRqJCuUaz4ZcfzJF+I0Xfu1ysQ59wPZoAN7REh2 +sk/Txem42Ad0OqzkeJ1cOb2xDbMEnvCnjSHm8ByCGgvCm43S395WbbO55wkWFSkr +W6Qf7yrcMtT7CV5Tje8BkjTZ3gp7JZG/xpQgz9Q4869HUcAqzeXgBu4JA2rWUFME +InVUDRfe4Xf0Oda7jRduW88BCXlzZGXBV6dJqD71KyGzde8F5Fki9cT/rAL0y2Im +N84S8DS5QFTyDYbzTbj+wrRwrml4rLa8DzvcYLtE2sILu/51OYacNYTAC/+VHwNB +pEbNS/e3GcMBmguYmHQrY4cqXZlbc9vz9ZzMN+4q/oESBAssjlgGOQdwz0MhDByN +Y15gr4BFnwePR8khWEXS52PerI4M+bBahpmb9F8YHCtRxDcTE5qX6lu6E7hycASk +J08kBbl4n7/nfCIz7tMYVYROaC3v52NSZ+1VIZi9+plWrtogmgMWHtHf6kyvd4GE +uWmHXKYGxSw5GmhhMWoYmAH4PFEQslXaVuQF9VuVOB95VjBzZP6CV29+cCALPNNr +h1+5rtDT5gsT+EphEAHA +=ZaIm +-----END PGP SIGNATURE----- diff --git a/sci-electronics/klayout/files/klayout-0.20.2-Makefile.conf.linux-gentoo b/sci-electronics/klayout/files/klayout-0.20.2-Makefile.conf.linux-gentoo new file mode 100644 index 000000000000..b22da1857676 --- /dev/null +++ b/sci-electronics/klayout/files/klayout-0.20.2-Makefile.conf.linux-gentoo @@ -0,0 +1,42 @@ + +# 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 ${LDFLAGS} -o +LOPT_SO=-shared -fPIC -o + +LIBS=-L$(QTLIB) -lQtGui -lQtCore -lQtXml -lrt -lstdc++ -lcrypt + +LINK=$(CXX) + +# The details for the install target (needed since 0.19.2) + +.PHONY: install +install: + mkdir -p $(INSTALL_BINDIR) + cp main/$(EXEC_NAME) $(INSTALL_BINDIR) + for bin in $(OTHER_BIN) ; \ + do \ + cp main/$$bin $(INSTALL_BINDIR) ; \ + done + for plugin in $(PLUGINS) ; \ + do \ + cp $$plugin/*.so $(INSTALL_BINDIR) ; \ + done + chmod 755 $(INSTALL_BINDIR) $(INSTALL_BINDIR)/* + + diff --git a/sci-electronics/klayout/files/klayout-0.20.2-configureonly.patch b/sci-electronics/klayout/files/klayout-0.20.2-configureonly.patch new file mode 100644 index 000000000000..74c2e78167c4 --- /dev/null +++ b/sci-electronics/klayout/files/klayout-0.20.2-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.20.2.ebuild b/sci-electronics/klayout/klayout-0.20.2.ebuild new file mode 100644 index 000000000000..35fa208ea3b8 --- /dev/null +++ b/sci-electronics/klayout/klayout-0.20.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/klayout/klayout-0.20.2.ebuild,v 1.1 2010/09/20 23:31:27 dilfridge Exp $ + +EAPI="2" + +USE_RUBY="ruby18" +# note: define maximally ONE implementation here + +RUBY_OPTIONAL=yes + +inherit eutils multilib toolchain-funcs ruby-ng + +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]" +DEPEND="${RDEPEND}" + +all_ruby_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 +} + +each_ruby_configure() { + local rbflags + + if use ruby ; then + rbflags="-rblib $(ruby_get_libruby) -rbinc $(ruby_get_hdrdir)" + fi + + ./build.sh \ + -platform linux-gentoo \ + -bin bin \ + -qtbin /usr/bin \ + -qtinc /usr/include/qt4 \ + -qtlib /usr/$(get_libdir)/qt4 \ + ${rbflags} || die "Configuration failed" +} + +each_ruby_compile() { + cd build.linux-gentoo + tc-export CC CXX AR LD RANLIB + export AR="${AR} -r" + emake all || die "Build failed" +} + +each_ruby_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 000000000000..b0af9d37956b --- /dev/null +++ b/sci-electronics/klayout/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>dilfridge@gentoo.org</email> + <name>Andreas K. Huettel</name> + </maintainer> +</pkgmetadata> |