diff options
author | Michael Weber <xmw@gentoo.org> | 2013-04-26 10:54:30 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2013-04-26 10:54:30 +0000 |
commit | 7d6b8ccc3f14bbf47c92925c13b9df87ecf24f0d (patch) | |
tree | 8cfd8b73a232ab689edd663f7afb92c37fa32605 /sci-electronics | |
parent | Initial import (bug 124182) (diff) | |
download | historical-7d6b8ccc3f14bbf47c92925c13b9df87ecf24f0d.tar.gz historical-7d6b8ccc3f14bbf47c92925c13b9df87ecf24f0d.tar.bz2 historical-7d6b8ccc3f14bbf47c92925c13b9df87ecf24f0d.zip |
Initial import (bug 124182)
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64
Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/netgen/Manifest | 16 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.3.10-LDFLAGS.patch | 87 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.3.10-includes.patch | 51 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.3.10-tcl-bin-name.patch | 14 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.3.10-tk-version.patch | 11 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.4.40-LDFLAGS.patch | 96 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.4.40-includes.patch | 20 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.4.40-netcmp.patch | 13 | ||||
-rw-r--r-- | sci-electronics/netgen/files/netgen-1.4.40-tcl-bin-name.patch | 14 | ||||
-rw-r--r-- | sci-electronics/netgen/metadata.xml | 10 | ||||
-rw-r--r-- | sci-electronics/netgen/netgen-1.3.10.ebuild | 65 | ||||
-rw-r--r-- | sci-electronics/netgen/netgen-1.4.40.ebuild | 63 |
12 files changed, 457 insertions, 3 deletions
diff --git a/sci-electronics/netgen/Manifest b/sci-electronics/netgen/Manifest index 7b47cf0d70b4..184e477ac27c 100644 --- a/sci-electronics/netgen/Manifest +++ b/sci-electronics/netgen/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX netgen-1.3.10-LDFLAGS.patch 2671 SHA256 889f198a965b53b6b7528ec3f26b208b226cee0376c62f6bdd1459455be8bb19 SHA512 2c926edeea7414c69831de4b39c6dfc121ced7bcad7b50504fcd7d04ad994b4ef8f1b238fd4cb7529db236d3fbd35d00f9442798ac2706520a9f390bd0c83480 WHIRLPOOL 131983cadf0b1ec54211c5abd0ad40ab8b0e5b4490b975b74891c16a5c8d0e85a04beab2d26c7b588c723fc3953691d26b6d50a0f83c3cf6a8017716a2130b64 AUX netgen-1.3.10-includes.patch 1242 SHA256 a92b6b9a359ee1b253d2f0dd2ddce9352758e68a3668a465049f581c788d4c4b SHA512 2f1dec7be58161da802e7f889785b0ea46bcc1b01d8715280b9d4846e0f3420a7dc31bb3fceeb811bade754d4cb98eca78762fe42b51a61917aea6f6698f4507 WHIRLPOOL f26c7700991753464caf3fbb95b6742cea29e8cda55e6e561e98bde4a4b20bf60bb90e9a432260cff364ab170da8802e397ae3206cf8ee934cc9e144e514dfec AUX netgen-1.3.10-tcl-bin-name.patch 520 SHA256 147f9a8494be284fad297ab551768596910903005bb5a4bd4b0743f09f27e004 SHA512 f7f89e1506806b37c9b54a12ca16d95a1f9bd6296c42bc813902151d048e5a58258941f454a0d73f12c146f2792bc972bc64dd503b899ca2ccc16bdf65ea86c0 WHIRLPOOL fc55be63231c47656ac48a412efe2ed19231b451391f82277ff47680a18c09b6dc1c49bd442ca361ed0e527fa84036e500a78fa4dfbf6e2fe795d58b988725f0 @@ -8,7 +11,14 @@ AUX netgen-1.4.40-netcmp.patch 393 SHA256 cf7838ad47f39db353deedfed3169f0ecbf9b8 AUX netgen-1.4.40-tcl-bin-name.patch 520 SHA256 147f9a8494be284fad297ab551768596910903005bb5a4bd4b0743f09f27e004 SHA512 f7f89e1506806b37c9b54a12ca16d95a1f9bd6296c42bc813902151d048e5a58258941f454a0d73f12c146f2792bc972bc64dd503b899ca2ccc16bdf65ea86c0 WHIRLPOOL fc55be63231c47656ac48a412efe2ed19231b451391f82277ff47680a18c09b6dc1c49bd442ca361ed0e527fa84036e500a78fa4dfbf6e2fe795d58b988725f0 DIST netgen-1.3.10.tgz 343779 SHA256 2e854c08474315e4e402605c6ee661e10e3684c364afb9b14c4a439784720ca9 SHA512 8c0be93ac3cc80864dff493bbca7237acd709885757ff26ce608c7ff15a06a0fa218944f24f6ec084ef4617ab7b016e176d85de63571771cab32a52d38ded15e WHIRLPOOL 8daa3bd85cdb9e4b8bb86d75b5a93ce33c54c2a95f1dada1519b29238c2176bafba7c351ca076ea65e3df3b83ceeb31585fd00ca957566fd2188881bd455673b DIST netgen-1.4.40.tgz 379287 SHA256 716d6f0c1b1856f9250689f870d733e89a40facf1e54eab02ba073b667a4f47b SHA512 aaad0deac52ab3b882c5a9af245f89ac9b413cbc88eee0f22d684ed724b12207ec6677a060f8fc6475406d0183fa3fe8b0ff74a8043fc112d070435e802db572 WHIRLPOOL 170d077fd31d671bc82b7c837ca3797f562582bce42f34b1c52c58188705ff067aac1f2067a34de0690dd8b56514593e7af542d15aca5dccbb17edfa51de3f64 -EBUILD netgen-1.3.10.ebuild 1252 SHA256 d62e9fca27f7c7a58df43e673b5e5c60255294e5858d8af057fcf45aa6a77203 SHA512 de334d24f39bdc4ef5ba31b655ba14c356e7870523d47910c13bf01096c63c6e85fd50da64c20819f04aa507e8748957f8b0be20713b170b3240103d9a5047c4 WHIRLPOOL b86d30cf2b823d7ee628a7dbabe1d93e653f885aafd8f0914439ebb38699249d74f212a5ccf7f27792136e13b986c019e78df5af2e6de3237fb878331e49c947 -EBUILD netgen-1.4.40.ebuild 1170 SHA256 24dd97d5d0d337a5c996e13984da29181dbf6c4bed0771723f4b9e9b579fd7b2 SHA512 d5f655d4669b8d48d47ff9b7e4ccc74ab63dc187d48663c9883a2938a4614c6a608e24942fa81c306bbcd6ce53446171f62e1a13fa4e8e9a87245f04d9437e59 WHIRLPOOL 5b0a321010d1b11f06ecee922adb2006825603737519eec6f6d1dfecd62e9713e54868999fb7d3730625a0fac6313f9b35bc8e367ff191981407f6b105ff7353 -MISC ChangeLog 634 SHA256 dfced4a2303c86152bccf971eebcad53f066a60ec2f53b119ab149ebf9a6d30d SHA512 495cfce386fe6592ae70630484b0da6c064dec32b308d27a19241560684ba19568fd5b9d3f2636779a8185c6998e91ca7b52bee20cef077086208158eccdcd7b WHIRLPOOL b21ea11f701f9e1543c24a429f407ca9ddb235a4087067be343791c0347e9e1b48559ffd9685e285e3a578fe8d44f712303940059a951c6671c3224dff45f3f6 +EBUILD netgen-1.3.10.ebuild 1354 SHA256 9e8c4d8ceab8d8ce5ab28736cbf8550eb1eb6119b8c2b19b489fdcc749f1bb0e SHA512 f823cdc67f9cebd92c1e3bbf265472b7fd235567e1da47c102f28d2712beb7174e8789cd5f2401d1ffc1e9887ad1266a3be25dbc3435aaeca8abdeba4275929b WHIRLPOOL 4f2d51f00953e4468d57e76d2d0be9efb49645b83ac6cb1648fe8f5e0021749d852ec7086216f0de693bdc02e45f1c91956b139ebe23aaca6e92475db47e311e +EBUILD netgen-1.4.40.ebuild 1272 SHA256 4380954b7bb912038ccfc0996db8caea1fe5cd55d0a2d42d0628360d2fe8bcbd SHA512 924582122c7c431b758361b9592147c866823c15888529a70bf8d9cdd037d2a3e54caa7210611305f4a9efa73b7a98bd515fc1ce76f9f238ace57be4b94ee531 WHIRLPOOL caa5ba20dc036aecc2b38d6772b6691769e74e62686b8c193198efcc6cce0b34f6694707353529ee4b7058e73f79ffa98aabdf4fd37149aa9f7c8b03ba33fae4 +MISC ChangeLog 725 SHA256 a9e1957ac78175c04f592efa838ae6da57e643d60c5011b8902fe25744d64193 SHA512 d0bd310ee9194374a0a9b84932364a8ab82da7750ed70d785920fda19a95552bf2d9a8000ab466e99f2a8d218536e125ec26edb8c9d810cea31374411eb91a0b WHIRLPOOL b9b898ff6779d9c31bb2c32b401fe9248ee722419eb97009f454a231c15451feabc5f2fe8a6a9e708589acfa60a20678c6195c376319438e122b7ca058681aad MISC metadata.xml 253 SHA256 4dc2d75769eccfb2f50fff33953297e2efa6c16ef53c2739918bac22e950fefc SHA512 68b9c2a4578c7f84555eefc803a057394c3d33220ef5e7a5d89b0447fea4d3de85b5b320ad3a502ca5953d0d5522719509340899bce547d6c5db16945038dde4 WHIRLPOOL 2624b444020a28074fce412018021f372ede3b9c05e3305f2d8a11e104545e787241092887123654eaae339eb54e67336ec490e8807edba1142ba326d4ec841c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iF4EAREIAAYFAlF6XM0ACgkQknrdDGLu8JAwYwEAhB6uDcMOXHmiewGXMTvA1WRs +WRifhRaaFL8gAtWTob8A/0mhqeRlBLq2zbsI0VaOz/fwFnLA34GWTdwwKJI8lttf +=ki5i +-----END PGP SIGNATURE----- diff --git a/sci-electronics/netgen/files/netgen-1.3.10-LDFLAGS.patch b/sci-electronics/netgen/files/netgen-1.3.10-LDFLAGS.patch new file mode 100644 index 000000000000..e1830533f1c4 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.3.10-LDFLAGS.patch @@ -0,0 +1,87 @@ +--- netgen-1.3.10/scripts/configure ++++ netgen-1.3.10/scripts/configure +@@ -8487,11 +8487,11 @@ + ;; + + *-linux*) +- LDDL_FLAGS='-shared -Wl,-soname,$@' ++ LDDL_FLAGS+=' -shared -Wl,-soname,$@' + if test "x${loader_run_path}" != "x" ; then + LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" + fi +- LDFLAGS="" ++ LDFLAGS+=" " + EXTRA_LIB_SPECS="-ldl" + ;; + +--- netgen-1.3.10/tcltk/Makefile ++++ netgen-1.3.10/tcltk/Makefile +@@ -24,7 +24,7 @@ + + netgenexec${EXEEXT}: netgenexec.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} netgenexec.c -o netgenexec${EXEEXT} \ +- ${LIBS} ${LIB_SPECS} ++ ${LIBS} ${LIB_SPECS} ${LDFLAGS} + + netgen.tcl: netgen.tcl.in + sed -e /TCL_DIR/s%TCL_DIR%${TCLDIR}%g \ +--- netgen-1.3.10/rules.mak ++++ netgen-1.3.10/rules.mak +@@ -28,7 +28,7 @@ + ${MODULE}: lib${MODULE}.o ${EXTRA_LIBS} + @echo --- building main ${MODULE} + ${RM} ${MODULE} +- ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} lib${MODULE}.o ${EXTRA_LIBS} -o ${MODULE} ${LIBS} ++ ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} lib${MODULE}.o ${EXTRA_LIBS} -o ${MODULE} ${LIBS} ${LDFLAGS} + + ${BINDIR}/${MODULE}${EXEEXT}: ${MODULE}${EXEEXT} + ${RM} ${BINDIR}/${MODULE}${EXEEXT} +--- netgen-1.3.10/netgen/Makefile ++++ netgen-1.3.10/netgen/Makefile +@@ -22,7 +22,7 @@ + @echo --- making netgen Tcl library \(tclnetgen${SHDLIB_EXT}\) + ${RM} tclnetgen${SHDLIB_EXT} + ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} \ +- ${LD_RUN_PATH} ${EXTRA_LIBS} ${LD_EXTRA_LIBS} -lc ${LIBS} ++ ${LD_RUN_PATH} ${EXTRA_LIBS} ${LD_EXTRA_LIBS} -lc ${LIBS} ${LDFLAGS} + + $(DESTDIR)${BINDIR}/netgen: + ${RM} $@ +@@ -46,19 +46,19 @@ + + netcomp: netcomp.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} netcomp.c -o $@ ${LIBS} \ +- ${EXTRA_LIBS} ++ ${EXTRA_LIBS} ${LDFLAGS} + + inetcomp: inetcomp.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} inetcomp.c -o $@ ${LIBS} \ +- ${EXTRA_LIBS} ++ ${EXTRA_LIBS} ${LDFLAGS} + + ntk2adl: ntk2adl.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ntk2adl.c -o $@ ${LIBS} \ +- ${EXTRA_LIBS} ++ ${EXTRA_LIBS} ${LDFLAGS} + + ntk2xnf: ntk2xnf.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ntk2xnf.c -o $@ ${LIBS} \ +- ${EXTRA_LIBS} ++ ${EXTRA_LIBS} ${LDFLAGS} + + install: $(DESTDIR)${BINDIR}/netgen $(DESTDIR)${BINDIR}/netcomp \ + $(DESTDIR)${BINDIR}/inetcomp $(DESTDIR)${BINDIR}/ntk2adl \ +--- netgen-1.4.40/scripts/defs.mak.in ++++ netgen-1.4.40/scripts/defs.mak.in +@@ -47,9 +47,9 @@ + + RM = rm -f + CP = cp +-AR = ar ++AR = @AR@ + ARFLAGS = crv +-LINK = ld -r ++LINK = @LD@ -r + LD = @LD@ + M4 = @M4@ + RANLIB = @RANLIB@ diff --git a/sci-electronics/netgen/files/netgen-1.3.10-includes.patch b/sci-electronics/netgen/files/netgen-1.3.10-includes.patch new file mode 100644 index 000000000000..4101c5b8ea87 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.3.10-includes.patch @@ -0,0 +1,51 @@ +--- netgen-1.4.40/base/config.h ++++ netgen-1.4.40/base/config.h +@@ -192,6 +192,7 @@ + extern char *Tcl_Strdup(const char *); + #define STRDUP(a) Tcl_Strdup((const char *)a) + #else ++ #include <stdlib.h> + #define CALLOC(a, s) calloc(a, s) + #define MALLOC(s) malloc(s) + #define FREE(a) free(a) +--- netgen-1.4.40/base/place.c ++++ netgen-1.4.40/base/place.c +@@ -34,6 +34,7 @@ + #include "config.h" + + #include <stdio.h> ++#include <stdlib.h> + #include <math.h> + #include <setjmp.h> + #include <signal.h> +--- netgen-1.3.10/tcltk/tclnetgen.c ++++ netgen-1.3.10/tcltk/tclnetgen.c +@@ -19,6 +19,8 @@ + /* tclnetgen.c --- Tcl interpreter interface for using netgen */ + + #include <stdio.h> ++#include <string.h> ++#include <stdlib.h> + + #include <tcl.h> + +--- netgen-1.3.10/base/netcmp.c ++++ netgen-1.3.10/base/netcmp.c +@@ -21,6 +21,7 @@ + #include "config.h" + + #include <stdio.h> ++#include <stdlib.h> + #include <setjmp.h> + #include <signal.h> + #include <time.h> /* for time() as a seed for random number generator */ +--- netgen-1.3.10/base/spice.c ++++ netgen-1.3.10/base/spice.c +@@ -21,6 +21,7 @@ + #include "config.h" + + #include <stdio.h> ++#include <stdlib.h> + #if 0 + #include <stdarg.h> /* what about varargs, like in pdutils.c ??? */ + #endif diff --git a/sci-electronics/netgen/files/netgen-1.3.10-tcl-bin-name.patch b/sci-electronics/netgen/files/netgen-1.3.10-tcl-bin-name.patch new file mode 100644 index 000000000000..c0caf10361a1 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.3.10-tcl-bin-name.patch @@ -0,0 +1,14 @@ +--- netgen-1.4.40/tcltk/Makefile ++++ netgen-1.4.40/tcltk/Makefile +@@ -42,8 +42,8 @@ + ${CP} $* $(DESTDIR)${TCLDIR}/$* + + $(DESTDIR)${BINDIR}/netgen.sh: netgen.sh +- ${RM} $(DESTDIR)${BINDIR}/netgen.sh $(DESTDIR)${BINDIR}/netgen +- ${CP} netgen.sh $(DESTDIR)${BINDIR}/netgen +- (cd $(DESTDIR)${BINDIR}; chmod 0755 netgen) ++ ${RM} $(DESTDIR)${BINDIR}/netgen.sh $(DESTDIR)${BINDIR}/netgen-tcl ++ ${CP} netgen.sh $(DESTDIR)${BINDIR}/netgen-tcl ++ (cd $(DESTDIR)${BINDIR}; chmod 0755 netgen-tcl) + + include ${NETGENDIR}/rules.mak diff --git a/sci-electronics/netgen/files/netgen-1.3.10-tk-version.patch b/sci-electronics/netgen/files/netgen-1.3.10-tk-version.patch new file mode 100644 index 000000000000..8312ea6b7a04 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.3.10-tk-version.patch @@ -0,0 +1,11 @@ +--- netgen-1.3.10/tcltk/tkcon.tcl ++++ netgen-1.3.10/tcltk/tkcon.tcl +@@ -44,7 +44,7 @@ + if {$tcl_version < 8.0} { + return -code error "tkcon requires at least Tcl/Tk8" + } else { +- package require -exact Tk $tcl_version ++ package require Tk + } + + catch {package require bogus-package-name} diff --git a/sci-electronics/netgen/files/netgen-1.4.40-LDFLAGS.patch b/sci-electronics/netgen/files/netgen-1.4.40-LDFLAGS.patch new file mode 100644 index 000000000000..c72a00ba2761 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.4.40-LDFLAGS.patch @@ -0,0 +1,96 @@ +--- netgen-1.4.40/scripts/configure ++++ netgen-1.4.40/scripts/configure +@@ -6244,11 +6244,11 @@ + ;; + + *-linux*) +- LDDL_FLAGS='-shared -Wl,-soname,$@' ++ LDDL_FLAGS+=' -shared -Wl,-soname,$@' + if test "x${loader_run_path}" != "x" ; then + LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" + fi +- LDFLAGS="" ++ LDFLAGS+=" " + EXTRA_LIB_SPECS="-ldl" + ;; + +--- netgen-1.4.40/tcltk/Makefile ++++ netgen-1.4.40/tcltk/Makefile +@@ -23,7 +23,7 @@ + ${CP} netgenexec${EXEEXT} $(DESTDIR)${TCLDIR}/netgenexec${EXEEXT} + + netgenexec${EXEEXT}: netgenexec.c +- ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} netgenexec.c -o netgenexec${EXEEXT} \ ++ ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} netgenexec.c -o netgenexec${EXEEXT} ${LDFLAGS} \ + ${LIBS} ${LIB_SPECS} + + netgen.tcl: netgen.tcl.in +--- netgen-1.4.40/rules.mak ++++ netgen-1.4.40/rules.mak +@@ -28,7 +28,7 @@ + ${MODULE}: lib${MODULE}.o ${EXTRA_LIBS} + @echo --- building main ${MODULE} + ${RM} ${MODULE} +- ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} lib${MODULE}.o ${EXTRA_LIBS} -o ${MODULE} ${LIBS} ++ ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} lib${MODULE}.o ${EXTRA_LIBS} -o ${MODULE} ${LIBS} ${LDFLAGS} + + clean: + ${RM} ${CLEANS} +--- netgen-1.4.40/netgen/Makefile ++++ netgen-1.4.40/netgen/Makefile +@@ -10,7 +10,7 @@ + DFLAGS += ${GR_DFLAGS} + DFLAGS += -DNETGEN_DATE="\"`date`\"" + +-LIBS += ${GR_LIBS} -lm ++LIBS += ${GR_LIBS} -lm -ltcl + CFLAGS += ${GR_CFLAGS} -I${NETGENDIR}/base + CLEANS += netgen netcomp ntk2adl inetcomp ntk2xnf + +@@ -22,7 +22,7 @@ + @echo --- making netgen Tcl library \(tclnetgen${SHDLIB_EXT}\) + ${RM} tclnetgen${SHDLIB_EXT} + ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} \ +- ${LD_RUN_PATH} ${EXTRA_LIBS} ${LD_EXTRA_LIBS} -lc ${LIBS} ++ ${LD_RUN_PATH} ${EXTRA_LIBS} ${LD_EXTRA_LIBS} -lc ${LIBS} ${LDFLAGS} + + $(DESTDIR)${BINDIR}/netgen: + ${RM} $@ +@@ -46,19 +46,19 @@ + + netcomp: netcomp.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} netcomp.c -o $@ ${EXTRA_LIBS} \ +- ${LIBS} ++ ${LIBS} ${LDFLAGS} + + inetcomp: inetcomp.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} inetcomp.c -o $@ ${EXTRA_LIBS} \ +- ${LIBS} ++ ${LIBS} ${LDFLAGS} + + ntk2adl: ntk2adl.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ntk2adl.c -o $@ ${EXTRA_LIBS} \ +- ${LIBS} ++ ${LIBS} ${LDFLAGS} + + ntk2xnf: ntk2xnf.c + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ntk2xnf.c -o $@ ${EXTRA_LIBS} \ +- ${LIBS} ++ ${LIBS} ${LDFLAGS} + + install: $(DESTDIR)${BINDIR}/netgen $(DESTDIR)${BINDIR}/netcomp \ + $(DESTDIR)${BINDIR}/inetcomp $(DESTDIR)${BINDIR}/ntk2adl \ +--- netgen-1.4.40/scripts/defs.mak.in ++++ netgen-1.4.40/scripts/defs.mak.in +@@ -47,9 +47,9 @@ + + RM = rm -f + CP = cp +-AR = ar ++AR = @AR@ + ARFLAGS = crv +-LINK = ld -r ++LINK = @LD@ -r + LD = @LD@ + M4 = @M4@ + RANLIB = @RANLIB@ diff --git a/sci-electronics/netgen/files/netgen-1.4.40-includes.patch b/sci-electronics/netgen/files/netgen-1.4.40-includes.patch new file mode 100644 index 000000000000..0bbe1a12c710 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.4.40-includes.patch @@ -0,0 +1,20 @@ +--- netgen-1.4.40/base/config.h ++++ netgen-1.4.40/base/config.h +@@ -192,6 +192,7 @@ + extern char *Tcl_Strdup(const char *); + #define STRDUP(a) Tcl_Strdup((const char *)a) + #else ++ #include <stdlib.h> + #define CALLOC(a, s) calloc(a, s) + #define MALLOC(s) malloc(s) + #define FREE(a) free(a) +--- netgen-1.4.40/base/place.c ++++ netgen-1.4.40/base/place.c +@@ -34,6 +34,7 @@ + #include "config.h" + + #include <stdio.h> ++#include <stdlib.h> + #include <math.h> + #include <setjmp.h> + #include <signal.h> diff --git a/sci-electronics/netgen/files/netgen-1.4.40-netcmp.patch b/sci-electronics/netgen/files/netgen-1.4.40-netcmp.patch new file mode 100644 index 000000000000..6a3bda60515e --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.4.40-netcmp.patch @@ -0,0 +1,13 @@ +--- netgen-1.4.40/base/netcmp.c ++++ netgen-1.4.40/base/netcmp.c +@@ -4300,8 +4300,8 @@ + SummarizeNodeClasses(NodeClasses); + break; + case 'P': +- PrintElementClasses(ElementClasses); +- PrintNodeClasses(NodeClasses); ++ PrintElementClasses(ElementClasses, -1, 0); ++ PrintNodeClasses(NodeClasses, -1, 0); + break; + case 'r': + while (!Iterate()) ; diff --git a/sci-electronics/netgen/files/netgen-1.4.40-tcl-bin-name.patch b/sci-electronics/netgen/files/netgen-1.4.40-tcl-bin-name.patch new file mode 100644 index 000000000000..c0caf10361a1 --- /dev/null +++ b/sci-electronics/netgen/files/netgen-1.4.40-tcl-bin-name.patch @@ -0,0 +1,14 @@ +--- netgen-1.4.40/tcltk/Makefile ++++ netgen-1.4.40/tcltk/Makefile +@@ -42,8 +42,8 @@ + ${CP} $* $(DESTDIR)${TCLDIR}/$* + + $(DESTDIR)${BINDIR}/netgen.sh: netgen.sh +- ${RM} $(DESTDIR)${BINDIR}/netgen.sh $(DESTDIR)${BINDIR}/netgen +- ${CP} netgen.sh $(DESTDIR)${BINDIR}/netgen +- (cd $(DESTDIR)${BINDIR}; chmod 0755 netgen) ++ ${RM} $(DESTDIR)${BINDIR}/netgen.sh $(DESTDIR)${BINDIR}/netgen-tcl ++ ${CP} netgen.sh $(DESTDIR)${BINDIR}/netgen-tcl ++ (cd $(DESTDIR)${BINDIR}; chmod 0755 netgen-tcl) + + include ${NETGENDIR}/rules.mak diff --git a/sci-electronics/netgen/metadata.xml b/sci-electronics/netgen/metadata.xml new file mode 100644 index 000000000000..fc05434284e8 --- /dev/null +++ b/sci-electronics/netgen/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-electronics</herd> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> + diff --git a/sci-electronics/netgen/netgen-1.3.10.ebuild b/sci-electronics/netgen/netgen-1.3.10.ebuild new file mode 100644 index 000000000000..c1cd7d08d7c1 --- /dev/null +++ b/sci-electronics/netgen/netgen-1.3.10.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/netgen/netgen-1.3.10.ebuild,v 1.1 2013/04/26 10:54:20 xmw Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="LVS tool (layout versus schematic comparison)" +HOMEPAGE="http://www.opencircuitdesign.com/netgen/index.html" +SRC_URI="http://www.opencircuitdesign.com/${PN}/archive/${P}.tgz" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X" + +DEPEND="X? ( + dev-lang/tcl + dev-lang/tk + x11-libs/libX11 )" +RDEPEND="${DEPEND}" + +src_prepare() { + rm "${WORKDIR}"/${PN} || die + epatch "${FILESDIR}"/${P}-LDFLAGS.patch + epatch "${FILESDIR}"/${P}-includes.patch + epatch "${FILESDIR}"/${P}-tk-version.patch + epatch "${FILESDIR}"/${P}-tcl-bin-name.patch + + if $(use X) ; then + cp -r ${S} ${WORKDIR}/with-x || die + fi +} + +src_configure() { + cd scripts + econf --without-x + + if $(use X) ; then + cd "${WORKDIR}"/with-x/scripts || die + econf --with-x + fi +} + +src_compile() { + emake + + if $(use X) ; then + cd "${WORKDIR}"/with-x || die + emake + fi +} + +src_install() { + dodir /usr/$(get_libdir)/${PN} + emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install + + if $(use X) ; then + cd "${WORKDIR}"/with-x || die + emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install + fi + + dodoc Changes README TO_DO +} diff --git a/sci-electronics/netgen/netgen-1.4.40.ebuild b/sci-electronics/netgen/netgen-1.4.40.ebuild new file mode 100644 index 000000000000..5dfc976098da --- /dev/null +++ b/sci-electronics/netgen/netgen-1.4.40.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/netgen/netgen-1.4.40.ebuild,v 1.1 2013/04/26 10:54:20 xmw Exp $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="LVS tool (layout versus schematic comparison)" +HOMEPAGE="http://www.opencircuitdesign.com/netgen/index.html" +SRC_URI="http://www.opencircuitdesign.com/${PN}/archive/${P}.tgz" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X" + +DEPEND="X? ( + dev-lang/tcl + dev-lang/tk + x11-libs/libX11 )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-LDFLAGS.patch + epatch "${FILESDIR}"/${P}-includes.patch + epatch "${FILESDIR}"/${P}-netcmp.patch + epatch "${FILESDIR}"/${P}-tcl-bin-name.patch + + if $(use X) ; then + cp -r ${S} ${WORKDIR}/with-x || die + fi +} + +src_configure() { + cd scripts + econf --without-x + + if $(use X) ; then + cd "${WORKDIR}"/with-x/scripts || die + econf --with-x + fi +} + +src_compile() { + emake + + if $(use X) ; then + cd "${WORKDIR}"/with-x || die + emake + fi +} + +src_install() { + emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install + + if $(use X) ; then + cd "${WORKDIR}"/with-x || die + emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install + fi + + dodoc Changes README TO_DO +} |