diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-electronics/pcb |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-electronics/pcb')
-rw-r--r-- | sci-electronics/pcb/Manifest | 6 | ||||
-rw-r--r-- | sci-electronics/pcb/files/pcb-20110918-fix-config.diff | 14 | ||||
-rw-r--r-- | sci-electronics/pcb/metadata.xml | 26 | ||||
-rw-r--r-- | sci-electronics/pcb/pcb-20140316-r1.ebuild | 148 |
4 files changed, 194 insertions, 0 deletions
diff --git a/sci-electronics/pcb/Manifest b/sci-electronics/pcb/Manifest new file mode 100644 index 000000000000..c37850182a12 --- /dev/null +++ b/sci-electronics/pcb/Manifest @@ -0,0 +1,6 @@ +AUX pcb-20110918-fix-config.diff 466 SHA256 1e782db2b39d32acc4e909d41006a7df732dab834d161325c71131c18e089d1f SHA512 9bfb0cd28e3c87eba91ee2a226a75128e4a0df37f79ebb10e4f34880d1f32d3cee17fc9f3ba6f553b6ed018a521efcecc583e75d82e8549d91cbab2a1280aa0c WHIRLPOOL 7b3a20fe8a8d0067951cc61b60616b2a2a5e5dd962d5759ec706aa4a12c52f1067cf4f9ddbdddf9dc6739ed188d9b36b1d79c245faebda4eef7ac2e1e2831aca +DIST pcb-20140316.tar.gz 4210077 SHA256 82c4f39438ee4e278196a3b67ef021145dcfbb00519508ccf51aa7832121c950 SHA512 5b9a2704b4d3c95f03afad0fe8fb5414b2aa9d680e40bf77ad9b46a9d4e14ba740858092794a9ff6788f31ac19063b126d8ceed6316c0d9eaaaa574e6678c071 WHIRLPOOL befd3c0116427f631ddf6c2dd49039589302908bbfcef5e524b66f625034dba87327bad500a2dba90aa1f44c2a922cfdf2a71a85e0ec8efeae5a1c4b080124be +EBUILD pcb-20140316-r1.ebuild 4085 SHA256 fb42b36f3771da5b80d430bb3ddb473631fd93b77d93f7dafbb9d2a773ffcc4c SHA512 2ef23a04f1c53e31708b9e2901e3d56c7b00699d7d44d7e23d7d9209fb69dc4ff0530276c7101d40ff1b7bcd9dd8fd54510849d66f0b8357abf6b8d636e6c5cf WHIRLPOOL 103b40017d0a390d9e7838c31dd40b660b566f240f3a9bb4a9abb447097dae30c3a4557d84f2c41c767096935fe0581c6d02e2200c3e5f9ebb7dd91cc5bf0606 +MISC ChangeLog 2593 SHA256 f6af9464a75a29c83a38930efc04f39f0d5e9c0d6ededbbeba05532cd4b53309 SHA512 d803975ffe6da27683b71a97687dab8b5bc3d271ecd056d73654e03b83e41f1963d2f1c40827b120c1fc3d135456a50c983046cb368cbf102730ae5e706118b9 WHIRLPOOL d29b3505fb64317dc1caa097478f6ba2af91b808c5eafb9cf4b542365e3f6459948d7dd0acce4e3b795aff8fe7a501f8f33943d911edad00c40e559be640848d +MISC ChangeLog-2015 11776 SHA256 8a7fb9328006b92a055119be57efb08b466c69c1438753b51059925c40ca75c2 SHA512 94700f1b410736c2eb9031700d02eeb27785a8727f4e1db3ea6f72f2908aeb84762445393f4f981a7653fabf5ece5afb2b311f577064ac562ff387c7c15494c1 WHIRLPOOL 2688ad485d32be9c5bcdce1cea68a9ce38c5ab3e6d6eb11b64119d341c477c89bc26b5aeae6cb94eccde586dd19e67f932c1465cedb8d5f4d55087cedf7152f4 +MISC metadata.xml 1029 SHA256 fa815c5b104494958a267de8eb99373bbcdd4d560ebc565afedc18dc17a75a7b SHA512 14df20e3c253e65f444f67fd0a69facbd02027578c2ef9cbbd1ad10cef0e8c2b0eefd56889b871714410c116173fec815ec6bee1c84d541ed95970e4dabfbc3e WHIRLPOOL 1aa5485e8e206b58e3354b4ad24fdcc8760536a0e5b3cd8d7d9f0c140df523faf78a9be81b37de59f69ce8bc3b08231cc25a2248ce173d55e59763341f453ca7 diff --git a/sci-electronics/pcb/files/pcb-20110918-fix-config.diff b/sci-electronics/pcb/files/pcb-20110918-fix-config.diff new file mode 100644 index 000000000000..86ac7c3aad40 --- /dev/null +++ b/sci-electronics/pcb/files/pcb-20110918-fix-config.diff @@ -0,0 +1,14 @@ +--- configure.ac.old 2012-03-11 17:02:27.000000000 +0100 ++++ configure.ac 2012-03-11 17:02:37.000000000 +0100 +@@ -1252,11 +1252,6 @@ + if test -d $srcdir/doc; then + AC_CONFIG_FILES(doc/Makefile) + fi +-if test -d $srcdir/doc/gs; then +- AC_CONFIG_FILES(doc/gs/Makefile) +- AC_CONFIG_FILES(doc/gs/gafrc) +- AC_CONFIG_FILES(doc/gs/gschemrc) +-fi + if test -d $srcdir/example; then + AC_CONFIG_FILES(example/Makefile) + AC_CONFIG_FILES(example/libraries/Makefile) diff --git a/sci-electronics/pcb/metadata.xml b/sci-electronics/pcb/metadata.xml new file mode 100644 index 000000000000..358405f57a2f --- /dev/null +++ b/sci-electronics/pcb/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-electronics@gentoo.org</email> + <name>Gentoo Electronics Project</name> + </maintainer> + <longdescription> + Printed Circuit Board layout tool. Used together with the gEDA tools for + Electronic Design Automation or on its own. + </longdescription> + <use> + <flag name="gif">GIF graphics export</flag> + <flag name="jpeg">JPEG graphics export</flag> + <flag name="nelma">NELMA file export</flag> + <flag name="png">PNG graphics export</flag> + <flag name="gcode">gcode file export</flag> + <flag name="tk">Build tcl/tk graphical QFP footprint generator</flag> + <flag name="xrender">Translucent PCB display for Motif/Lesstif GUI</flag> + <flag name="m4lib-png">Enable creating png previews for the m4 library</flag> + <flag name="toporouter">Build toporouter</flag> + </use> + <upstream> + <remote-id type="sourceforge">pcb</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-electronics/pcb/pcb-20140316-r1.ebuild b/sci-electronics/pcb/pcb-20140316-r1.ebuild new file mode 100644 index 000000000000..1a30b76bb34a --- /dev/null +++ b/sci-electronics/pcb/pcb-20140316-r1.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs + +DESCRIPTION="GPL Electronic Design Automation: Printed Circuit Board editor" +HOMEPAGE="http://www.gpleda.org/" +SRC_URI="mirror://sourceforge/pcb/pcb/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-macos" +IUSE="dbus debug doc gcode gif gtk jpeg m4lib-png motif nelma opengl png +test tk toporouter xrender" +# toporouter-output USE flag removed, there seems to be no result + +CDEPEND="dev-libs/glib:2 + gif? ( >=media-libs/gd-2.0.23 ) + gtk? ( x11-libs/gtk+:2 x11-libs/pango + x11-libs/gtkglext + dbus? ( sys-apps/dbus ) ) + jpeg? ( >=media-libs/gd-2.0.23[jpeg] ) + motif? ( !gtk? ( + >=x11-libs/motif-2.3:0 + dbus? ( sys-apps/dbus ) + xrender? ( >=x11-libs/libXrender-0.9 ) ) ) + nelma? ( >=media-libs/gd-2.0.23 ) + opengl? ( virtual/opengl ) + gcode? ( >=media-libs/gd-2.0.23 ) + virtual/libintl + png? ( >=media-libs/gd-2.0.23[png] ) + m4lib-png? ( >=media-libs/gd-2.0.23[png] ) + tk? ( >=dev-lang/tk-8:0 )" +#toporouter-output? ( x11-libs/cairo ) + +DEPEND="${CDEPEND} + test? ( + sci-electronics/gerbv + virtual/imagemagick-tools + ) + >=dev-util/intltool-0.35 + virtual/pkgconfig + sys-devel/gettext" + +RDEPEND="${CDEPEND} + sci-electronics/electronics-menu" + +DOCS="AUTHORS README NEWS ChangeLog" + +pkg_setup() { + if use gtk && use motif; then + elog "Can only build for GTK+ or Motif/Lesstif GUI. GTK+ has priority." + fi + if !(use gtk || use motif); then + elog "Building without GUI, make sure you know what you are doing." + fi + if use dbus && !(use gtk || use motif); then + elog "dbus needs GTK or Motif/Lesstif GUI. Try USE=-dbus or USE=gtk or USE=motif." + fi + if use opengl && !(use gtk); then + elog "GL drawing needs GTK" + fi + if (use gtk || (! use gtk && ! use motif)) && (use xrender); then + elog "The XRender extension is only usable with the Motif/Lesstif GUI." + fi +} + +src_prepare() { + if use test; then + # adapt the list of tests to run according to USE flag settings + if ! use png; then + sed -i '/^hid_png/d' tests/tests.list || die + fi + if ! use gcode; then + sed -i '/^hid_gcode/d' tests/tests.list || die + fi + fi + # Backport from upstream + # http://git.geda-project.org/pcb/commit/?id=a34b40add60310a51780f359cc90d9c5ee75752c + # (do not install static GTS library) + sed -i -e 's/lib_LIBRARIES/noinst_LIBRARIES/' -e 's/include_HEADERS/noinst_HEADERS/' gts/Makefile.am || die + + # fix bad syntax in Makefile.am and configure.ac before running eautoreconf + sed -i -e 's/:=/=/' Makefile.am || die + epatch "${FILESDIR}"/${PN}-20110918-fix-config.diff + eautoreconf +} + +src_configure() { + local myconf + if use gtk ; then + myconf="--with-gui=gtk $(use_enable dbus) $(use_enable opengl gl) --disable-xrender" + elif use motif ; then + myconf="--with-gui=lesstif $(use_enable dbus) $(use_enable xrender)" + else + myconf="--with-gui=batch --disable-xrender --disable-dbus" + fi + + local exporters="bom gerber ps" + if (use png || use jpeg || use gif) ; then + exporters="${exporters} png" + fi + use nelma && exporters="${exporters} nelma" + use gcode && exporters="${exporters} gcode" + use tk || export WISH="${EPREFIX}/bin/true" + + econf \ + ${myconf} \ + $(use_enable doc) \ + $(use_enable gif) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable m4lib-png) \ + $(use_enable toporouter) \ + $(use_enable debug) \ + --enable-nls \ + --disable-toporouter-output \ + --with-exporters="${exporters}" \ + --disable-dependency-tracking \ + --disable-rpath \ + --disable-update-mime-database \ + --disable-update-desktop-database \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" +} +# toporouter-output USE flag removed, there seems to be no result +# $(use_enable toporouter-output) \ + +src_compile() { + emake AR="$(tc-getAR)" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} |