diff options
Diffstat (limited to 'sci-electronics/kicad')
-rw-r--r-- | sci-electronics/kicad/Manifest | 3 | ||||
-rw-r--r-- | sci-electronics/kicad/kicad-99999999-r4601.ebuild | 147 | ||||
-rw-r--r-- | sci-electronics/kicad/kicad-99999999-r4609.ebuild | 175 | ||||
-rw-r--r-- | sci-electronics/kicad/kicad-999999999.ebuild | 176 |
4 files changed, 501 insertions, 0 deletions
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest index 9184a72..a23510f 100644 --- a/sci-electronics/kicad/Manifest +++ b/sci-electronics/kicad/Manifest @@ -1,2 +1,5 @@ EBUILD kicad-99999999-r2.ebuild 5294 SHA256 6c07260b85b3e68ec75c405031e795452008c3e0a43550b0e3d7c81af73ae989 SHA512 2cc7ee577b096e199a278994fc1c5cb2e8466696eeb458220734bca7d88dc305d7dfa4e94fcb63ba738b8ed2f141a59338cb843100117e1c3775f4c9a6542ab6 WHIRLPOOL bfac4321441c52ec845684a0134016788e07c5a451fcd89a030f790592c14450d08c4f2f9a02e4b35b4ee3b8abf526617091344110f925b07141de266fb56ef5 +EBUILD kicad-99999999-r4601.ebuild 4131 SHA256 12365ec6508d50e2049dac4bcd036cc48d686b054eaf8b2dcb975dde341e3e9a SHA512 51a87a2df1abc72cc3472e53e7d4f777476dcc6823fc35c5333cc2b4f81d0ac7bf8edb3600d7ebad9112ba892086c465c69e14bdd8ed7f0023cdf20c00b7cd59 WHIRLPOOL 1fac36c7b748260f02781e2ba109550c9fdb252cbf28aa16f4a8b625b3ee62062ed97c1495d8ca59a02182ba48d5857f2bece5130196a76c389081966b6226a9 +EBUILD kicad-99999999-r4609.ebuild 4990 SHA256 ac14db0c683c097bd24478c350926eedb5578a50f4d4f75637ce75c43753520c SHA512 9b5048c89c7ce4f126ab232cb6f3320edb1b98e13ae727891dfddbe1cb410409b598b1e4e1f1d88e855bd642156e99fbe8b35ae0f52491009041ccfb062efaa8 WHIRLPOOL a02a38a408d79ed239b3e7611ae687d93b6f0f28dc65b057a12d6a0c9a24a8696175f1539477f78e6efa5c8115f008516eb1681e459882359c8bed782654afa8 +EBUILD kicad-999999999.ebuild 5023 SHA256 44567bfd492a6100586d3714253d26d4fefd24889beb6b2b801827720c2b3d74 SHA512 7e740d0eb17c999dd997c048eb049ea29e61645ab93190c7271b7c01844acd1aa029f95fd2830aaee38a6148fc71c22cd97bf441ad8504dbe9543d06627e5c59 WHIRLPOOL a6d329d69c54fc0aaf976a9b6edc6d11807964d500937c970e9fa3aad09ce12a91aeba118129a2fa5161ed9e4c3930a25422205f2585423e8adfa06eea89b4cd MISC metadata.xml 607 SHA256 f75533f9fb6b14fe0322c1b895819a2b743e1a43489672fec3ae17c6da075092 SHA512 006c62d2e5202ac6decb78815d63e7a9bee59e23a8a8d0bfdc158a88e80c559b39b4f679b45dd9863e30f778ce1dd67e1121c852cca2cb9c76804ac078d3719f WHIRLPOOL bf878c5c4c926863cc43928afb7fa9262e5cc3b102ea84961eaef4289831661d1ec37ae6525c37e9c54d58a8eba6ba6698a746fed52dd8f02128aca7c7500e81 diff --git a/sci-electronics/kicad/kicad-99999999-r4601.ebuild b/sci-electronics/kicad/kicad-99999999-r4601.ebuild new file mode 100644 index 0000000..ff76481 --- /dev/null +++ b/sci-electronics/kicad/kicad-99999999-r4601.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +WX_GTK_VER="2.8" + +inherit cmake-utils wxwidgets fdo-mime gnome2-utils bzr python-r1 flag-o-matic + +DESCRIPTION="Electronic Schematic and PCB design tools." +HOMEPAGE="http://www.kicad-pcb.org" + +LICENSE="GPL-2" +SLOT="0" +EBZR_REPO_URI="lp:kicad" +EBZR_REVISION="${PR#r}" + +KEYWORDS="" + +IUSE="dev-doc debug doc examples minimal python nanometr gost sexpr github" + +CDEPEND="x11-libs/wxGTK:2.8[X,opengl,gnome] + media-libs/glew" +DEPEND="${CDEPEND} + >=dev-util/cmake-2.6.0 + >=dev-libs/boost-1.40[python?] + app-arch/xz-utils + dev-doc? ( app-doc/doxygen )" +RDEPEND="${CDEPEND} + sys-libs/zlib + sci-electronics/electronics-menu + !minimal? ( sci-electronics/kicad-library )" + +src_unpack() { + bzr_src_unpack + + if use doc; then + EBZR_REPO_URI="lp:~kicad-developers/kicad/doc" \ + EBZR_PROJECT="kicad-doc" \ + P="${P}/kicad-doc" \ + EBZR_CACHE_DIR="kicad-doc" \ + bzr_fetch + fi +} + +src_prepare() { + sed 's|bzr patch -p0|patch -p0 -i|g' -i CMakeModules/download_boost.cmake + + sed -e 's/Categories=Electronics/Categories=Development;Electronics/' \ + -i resources/linux/mime/applications/kicad.desktop || 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 + + # Handle optional minimal install + if use minimal ; then + sed -i -e '/add_subdirectory(template)/d' CMakeLists.txt || die "sed failed" + fi + + # Add documentation and fix necessary code if requested + if use doc ; then + sed -i -e "s/subdirs.Add( wxT( \"kicad\" ) );/subdirs.Add( wxT( \"${PF}\" ) );/" \ + -e '/subdirs.Add( _T( "help" ) );/d' common/edaappl.cpp || die "sed failed" + else + sed -i -e '/add_subdirectory(kicad-doc)/d' CMakeLists.txt || 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 + sed 's|^ ../scripting/wx_python_helpers.cpp$||' -i pcbnew/CMakeLists.txt || die "sed failed" +} + +src_configure() { + bzr whoami "anonymous" + if use amd64;then + append-cxxflags -fPIC + fi + need-wxwidgets unicode + + mycmakeargs="${mycmakeargs} + -DKICAD_DOCS=/usr/share/doc/${PF} + -DKICAD_HELP=/usr/share/doc/${PF} + -DKICAD_CYRILLIC=ON + -DwxUSE_UNICODE=ON + -DKICAD_TESTING_VERSION=ON + -DKICAD_MINIZIP=OFF + -DKICAD_AUIMANAGER=OFF + -DKICAD_AUITOOLBAR=OFF + $(cmake-utils_use gost KICAD_GOST) + $(cmake-utils_use nanometr USE_PCBNEW_NANOMETRES) + $(cmake-utils_use sexpr USE_PCBNEW_SEXPR_FILE_FORMAT) + $(cmake-utils_use github BUILD_GITHUB_PLUGIN) + $(cmake-utils_use python KICAD_SCRIPTING) + $(cmake-utils_use python KICAD_SCRIPTING_MODULES) + $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON)" + cmake-utils_src_configure +} + +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/* + 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/kicad-99999999-r4609.ebuild b/sci-electronics/kicad/kicad-99999999-r4609.ebuild new file mode 100644 index 0000000..918c5f9 --- /dev/null +++ b/sci-electronics/kicad/kicad-99999999-r4609.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +WX_GTK_VER="2.8" + +inherit cmake-utils wxwidgets fdo-mime gnome2-utils bzr python-r1 flag-o-matic + +DESCRIPTION="Electronic Schematic and PCB design tools." +HOMEPAGE="http://www.kicad-pcb.org" + +LICENSE="GPL-2" +SLOT="0" +EBZR_REPO_URI="lp:kicad" +EBZR_REVISION="${PR#r}" +[[ "${EBZR_REVISION}" == "0" ]] && EBZR_REVISION="" + +KEYWORDS="" + +IUSE="dev-doc debug doc examples minimal python nanometr gost sexpr github" + +LANGS="bg ca cs de el_GR en es fi fr hu it ja ko nl pl pt ru sl sv zh_CN" + +for lang in ${LANGS}; do + IUSE+=" linguas_${lang}" +done + +CDEPEND="x11-libs/wxGTK:2.8[X,opengl,gnome] + media-libs/glew" +DEPEND="${CDEPEND} + >=dev-util/cmake-2.6.0 + >=dev-libs/boost-1.40[python?] + app-arch/xz-utils + dev-doc? ( app-doc/doxygen )" +RDEPEND="${CDEPEND} + sys-libs/zlib + sci-electronics/electronics-menu + !minimal? ( !sci-electronics/kicad-library )" + +src_unpack() { + bzr_src_unpack + + if use doc; then + EBZR_REPO_URI="lp:~kicad-developers/kicad/doc" \ + EBZR_PROJECT="kicad-doc" \ + EBZR_UNPACK_DIR="${EBZR_UNPACK_DIR}/kicad-doc" \ + EBZR_CACHE_DIR="kicad-doc" \ + bzr_fetch + fi + + if ! use minimal; then + EBZR_REPO_URI="lp:~kicad-testing-committers/kicad/library" \ + EBZR_PROJECT="kicad-library" \ + EBZR_UNPACK_DIR="${EBZR_UNPACK_DIR}/kicad-library" \ + EBZR_CACHE_DIR="kicad-library" \ + bzr_fetch + fi +} + +src_prepare() { + if use python;then + # dev-python/wxpython don't support python3 + sed '/set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)/d' -i CMakeModules/FindPythonLibs.cmake || die "sed failed" + fi + + if use doc;then + for lang in ${LANGS};do + for x in ${lang};do + if ! use linguas_${x}; then + sed "s| \<${x}\>||" -i kicad-doc/{internat,doc/{help,tutorials}}/CMakeLists.txt || die "sed failed" + fi + done + done + fi + # hack or dev-vcs/bzrtools + sed 's|bzr patch -p0|patch -p0 -i|g' -i CMakeModules/download_boost.cmake + + #fdo + sed -e 's/Categories=Development;Electronics$/Categories=Development;Electronics;/' \ + -i resources/linux/mime/applications/*.desktop || die 'sed failed' + + # Add important doc files + sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" + + # Handle optional minimal install + if use minimal; then + sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" + else + sed '/add_subdirectory( bitmaps_png )/a add_subdirectory( kicad-library )' -i CMakeLists.txt || die "sed failed" + sed '/make uninstall/,/# /d' -i kicad-library/CMakeLists.txt || die "sed failed" + fi + + # Add documentation and fix necessary code if requested + if use doc; then + sed '/add_subdirectory( bitmaps_png )/a add_subdirectory( kicad-doc )' -i CMakeLists.txt || die "sed failed" + sed '/make uninstall/,$d' -i kicad-doc/CMakeLists.txt || die "sed failed" + fi + + # Install examples in the right place if requested + if use examples; then + sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" + else + sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" + fi +} + +src_configure() { + bzr whoami "anonymous" + if use amd64;then + append-cxxflags -fPIC + fi + need-wxwidgets unicode + + mycmakeargs="${mycmakeargs} + -DKICAD_DOCS=/usr/share/doc/${PF} + -DKICAD_HELP=/usr/share/doc/${PF} + -DKICAD_CYRILLIC=ON + -DwxUSE_UNICODE=ON + -DKICAD_TESTING_VERSION=ON + -DKICAD_MINIZIP=OFF + -DKICAD_AUIMANAGER=OFF + -DKICAD_AUITOOLBAR=OFF + $(cmake-utils_use gost KICAD_GOST) + $(cmake-utils_use nanometr USE_PCBNEW_NANOMETRES) + $(cmake-utils_use sexpr USE_PCBNEW_SEXPR_FILE_FORMAT) + $(cmake-utils_use github BUILD_GITHUB_PLUGIN) + $(cmake-utils_use python KICAD_SCRIPTING) + $(cmake-utils_use python KICAD_SCRIPTING_MODULES) + $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON)" + cmake-utils_src_configure +} + +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/* + 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/kicad-999999999.ebuild b/sci-electronics/kicad/kicad-999999999.ebuild new file mode 100644 index 0000000..dcdcceb --- /dev/null +++ b/sci-electronics/kicad/kicad-999999999.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +WX_GTK_VER="2.8" + +inherit cmake-utils wxwidgets fdo-mime gnome2-utils bzr python-r1 flag-o-matic + +DESCRIPTION="Electronic Schematic and PCB design tools." +HOMEPAGE="http://www.kicad-pcb.org" + +LICENSE="GPL-2" +SLOT="0" +EBZR_REPO_URI="lp:kicad" +EBZR_REVISION="${PR#r}" +[[ "${EBZR_REVISION}" == "0" ]] && EBZR_REVISION="" + +KEYWORDS="" + +IUSE="dev-doc debug doc examples minimal python nanometr gost sexpr github" + +LANGS="bg ca cs de el_GR en es fi fr hu it ja ko nl pl pt ru sl sv zh_CN" + +for lang in ${LANGS}; do + IUSE+=" linguas_${lang}" +done + +CDEPEND="x11-libs/wxGTK:2.8[X,opengl,gnome] + media-libs/glew" +DEPEND="${CDEPEND} + >=dev-util/cmake-2.6.0 + >=dev-libs/boost-1.40[python?] + app-arch/xz-utils + dev-doc? ( app-doc/doxygen )" +RDEPEND="${CDEPEND} + sys-libs/zlib + python? ( dev-python/wxpython ) + sci-electronics/electronics-menu + !minimal? ( !sci-electronics/kicad-library )" + +src_unpack() { + bzr_src_unpack + + if use doc; then + EBZR_REPO_URI="lp:~kicad-developers/kicad/doc" \ + EBZR_PROJECT="kicad-doc" \ + EBZR_UNPACK_DIR="${EBZR_UNPACK_DIR}/kicad-doc" \ + EBZR_CACHE_DIR="kicad-doc" \ + bzr_fetch + fi + + if ! use minimal; then + EBZR_REPO_URI="lp:~kicad-product-committers/kicad/library" \ + EBZR_PROJECT="kicad-library" \ + EBZR_UNPACK_DIR="${EBZR_UNPACK_DIR}/kicad-library" \ + EBZR_CACHE_DIR="kicad-library" \ + bzr_fetch + fi +} + +src_prepare() { + if use python;then + # dev-python/wxpython don't support python3 + sed '/set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)/d' -i CMakeModules/FindPythonLibs.cmake || die "sed failed" + fi + + if use doc;then + for lang in ${LANGS};do + for x in ${lang};do + if ! use linguas_${x}; then + sed "s| \<${x}\>||" -i kicad-doc/{internat,doc/{help,tutorials}}/CMakeLists.txt || die "sed failed" + fi + done + done + fi + # hack or dev-vcs/bzrtools + sed 's|bzr patch -p0|patch -p0 -i|g' -i CMakeModules/download_boost.cmake + + #fdo + sed -e 's/Categories=Development;Electronics$/Categories=Development;Electronics;/' \ + -i resources/linux/mime/applications/*.desktop || die 'sed failed' + + # Add important doc files + sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" + + # Handle optional minimal install + if use minimal; then + sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" + else + sed '/add_subdirectory( bitmaps_png )/a add_subdirectory( kicad-library )' -i CMakeLists.txt || die "sed failed" + sed '/make uninstall/,/# /d' -i kicad-library/CMakeLists.txt || die "sed failed" + fi + + # Add documentation and fix necessary code if requested + if use doc; then + sed '/add_subdirectory( bitmaps_png )/a add_subdirectory( kicad-doc )' -i CMakeLists.txt || die "sed failed" + sed '/make uninstall/,$d' -i kicad-doc/CMakeLists.txt || die "sed failed" + fi + + # Install examples in the right place if requested + if use examples; then + sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" + else + sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" + fi +} + +src_configure() { + bzr whoami "anonymous" + if use amd64;then + append-cxxflags -fPIC + fi + need-wxwidgets unicode + + mycmakeargs="${mycmakeargs} + -DKICAD_DOCS=/usr/share/doc/${PF} + -DKICAD_HELP=/usr/share/doc/${PF} + -DKICAD_CYRILLIC=ON + -DwxUSE_UNICODE=ON + -DKICAD_TESTING_VERSION=ON + -DKICAD_MINIZIP=OFF + -DKICAD_AUIMANAGER=OFF + -DKICAD_AUITOOLBAR=OFF + $(cmake-utils_use gost KICAD_GOST) + $(cmake-utils_use nanometr USE_PCBNEW_NANOMETRES) + $(cmake-utils_use sexpr USE_PCBNEW_SEXPR_FILE_FORMAT) + $(cmake-utils_use github BUILD_GITHUB_PLUGIN) + $(cmake-utils_use python KICAD_SCRIPTING) + $(cmake-utils_use python KICAD_SCRIPTING_MODULES) + $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON)" + cmake-utils_src_configure +} + +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/* + 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 +} |