summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2009-11-16 21:40:53 +0000
committerDenis Dupeyron <calchan@gentoo.org>2009-11-16 21:40:53 +0000
commitf22853aaaa9775b730aa0552dc78d3c4cf72952d (patch)
tree0c097ebdce3668eb1a43a85cc09eb0b046dfeab6 /sci-electronics/kicad
parentremove stray backslash, oops (diff)
downloadhistorical-f22853aaaa9775b730aa0552dc78d3c4cf72952d.tar.gz
historical-f22853aaaa9775b730aa0552dc78d3c4cf72952d.tar.bz2
historical-f22853aaaa9775b730aa0552dc78d3c4cf72952d.zip
Added live subversion ebuild.
Package-Manager: portage-2.1.7.1/cvs/Linux i686
Diffstat (limited to 'sci-electronics/kicad')
-rw-r--r--sci-electronics/kicad/ChangeLog7
-rw-r--r--sci-electronics/kicad/Manifest5
-rw-r--r--sci-electronics/kicad/kicad-99999999.ebuild128
-rw-r--r--sci-electronics/kicad/metadata.xml11
4 files changed, 146 insertions, 5 deletions
diff --git a/sci-electronics/kicad/ChangeLog b/sci-electronics/kicad/ChangeLog
index 8f81182ae353..8a2e4a7c5595 100644
--- a/sci-electronics/kicad/ChangeLog
+++ b/sci-electronics/kicad/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-electronics/kicad
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/ChangeLog,v 1.43 2009/11/08 18:52:51 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/ChangeLog,v 1.44 2009/11/16 21:40:53 calchan Exp $
+
+*kicad-99999999 (16 Nov 2009)
+
+ 16 Nov 2009; Denis Dupeyron <calchan@gentoo.org> +kicad-99999999.ebuild:
+ Added live subversion ebuild.
08 Nov 2009; nixnut <nixnut@gentoo.org> kicad-20090320.1666-r2.ebuild:
ppc stable #285472
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest
index 7e66eee2c7e1..b76f6a6c7d7a 100644
--- a/sci-electronics/kicad/Manifest
+++ b/sci-electronics/kicad/Manifest
@@ -6,5 +6,6 @@ DIST kicad-library-20090320-r1666.tar.lzma 8597781 RMD160 3f66f5abe2a5ce9988cd48
DIST kicad-sources-20090320-r1666.tar.lzma 2654855 RMD160 fb72894f36f022e28efc2ee9eaf02a35ab43b392 SHA1 5e603fd46d0080dfc0ee2d9a1b603367ab45fda0 SHA256 9e59c08d93051f57ec10defd7a6c0afa0feeee9d9a47e2aba82ead9dbeca5ad2
EBUILD kicad-20070115.ebuild 3528 RMD160 65fc58163cbf1b8e023d408099187ab37b115972 SHA1 da88cbe2656208fa14dae2eec7735b7badf57792 SHA256 95caddf1a0122181afe2375da8444433130299a6c4de007ff223a8c48d83622c
EBUILD kicad-20090320.1666-r2.ebuild 2529 RMD160 30a444d4feadab2c0e94a10067c3a14d87851ef6 SHA1 d97ef53b0fab45b7c1a99409cb3f39adc2bebf14 SHA256 f4c6250e035c534dbc936431e2b1e7ed2d839d6e4efa2475ec02bc5e0bb269dc
-MISC ChangeLog 6708 RMD160 87f19de375b38db8bdab58fea17335202f0ca207 SHA1 df696e4df77742ddddd2dd95655e1a3279a58e09 SHA256 f4eb0c17e4c01afdbf9c98eae1806b45d5203bc4afd1e2a41bf05009f2e1e2c4
-MISC metadata.xml 339 RMD160 edfadf44bb7c0a6049e40379258ccfbe89b74b5f SHA1 387abeb29f7e875057901f84b2bdb77c4f942c2e SHA256 311ce02a24351429c5d83af4292d0b8fa315ffde140ba06ac64e6bf3c233d173
+EBUILD kicad-99999999.ebuild 3841 RMD160 29b32cde100e4cfe971c971cb7205671022fe56f SHA1 0ca4b9b0e342e08daa57bc97f0b452fc222fedbd SHA256 69165b2b56753f38862fd7f049e46addfc1fcacb28ee4457a186b4cb279bfbbb
+MISC ChangeLog 6848 RMD160 07a3a4e54f28013d6f89f8b81e034c315d06e35c SHA1 0ff891f3a5e83da4babbde55895ede78e31107dc SHA256 be4a4a2c5e3a9c53a1fe158c8047960f8ef239241f9535ae5348e7d51db7cb01
+MISC metadata.xml 463 RMD160 93cd5538dacfc5d0861b651ff20dd768105170e0 SHA1 5dc9ffc9eef8c8d86b9f9063bc5ab0765d71b712 SHA256 81bfdc1b378cf2f081ee1f33d9775023c5381b1d54290fd8dba6ecede5e7a11e
diff --git a/sci-electronics/kicad/kicad-99999999.ebuild b/sci-electronics/kicad/kicad-99999999.ebuild
new file mode 100644
index 000000000000..1f15e5d6942c
--- /dev/null
+++ b/sci-electronics/kicad/kicad-99999999.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/kicad-99999999.ebuild,v 1.1 2009/11/16 21:40:53 calchan Exp $
+
+EAPI="2"
+WX_GTK_VER="2.8"
+
+inherit cmake-utils wxwidgets fdo-mime gnome2-utils subversion
+
+DESCRIPTION="Electronic Schematic and PCB design tools."
+HOMEPAGE="http://kicad.sourceforge.net"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="dev-doc doc debug examples minimal python"
+
+CDEPEND="x11-libs/wxGTK:2.8[X,opengl]"
+DEPEND=">=dev-util/cmake-2.6.0
+ >=dev-libs/boost-1.39
+ dev-doc? ( app-doc/doxygen )"
+RDEPEND="${CDEPEND}
+ sys-libs/zlib
+ python? ( dev-lang/python )"
+
+src_unpack() {
+ local svn_uri_base="https://kicad.svn.sourceforge.net/svnroot/kicad/trunk"
+ subversion_fetch "${svn_uri_base}/kicad"
+ use minimal || subversion_fetch "${svn_uri_base}/kicad-library" kicad-library
+ use doc && subversion_fetch "${svn_uri_base}/kicad-doc" kicad-doc
+}
+
+src_prepare() {
+ subversion_src_prepare
+
+ # Use native boost
+ sed -i -e '/Boost/s/^#check_find_package/check_find_package/' \
+ -e '/Boost/s/^#find_package/find_package/' CMakeLists.txt || die "sed failed"
+
+ # Add important doc files
+ sed -i -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' CMakeLists.txt || die "sed failed"
+
+ # Fix desktop files
+ rm resources/linux/mime/applications/eeschema.desktop
+ sed -i -e 's/Development;//' resources/linux/mime/applications/kicad.desktop || die "sed failed"
+
+ # Handle optional minimal install
+ if use minimal ; then
+ sed -i -e '/add_subdirectory(template)/d' CMakeLists.txt || die "sed failed"
+ else
+ sed -i -e '/add_subdirectory(template)/a \
+add_subdirectory(kicad-library)' CMakeLists.txt || die "sed failed"
+ fi
+
+ # Add documentation and fix necessary code if requested
+ if use doc ; then
+ sed -i -e '/add_subdirectory(demos)/a \
+add_subdirectory(kicad-doc)' CMakeLists.txt || die "sed failed"
+ sed -i -e "s/subdirs.Add( wxT( \"kicad\" ) );/subdirs.Add( wxT( \"${PF}\" ) );/" \
+ -e '/subdirs.Add( _T( "help" ) );/d' common/edaappl.cpp || die "sed failed"
+ fi
+
+ # Install examples in the right place if requested
+ if use examples ; then
+ sed -i -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' CMakeLists.txt || die "sed failed"
+ else
+ sed -i -e '/add_subdirectory(demos)/d' CMakeLists.txt || die "sed failed"
+ fi
+}
+
+src_configure() {
+ need-wxwidgets unicode
+
+ mycmakeargs="${mycmakeargs}
+ -DKICAD_MINIZIP=OFF
+ -DKICAD_CYRILLIC=ON
+ -DwxUSE_UNICODE=ON
+ -DKICAD_GOST=OFF
+ -DKICAD_AUIMANAGER=OFF
+ -DKICAD_AUITOOLBAR=OFF
+ -DKICAD_DOCS=/usr/share/doc/${PF}
+ -DKICAD_HELP=/usr/share/doc/${PF}
+ $(cmake-utils_use python KICAD_PYTHON)"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use dev-doc && doxygen Doxyfile
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use dev-doc ; then
+ insinto /usr/share/doc/${PF}
+ doins uncrustify.cfg
+ cd Documentation
+ doins -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/doxygen
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+
+ if use minimal ; then
+ ewarn "If the schematic and/or board editors complain about missing libraries when you"
+ ewarn "open old projects, 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."
+ elog
+ fi
+ elog "You may want to emerge media-gfx/wings if you want to create 3D models of components."
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/sci-electronics/kicad/metadata.xml b/sci-electronics/kicad/metadata.xml
index 33342106251a..328e3db19d20 100644
--- a/sci-electronics/kicad/metadata.xml
+++ b/sci-electronics/kicad/metadata.xml
@@ -1,9 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+
<herd>sci-electronics</herd>
+
<longdescription>
- Kicad is an open source (GPL) software for the creation of electronic
- schematic diagrams and printed circuit board artwork.
+ Kicad is an open source (GPL) software for the creation of electronic
+ schematic diagrams and printed circuit board artwork.
</longdescription>
+
+ <use>
+ <flag name="dev-doc">Install developer documentation (requires
+ <pkg>app-doc/doxygen</pkg>)</flag>
+ </use>
</pkgmetadata>