From 73017eaf0c468430801d44ead9355111144170ca Mon Sep 17 00:00:00 2001 From: Zoltan Puskas Date: Mon, 30 Nov 2015 02:05:13 +0000 Subject: sci-electronics/kicad: Bump to version 4.0.0-RC2 --- sci-electronics/kicad/Manifest | 3 + sci-electronics/kicad/kicad-4.0.0_rc1.ebuild | 1 - sci-electronics/kicad/kicad-4.0.0_rc2.ebuild | 187 +++++++++++++++++++++++++++ 3 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 sci-electronics/kicad/kicad-4.0.0_rc2.ebuild (limited to 'sci-electronics/kicad') diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest index 37addfdbdc6e..9fef697f97f1 100644 --- a/sci-electronics/kicad/Manifest +++ b/sci-electronics/kicad/Manifest @@ -1,3 +1,6 @@ DIST kicad-4.0.0-rc1.tar.xz 10951000 SHA256 62c2e95a2d6b8a3cf30bb91146c3d2b1c0df0cbfc070b6e54bcfdf0da2df6973 SHA512 f158906b85e3c4032086c4a75563d47f75f183bc354e1f2fa55e157083005b51829c141e14171dea9092b9b24b6b5ff1c71e3ae485dd1d2d44fe7e63179c1ffa WHIRLPOOL 755fde28cf45196bb60ffb6af7bc0acb92148310ad74807ef71404c418557bc2c6243f41e9040c0217dc970061df09a4092e2a5e52e016888660e4998153c95a +DIST kicad-4.0.0-rc2.tar.xz 10749964 SHA256 c2312441ddea82a3cf93a32828871a96311df59498ea16e23422e4104b3d794a SHA512 9fddc075871d3fc1ee6d6be1fd0f74246e5c5f6b782155493774541d8d6a9f18776454dd45a5673971e7c3faf673dd0bc720fcc42248673959917afaa9901b3e WHIRLPOOL d58f89c6167fa3bf39887ef02e27e391e638c5c56282b5dba1abb7bf7cf9fb23926c8b720cffaadb6d06d9ee6f112780db0bf678d33ddddd4aa59d3877529c3f DIST kicad-4.0.0_rc1-i18n.tar.gz 1959024 SHA256 5fbd037e4a76a83ed6be7554ab1add98f7d93dce0db5fea6a0bcd58ef61486bd SHA512 85c2db5d193cd4d1521eb9f454a13892680cb5340c3b86b264bceb36ce0c996f818b64c3edd9dae3ff51046c97ba33702649a1083a36f27a80d316f64465f630 WHIRLPOOL 8141fb59822fdda2bf46a9b8af7fe75d6557a1c3f384e5e2b03e58c5e4c9eca4f167a262f2ed9fd3479c64a8730ff1ba3f46f6cb72c680df9c6d6173ca611ada DIST kicad-4.0.0_rc1-library.tar.gz 87967616 SHA256 09a9e184e19b6072efdc00fabb65e3c0d498858c17f5fa5ce8d255b21eab3db4 SHA512 f611015a8760d3c9cf26fd99a043d69fa75d398fb287af7e6fe7cfbd70d3ff1aa67abcedeffa00fef60434e3944ac6b59fa4ac9ea50097d910fbabcb6f288165 WHIRLPOOL 83585bbc772da122139dfa643c4045bfef207ea8dbc4a83a5458be6227ff976fe9c48cea2388f9ec0b20e7c697579701b75231b852161b33a9c51ddef480c6f4 +DIST kicad-4.0.0_rc2-i18n.tar.gz 2230967 SHA256 1c0db5a10f81855b4270aff3add5914aebda86c6d492d64968a853bb71ba0126 SHA512 2877a5045183bf81544912a843ad4493c4ede998c71087d56ec68f0cb618427b9589fcdbf26ed0412eceec4dee5fa7ea7cf278f211f5e1eea39620283dd8a747 WHIRLPOOL d37d058a1de14668144d734a4079043dff39a593d24039c806da890d34df6064d33e308f21fee815b39ee7e6fca41afa810f76b859e0bd4ec17783bfb8ee81d2 +DIST kicad-4.0.0_rc2-library.tar.gz 105100251 SHA256 bed03fd9beacb509c4087c17e69c4d148d7ad991405677b523906c1b1f04caa5 SHA512 f5bc5fb1c7cb5f0f5a83b105a190add944c9c8eaecbaae278edb372badc173dba856ea450e77f7d680ee174f3392ebbf8b6b2b80fea9e0efc0228e05655496ba WHIRLPOOL 43f8358be85e3af5e6ea28ab81f208aa32b85fa5e7f692a92579094f1731bdb5c59db31107dc56d9c407658022dfc2cd446c625ca54f020d3908a5422ca290d5 diff --git a/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild b/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild index 38b4b2299741..f0fc46341789 100644 --- a/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild +++ b/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild @@ -16,7 +16,6 @@ SERIES=$(get_version_component_range 1-2) MY_PV=$(replace_version_separator 3 '-') LIB_REVISION="bd0ec6a20c7cc0556093f60eac723e4505947784" -DOC_REVISION="0d0ed7b9de3afbba5d51fb6d7a25834000ed1099" I18N_REVISION="bf793d30d64f4e75ea7a109ea434c1a27926b158" SRC_URI="https://launchpad.net/${PN}/${SERIES}/${MY_PV}/+download/${PN}-${MY_PV}.tar.xz diff --git a/sci-electronics/kicad/kicad-4.0.0_rc2.ebuild b/sci-electronics/kicad/kicad-4.0.0_rc2.ebuild new file mode 100644 index 000000000000..2dc3c863eacf --- /dev/null +++ b/sci-electronics/kicad/kicad-4.0.0_rc2.ebuild @@ -0,0 +1,187 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +WX_GTK_VER="3.0" + +inherit cmake-utils fdo-mime flag-o-matic gnome2-utils python-single-r1 vcs-snapshot wxwidgets versionator + +DESCRIPTION="Electronic Schematic and PCB design tools." +HOMEPAGE="http://www.kicad-pcb.org" + +SERIES=$(get_version_component_range 1-2) +MY_PV=$(replace_version_separator 3 '-') + +LIB_REVISION="b6c80fa4ae2bf5762794ab1dcecccf94786b6d40" +I18N_REVISION="f84a5a79136a2c781e951a069f1ab34687a5bb37" + +SRC_URI="https://launchpad.net/${PN}/${SERIES}/${MY_PV}/+download/${PN}-${MY_PV}.tar.xz + !minimal? ( https://github.com/KiCad/${PN}-library/tarball/${LIB_REVISION} -> ${P}-library.tar.gz ) + i18n? ( https://github.com/KiCad/${PN}-i18n/tarball/${I18N_REVISION} -> ${P}-i18n.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc examples github i18n minimal python webkit" +LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" +for lang in ${LANGS} ; do + IUSE="${IUSE} linguas_${lang}" +done +unset lang + +REQUIRED_USE=" + github? ( webkit ) + python? ( ${PYTHON_REQUIRED_USE} )" + +CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit?] + python? ( + dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] + ${PYTHON_DEPS} + ) + >=dev-libs/boost-1.56[context,nls,threads,python?] + github? ( dev-libs/openssl:0 ) + media-libs/glew + media-libs/freeglut + media-libs/mesa + sys-libs/zlib + x11-libs/cairo" +DEPEND="${CDEPEND} + app-arch/xz-utils + doc? ( app-doc/doxygen ) + i18n? ( >=sys-devel/gettext-0.18 ) + python? ( dev-lang/swig:0 ) + app-text/dos2unix" +RDEPEND="${CDEPEND} + sci-electronics/electronics-menu" + +S="${WORKDIR}/${PN}-${MY_PV}" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + # remove all the non unix file endings + find "${S}" -type f -name "*.desktop" | xargs -n1 dos2unix || die "dos2unix failed" + + # Handle optional minimal install. + if use minimal; then + # remove tempaltes as they are not needed to run binaries + sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" + else + # create a link to the parts library in the main project folder + ln -s "${WORKDIR}/${P}-library" "${S}/${PN}-library" || die "ln failed" + # add the libraries directory to cmake as a subproject to build + sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die "sed failed" + # remove duplicate uninstall directions for the library module + sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die "sed failed" + fi + + # Add internationalization for the GUI + if use i18n; then + # create a link to the translations library in the main project folder + ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die "ln failed" + # Remove unused languages. Project generates only languages specified in the + # file in LINGUAS in the subproject folder. By default all languages are added + # so we sed out the unused ones based on the user linguas_* settings. + local lang + for lang in ${LANGS}; do + if ! use linguas_${lang}; then + sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die "sed failed" + fi + done + # cmakelists does not respect our build dir variables, so make it point to the right location + sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" + # we also make from the master project so the source dir is understood incorretly, replace that too + sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" + # add the translations directory to cmake as a subproject to build + sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die "sed failed" + # remove duplicate uninstall directions for the translation module + sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die "sed failed" + fi + + # Install examples in the right place if requested + if use examples; then + # install demos into the examples folder too + sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" + else + # remove additional demos/examples as its not strictly required to run the binaries + sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" + fi + + # Add important missing doc files + sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" +} + +src_configure() { + need-wxwidgets unicode + + local mycmakeargs=( + -DPYTHON_DEST="$(python_get_sitedir)" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DKICAD_DOCS="/usr/share/doc/${PF}" + -DKICAD_HELP="/usr/share/doc/${PF}/help" + -DwxUSE_UNICODE=ON + -DKICAD_SKIP_BOOST=ON + $(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_use webkit KICAD_USE_WEBKIT) + $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "") + ) + if use debug; then + append-cxxflags "-DDEBUG" + append-cflags "-DDEBUG" + fi + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + doxygen Doxyfile || die "doxygen failed" + fi +} + +src_install() { + cmake-utils_src_install + use python && python_optimize + if use doc ; then + dodoc uncrustify.cfg + cd Documentation || die "cd failed" + dodoc -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 ${PN} without the 'minimal' USE flag." + fi + elog "" + 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 +} -- cgit v1.2.3-65-gdbad