From 485d3e6d39aae981181c31ffc3d9606fa07c5108 Mon Sep 17 00:00:00 2001 From: Denis Dupeyron Date: Tue, 30 Jan 2007 20:37:45 +0000 Subject: [PATCH] Version bump. Package-Manager: portage-2.1.2-r4 --- sci-electronics/kicad/ChangeLog | 9 +- sci-electronics/kicad/Manifest | 17 ++- .../kicad/files/digest-kicad-20070115 | 6 ++ sci-electronics/kicad/kicad-20070115.ebuild | 101 ++++++++++++++++++ 4 files changed, 127 insertions(+), 6 deletions(-) create mode 100644 sci-electronics/kicad/files/digest-kicad-20070115 create mode 100644 sci-electronics/kicad/kicad-20070115.ebuild diff --git a/sci-electronics/kicad/ChangeLog b/sci-electronics/kicad/ChangeLog index f11c5e8f1032..bd502af862c9 100644 --- a/sci-electronics/kicad/ChangeLog +++ b/sci-electronics/kicad/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-electronics/kicad -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/ChangeLog,v 1.13 2006/10/15 16:23:34 calchan Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/ChangeLog,v 1.14 2007/01/30 20:37:45 calchan Exp $ + +*kicad-20070115 (30 Jan 2007) + + 30 Jan 2007; Denis Dupeyron +kicad-20070115.ebuild: + Version bump. 15 Oct 2006; Denis Dupeyron -kicad-20060626.ebuild: Removed old ebuild. diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest index 792c102cc62e..da8e4c427d6d 100644 --- a/sci-electronics/kicad/Manifest +++ b/sci-electronics/kicad/Manifest @@ -1,13 +1,19 @@ DIST kicad-2006-08-28.tgz 58438630 RMD160 7e14ca52b0fd71385b24bb98f02c30cb488b8c85 SHA1 61e5346219ea9233642c0150d8e98697daadfdda SHA256 a7a7197bae9a78bf4af1e5ef40152057b27a605403791c101a8684ea766fd637 DIST kicad-20060828.tar.bz2 11314983 RMD160 183eefd26e6ceb0623a314a2348e08e7c1470bd6 SHA1 a26a748e77ae8b64fe843e12ce35fbe2101e60ba SHA256 d2d203c77f18c60d98f3d19150bce9ceba41810c147c3d59d820d4d683ca5ef1 +DIST kicad-2007-01-15.tgz 61333975 RMD160 122313a847ab78bc8e7c796956b7df84e8c789d7 SHA1 347324baf943efb8ea6c21a709fefa1119aa0119 SHA256 10a2ada595dd84d54fbe013f3230894999996660916698eae78773fd168b4ba1 +DIST kicad-20070115.tar.bz2 11653448 RMD160 3ca516324aabb8fd7b6038fba34603298bf612de SHA1 21d2e865c064173d8b346386b4ba7c9800fd383d SHA256 0c9cfb0241714207498a71122570e453389d977ad33942bac68cec154cfbed35 EBUILD kicad-20060828.ebuild 3450 RMD160 27c486202fcdedde2917a6b1ab4a419960457f2d SHA1 0e0bf1c6b5724996ffa8715c0019801a54cdad7a SHA256 2794fbdca7a3493d1c22ced9dadf3f8433c8eca604e05442d0b9d539eb6ae518 MD5 db424ccc4427b591cb8b37a8b909b2d8 kicad-20060828.ebuild 3450 RMD160 27c486202fcdedde2917a6b1ab4a419960457f2d kicad-20060828.ebuild 3450 SHA256 2794fbdca7a3493d1c22ced9dadf3f8433c8eca604e05442d0b9d539eb6ae518 kicad-20060828.ebuild 3450 -MISC ChangeLog 2037 RMD160 59c3b0e3c7883ba44f69c5d4e62d68a04a8e5767 SHA1 5a3b33d8968787f6f5042612c5b9f71b56c953fb SHA256 c02673a0767f57097abe5dcb7e2de0bf22c84e199424b0e199ed21935043bf4a -MD5 280bdd59f7347cef244ee49bab8616a1 ChangeLog 2037 -RMD160 59c3b0e3c7883ba44f69c5d4e62d68a04a8e5767 ChangeLog 2037 -SHA256 c02673a0767f57097abe5dcb7e2de0bf22c84e199424b0e199ed21935043bf4a ChangeLog 2037 +EBUILD kicad-20070115.ebuild 3450 RMD160 c97c828c6d924304e19b5be82e98baf6e2281236 SHA1 ef6bf64038df18013258cf3cf5704dc6e8e63067 SHA256 2313559c674a3cade1fa2700fea4333ee63d2b27647673bcf7097503fd4ff27c +MD5 b588eb661dad534d25f30048fabf7fde kicad-20070115.ebuild 3450 +RMD160 c97c828c6d924304e19b5be82e98baf6e2281236 kicad-20070115.ebuild 3450 +SHA256 2313559c674a3cade1fa2700fea4333ee63d2b27647673bcf7097503fd4ff27c kicad-20070115.ebuild 3450 +MISC ChangeLog 2160 RMD160 8d4f4043f3786f70dbf9df084b87d6c3596806c1 SHA1 8e99087cd0978d55368c2c6076ffd7a48a686571 SHA256 6fe77cbde7b3f727651a0720af5cb2b1f6d98e6c09c6a413758d37a858ce4ecc +MD5 d9986996697294b66d6b7ed15f939a98 ChangeLog 2160 +RMD160 8d4f4043f3786f70dbf9df084b87d6c3596806c1 ChangeLog 2160 +SHA256 6fe77cbde7b3f727651a0720af5cb2b1f6d98e6c09c6a413758d37a858ce4ecc ChangeLog 2160 MISC metadata.xml 339 RMD160 edfadf44bb7c0a6049e40379258ccfbe89b74b5f SHA1 387abeb29f7e875057901f84b2bdb77c4f942c2e SHA256 311ce02a24351429c5d83af4292d0b8fa315ffde140ba06ac64e6bf3c233d173 MD5 cf9f0a7798ab8fd2681122e170b0674c metadata.xml 339 RMD160 edfadf44bb7c0a6049e40379258ccfbe89b74b5f metadata.xml 339 @@ -15,3 +21,6 @@ SHA256 311ce02a24351429c5d83af4292d0b8fa315ffde140ba06ac64e6bf3c233d173 metadata MD5 756ef152293ef48442c3bdf04b5d3438 files/digest-kicad-20060828 500 RMD160 b97ac5b0260942c21a760a63c01ecc9fedb5d53e files/digest-kicad-20060828 500 SHA256 cd55224b3e607c6ab7b02d54245ea67f0ca8b9b294bec42ead893da5893cca45 files/digest-kicad-20060828 500 +MD5 6cb9d3107354b6e93a91631e73ed357c files/digest-kicad-20070115 500 +RMD160 4e923be67b21462a290ab6ecf8b7d8dcc1b38e3d files/digest-kicad-20070115 500 +SHA256 dd8d5e13aa3cbfe4af25b49383984395d510a236d33e2c70c52a46ac406a1258 files/digest-kicad-20070115 500 diff --git a/sci-electronics/kicad/files/digest-kicad-20070115 b/sci-electronics/kicad/files/digest-kicad-20070115 new file mode 100644 index 000000000000..1d77f23282b4 --- /dev/null +++ b/sci-electronics/kicad/files/digest-kicad-20070115 @@ -0,0 +1,6 @@ +MD5 d1530c44a44c620894ff0c98fd582a02 kicad-2007-01-15.tgz 61333975 +RMD160 122313a847ab78bc8e7c796956b7df84e8c789d7 kicad-2007-01-15.tgz 61333975 +SHA256 10a2ada595dd84d54fbe013f3230894999996660916698eae78773fd168b4ba1 kicad-2007-01-15.tgz 61333975 +MD5 b49d0cb1a64334807c6c615bde9f0c67 kicad-20070115.tar.bz2 11653448 +RMD160 3ca516324aabb8fd7b6038fba34603298bf612de kicad-20070115.tar.bz2 11653448 +SHA256 0c9cfb0241714207498a71122570e453389d977ad33942bac68cec154cfbed35 kicad-20070115.tar.bz2 11653448 diff --git a/sci-electronics/kicad/kicad-20070115.ebuild b/sci-electronics/kicad/kicad-20070115.ebuild new file mode 100644 index 000000000000..ffc3a8c0321f --- /dev/null +++ b/sci-electronics/kicad/kicad-20070115.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/kicad-20070115.ebuild,v 1.1 2007/01/30 20:37:45 calchan Exp $ + +inherit wxwidgets + +UPSTREAM_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}" +DESCRIPTION="Electronic schematic and PCB design tools." +HOMEPAGE="http://www.lis.inpg.fr/realise_au_lis/kicad/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + !minimal? ( ftp://iut-tice.ujf-grenoble.fr/cao/${PN}-${UPSTREAM_PV}.tgz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="unicode doc examples minimal" + +DEPEND=">=x11-libs/wxGTK-2.6 + media-gfx/wings" + +pkg_setup() { + # Tell wxwidgets.eclass the version we need. We pick the latest on the system. + WX_GTK_VER=$(`ls /usr/bin/wx-config* | sort | tail -n 1` --release) + + # Check for proper wxGTK USE flags. + if use unicode; then + need-wxwidgets unicode || die "You need to install wxGTK with unicode support." + else + need-wxwidgets gtk2 || die "You need to install wxGTK with gtk2 support." + fi + built_with_use ">=x11-libs/wxGTK-${WX_GTK_VER}" opengl || die "You need to install wxGTK with opengl support." +} + +src_unpack() { + unpack ${A} || die "unpack failed" + cd ${S} + + # Use the chosen wx-config executable + sed -i -e "s:wx-config:${WX_CONFIG}:" libs.* || die "sed failed" + sed -i -e "s:wx-config:${WX_CONFIG}:" */makefile.* || die "sed failed" +} + +src_compile() { + # Build the main executables + emake -f makefile.gtk || die "make failed (main)" + + # Minizip needs to be built independently + cd kicad/minizip + emake -f makefile.unx || die "make failed (minizip)" +} + +src_install() { + # kicad doesn't use the autotools yet + exeinto /usr/lib/${PN}/linux + doexe eeschema/eeschema + doexe pcbnew/pcbnew + doexe cvpcb/cvpcb + doexe kicad/kicad + doexe kicad/minizip/minizip + doexe gerbview/gerbview + exeinto /usr/lib/${PN}/linux/plugins + doexe eeschema/plugins/netlist_form_pads-pcb + newicon kicad_icon.png kicad.png + make_wrapper kicad "/usr/lib/${PN}/linux/kicad" + make_desktop_entry kicad Kicad kicad.png Electronics + + # kicad requires everything to be in the same place + cp -pPR library ${D}/usr/lib/${PN} + cp -pPR internat ${D}/usr/lib/${PN} + cp -pPR template ${D}/usr/lib/${PN} + cp -pPR help ${D}/usr/lib/${PN} + if ! use minimal ; then + cp -pPR ${WORKDIR}/kicad/library ${D}/usr/lib/${PN} + cp -pPR ${WORKDIR}/kicad/modules ${D}/usr/lib/${PN} + cp -pPR ${WORKDIR}/kicad/template ${D}/usr/lib/${PN} + if use doc ; then + cp -pPR ${WORKDIR}/kicad/help ${D}/usr/lib/${PN} + fi + if use examples ; then + cp -pPR ${WORKDIR}/kicad/demos ${D}/usr/lib/${PN} + fi + fi + dodoc author.txt copyright.txt news.txt contrib.txt version.txt +} + +pkg_postinst() { + if use minimal ; then + ewarn "If the schematic and/or board editors complain about missing libraries when you open old projects," + ewarn "you will have to take one or more of the following actions :" + ewarn "- Install the missing libraries manually." + ewarn "- Remove the libraries from the 'Libs and Dir' preferences." + ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." + ewarn "- Emerge kicad without the 'minimal' USE flag." + else + elog "Please note that the PDF datasheets that can be linked to components from the default libraries" + elog "cannot be mirrored by Gentoo for legal reasons." + elog "If you want them, you need to download them yourself from :" + elog "${HOMEPAGE}" + elog "and install them manually." + fi +} -- 2.26.2