summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-electronics/kicad
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-electronics/kicad')
-rw-r--r--sci-electronics/kicad/Manifest2
-rw-r--r--sci-electronics/kicad/files/kicad-desktop-file.patch35
-rw-r--r--sci-electronics/kicad/files/kicad-missing-doc.patch25
-rw-r--r--sci-electronics/kicad/files/kicad-native-boost.patch27
-rw-r--r--sci-electronics/kicad/files/kicad-scripts.patch25
-rw-r--r--sci-electronics/kicad/kicad-20130518.ebuild129
-rw-r--r--sci-electronics/kicad/metadata.xml11
7 files changed, 254 insertions, 0 deletions
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest
new file mode 100644
index 000000000000..8d9fa05c8088
--- /dev/null
+++ b/sci-electronics/kicad/Manifest
@@ -0,0 +1,2 @@
+DIST kicad-2013-05-18-BZR4017-stable-UBUNTU_12.04_full_with_components_doc.tgz 280828915 SHA256 48c91acb9d4f45c7eebbcf4d602841896f11f22bb00721c62d351dd7241efd0b SHA512 8c4b81077c7e23bae6ad6a167fca7e34c006fc6a2a28457ddc276bef94ab43f6bf29f460a9ed5d9e564ef144a106ee82362b3cead3ca64b1361466d8d390619d WHIRLPOOL ed51fdc7ee287d65f4002250e79652d791d2aebe2fc872e1b853cfeccd287bf548346824ffc9afb599ff21721e972db7a5b3c134c662e883cd7d1e5c5b6c5abe
+DIST kicad-sources-stable_2013-05-18_BZR4017.zip 15025159 SHA256 cb9ca0d19e5ea8ca45c731eeddbd8a242eb696e619ee98af91f2c7a0095b393d SHA512 747e4719a426646cf38b9951d28aea32085d672371426b44d9f9a575b55e051925ae3fd6c98aea6fa2c21c2c6a6a2f6cc2da461c882b854d033f5d1ce58384ba WHIRLPOOL 69dbeed6da6d1400207c048a49008d6b0876df184d64c520b82e7e82e3826a04ada5563551f1498244ee4d67ec7731f81285a604e671ee73f6518f211ecb8ef0
diff --git a/sci-electronics/kicad/files/kicad-desktop-file.patch b/sci-electronics/kicad/files/kicad-desktop-file.patch
new file mode 100644
index 000000000000..7f982f7fa77f
--- /dev/null
+++ b/sci-electronics/kicad/files/kicad-desktop-file.patch
@@ -0,0 +1,35 @@
+From cacd01f36db6277111a35fe60ad4762ee3b002e1 Mon Sep 17 00:00:00 2001
+From: Denis Dupeyron <calchan@gentoo.org>
+Date: Thu, 18 Apr 2013 15:17:36 -0600
+Subject: [PATCH] Fix desktop category and semicolon
+
+---
+ resources/linux/mime/applications/eeschema.desktop | 2 +-
+ resources/linux/mime/applications/kicad.desktop | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/resources/linux/mime/applications/eeschema.desktop b/resources/linux/mime/applications/eeschema.desktop
+index 3042eae..0ed616c 100644
+--- a/resources/linux/mime/applications/eeschema.desktop
++++ b/resources/linux/mime/applications/eeschema.desktop
+@@ -1,5 +1,5 @@
+ [Desktop Entry]
+-Categories=Development;Electronics
++Categories=Electronics;
+ Comment=Design an electronic schematic
+ Comment[fr]=Dessiner des schémas électroniques
+ Exec=eeschema
+diff --git a/resources/linux/mime/applications/kicad.desktop b/resources/linux/mime/applications/kicad.desktop
+index 1d7645b..3a23e34 100644
+--- a/resources/linux/mime/applications/kicad.desktop
++++ b/resources/linux/mime/applications/kicad.desktop
+@@ -1,5 +1,5 @@
+ [Desktop Entry]
+-Categories=Development;Electronics
++Categories=Electronics;
+ Comment=Design a printed circuit board
+ Comment[fr]=Concevoir un circuit imprimé
+ Exec=kicad
+--
+1.8.2.1
+
diff --git a/sci-electronics/kicad/files/kicad-missing-doc.patch b/sci-electronics/kicad/files/kicad-missing-doc.patch
new file mode 100644
index 000000000000..3b9f9666e861
--- /dev/null
+++ b/sci-electronics/kicad/files/kicad-missing-doc.patch
@@ -0,0 +1,25 @@
+From 096b02e38c5e86902d5403fcb14313be8dd70fb3 Mon Sep 17 00:00:00 2001
+From: Denis Dupeyron <calchan@gentoo.org>
+Date: Thu, 18 Apr 2013 08:11:28 -0600
+Subject: [PATCH] Add missing documentation
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9e6e29a..1069a5f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -415,7 +415,7 @@ add_custom_target(uninstall
+ #================================================
+ # Installation parameters
+ #================================================
+-install(FILES INSTALL.txt
++install(FILES AUTHORS.txt CHANGELOG.txt README.txt
+ DESTINATION ${KICAD_DOCS}
+ COMPONENT resources)
+
+--
+1.8.2.1
+
diff --git a/sci-electronics/kicad/files/kicad-native-boost.patch b/sci-electronics/kicad/files/kicad-native-boost.patch
new file mode 100644
index 000000000000..595d5f32216b
--- /dev/null
+++ b/sci-electronics/kicad/files/kicad-native-boost.patch
@@ -0,0 +1,27 @@
+From 50a62d296e803b75ae46c964173e8b2be0661618 Mon Sep 17 00:00:00 2001
+From: Denis Dupeyron <calchan@gentoo.org>
+Date: Thu, 18 Apr 2013 08:01:43 -0600
+Subject: [PATCH] Use native Boost
+
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e3c6ae2..9e6e29a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -260,8 +260,8 @@ check_find_package_result(OPENGL_FOUND "OpenGL")
+ # kicad now includes needed boost files.
+ # the two next lines can be uncommented to use the native boost lib.
+ # but this is not a good idea
+-#find_package(Boost 1.36 QUIET)
+-#check_find_package_result(Boost_FOUND "Boost")
++find_package(Boost 1.36 QUIET)
++check_find_package_result(Boost_FOUND "Boost")
+
+ ##########################
+ # Find wxWidgets library #
+--
+1.8.2.1
+
diff --git a/sci-electronics/kicad/files/kicad-scripts.patch b/sci-electronics/kicad/files/kicad-scripts.patch
new file mode 100644
index 000000000000..9f46157915c7
--- /dev/null
+++ b/sci-electronics/kicad/files/kicad-scripts.patch
@@ -0,0 +1,25 @@
+From 065491b83fb7f82606150aa89e70ac99738992e0 Mon Sep 17 00:00:00 2001
+From: Denis Dupeyron <calchan@gentoo.org>
+Date: Wed, 5 Jun 2013 14:03:07 -0600
+Subject: [PATCH] Fix install location of scripts directory
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 59fe7c3..3f3bb14 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -428,7 +428,7 @@ install(FILES resources/freeroute.jnlp
+ ###
+ if(UNIX)
+ install(DIRECTORY scripts
+- DESTINATION ${KICAD_DOCS}
++ DESTINATION ${KICAD_DATA}
+ COMPONENT resources
+ PATTERN ".svn" EXCLUDE)
+ endif()
+--
+1.8.2.1
+
diff --git a/sci-electronics/kicad/kicad-20130518.ebuild b/sci-electronics/kicad/kicad-20130518.ebuild
new file mode 100644
index 000000000000..4b7a080b6a92
--- /dev/null
+++ b/sci-electronics/kicad/kicad-20130518.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+#TODO:
+# - python and wxpython scripting
+
+EAPI="5"
+
+WX_GTK_VER="2.8"
+
+inherit eutils unpacker cmake-utils wxwidgets fdo-mime gnome2-utils
+
+DESCRIPTION="Electronic Schematic and PCB design tools"
+HOMEPAGE="http://www.kicad-pcb.org"
+
+RELEASE_DATE="2013-05-18"
+BZR_REV="4017"
+UBUNTU_VER="12.04"
+BASE_SRC_URI="http://iut-tice.ujf-grenoble.fr/cao"
+SRC_URI="${BASE_SRC_URI}/${PN}-sources-stable_${RELEASE_DATE}_BZR${BZR_REV}.zip
+ ${BASE_SRC_URI}/${PN}-${RELEASE_DATE}-BZR${BZR_REV}-stable-UBUNTU_${UBUNTU_VER}_full_with_components_doc.tgz"
+
+LICENSE="GPL-2 kicad-doc"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="debug"
+LANGS="de en es fr hu it ja pl pt ru zh_CN"
+for lang in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[gnome,opengl,X]
+ dev-python/wxpython:${WX_GTK_VER}[opengl]"
+DEPEND="${CDEPEND}
+ >=dev-util/cmake-2.6.4
+ >=dev-libs/boost-1.49[python]
+ app-doc/doxygen"
+RDEPEND="${CDEPEND}
+ sys-libs/zlib
+ sci-electronics/electronics-menu"
+
+S="${WORKDIR}/stable_${RELEASE_DATE}_BZR${BZR_REV}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-native-boost.patch"
+ epatch "${FILESDIR}/${PN}-desktop-file.patch"
+ epatch "${FILESDIR}/${PN}-scripts.patch"
+ epatch "${FILESDIR}/${PN}-missing-doc.patch"
+ rm -f resources/linux/mime/applications/eeschema.desktop
+}
+
+src_configure() {
+ need-wxwidgets unicode
+
+ mycmakeargs="${mycmakeargs}
+ -DKICAD_STABLE_VERSION=ON
+ -DKICAD_wxUSE_UNICODE=ON
+ -DKICAD_DOCS=/usr/share/doc/${PN}
+ -DKICAD_HELP=/usr/share/doc/${PN}"
+
+# -DKICAD_SCRIPTING=ON
+# -DKICAD_SCRIPTING_MODULES=ON
+# -DKICAD_SCRIPTING_WXPYTHON=ON
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile all doxygen-docs
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/share/${PN}
+ doins -r "${WORKDIR}/${PN}/share/library"
+ doins -r "${WORKDIR}/${PN}/share/modules"
+
+ insinto /usr/share/doc/${PN}
+ doins -r "${WORKDIR}/${PN}/doc/contrib"
+
+ insinto /usr/share/doc/${PN}/help
+ for lang in $LANGS ; do
+ if [[ -d "${WORKDIR}/${PN}/doc/help/${lang}" ]] ; then
+ use linguas_$lang && doins -r "${WORKDIR}/${PN}/doc/help/${lang}"
+ fi
+ done
+
+ insinto /usr/share/doc/${PN}/tutorials
+ for lang in $LANGS ; do
+ if [[ -d "${WORKDIR}/${PN}/doc/tutorials/${lang}" ]] ; then
+ use linguas_$lang && doins -r "${WORKDIR}/${PN}/doc/tutorials/${lang}"
+ fi
+ done
+
+ local dev_doc="/usr/share/doc/${PN}/development"
+ insinto ${dev_doc}
+ doins HOW_TO_CONTRIBUTE.txt notes_about_pcbnew_new_file_format.odt TODO.txt uncrustify.cfg
+ doins "${WORKDIR}/${PN}/doc/help/file_formats/file_formats.pdf"
+ cd Documentation
+ doins -r *
+
+ docompress -x \
+ ${dev_doc}/GUI_Translation_HOWTO.odt \
+ ${dev_doc}/notes_about_pcbnew_new_file_format.odt \
+ ${dev_doc}/uncrustify.cfg
+ ${dev_doc}/file_formats.pdf
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+
+ 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
new file mode 100644
index 000000000000..62924d2393a6
--- /dev/null
+++ b/sci-electronics/kicad/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Kicad is an open source (GPL) software for the creation of electronic
+ schematic diagrams and printed circuit board artwork.
+ </longdescription>
+</pkgmetadata>