Merge branch 'master' of ssh://tkolb.de/~/git/gentoo-overlays/cfr34k-overlay

This commit is contained in:
root 2015-01-29 23:08:41 +01:00
commit e995aa17df
4 changed files with 206 additions and 0 deletions

View file

@ -0,0 +1 @@
EBUILD kicad-999999999.ebuild 5028 SHA256 9213f246cc32b8641401221cbc0288acd58db692d415b219866eaa4ee0a4f941 SHA512 444fd3008de2a8707595fe7e347d3c0fcebee142bddccc961d1f47fe144aa71551d2194db78d6335d0ea52bcae2c7f29c6c3c1a7fa73d3466ab8cbe4d3a3e369 WHIRLPOOL a8e714eabf8295d101b1546538311017bb0280d79588ccbfc4f044b716efe56c5e987bb8d91bf2d9b286035634a00f5efb600e427c96ccef8bf34893346cc8d2

View file

@ -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="3.0"
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:3.0[X,opengl,webkit]
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:3.0 )
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
}

View file

@ -0,0 +1 @@
EBUILD fileshare-9999.ebuild 526 SHA256 5e456fc0a20f4d0d1f116bb7c8f42db33132223d75e045b0f336185026e589ab SHA512 98f2595496c25bb7b8216c538868259a5bba070ccb8a1e22ceeff33c1e2d99f602c01ce060f8fc4ecc901a74bd97337f02e03b481f748a1a3027d145ced07811 WHIRLPOOL 8cdfd04d9f086cb6533311a4b78b5e03244e0f99f6536815aa408f8ce592797e63d4add8825da516cb4c1a2fce773fe5a53f2a1188df9a4d034fbea377a7b0d6

View file

@ -0,0 +1,28 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit git-r3
DESCRIPTION="A small HTTP Server for quickly sharing files over the network."
HOMEPAGE="http://git.tkolb.de/fileshare/"
EGIT_REPO_URI="git://git.tkolb.de/fileshare.git"
LICENSE="PIZZAWARE"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="net-libs/libmicrohttpd[messages]"
RDEPEND="${DEPEND}"
src_compile() {
make BUILD=release
}
src_install() {
dobin bin/release/fileshare
}