Several updates and new packages
This commit is contained in:
parent
2d1b0a55dd
commit
32a2ecd537
@ -5,10 +5,13 @@ AUX arduino-1.6.9-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de435
|
|||||||
AUX arduino-1.6.9-build.xml.patch 29384 SHA256 9417ebed1e3f122eefbc8992b700f3865bfda53974ac04a284f1ac7a8f76099e SHA512 0a7b6bfaa252b56f3685e0b5acccd92db8b794523bed3e7750206fe303ba2004b3aa6e1086601a0adbb81277c4adc4ef6b9f0a35fe4b06fad2d9406e33b5359e WHIRLPOOL 3e705f9df74208bc16105f775d92216cbbd41156f0799481d6870b91be6e034d810e7d3a863875a523877855d9fc979f01c72c083649ddc88607cbc9e25adcc1
|
AUX arduino-1.6.9-build.xml.patch 29384 SHA256 9417ebed1e3f122eefbc8992b700f3865bfda53974ac04a284f1ac7a8f76099e SHA512 0a7b6bfaa252b56f3685e0b5acccd92db8b794523bed3e7750206fe303ba2004b3aa6e1086601a0adbb81277c4adc4ef6b9f0a35fe4b06fad2d9406e33b5359e WHIRLPOOL 3e705f9df74208bc16105f775d92216cbbd41156f0799481d6870b91be6e034d810e7d3a863875a523877855d9fc979f01c72c083649ddc88607cbc9e25adcc1
|
||||||
AUX arduino-1.6.9-platform.patch 1102 SHA256 4026317625b48b4f845b31655a3553417e62cfd96072ac3b9dc2166806e95838 SHA512 91300f146fac62c16e542536e780ade8e4a10f95dc0e254fd7de1504eedec3fccffe6ef137ab05b457c9c675007b4067d53736e409c7dab7711e590ede22e4e4 WHIRLPOOL 787bfa52278cc2cc443c346bac7e7f1f9a52be409e64fc04c9a77461d3770118bf0ae583316918190fdd12c975d59869a5dc19157739bc37b396ce92a0adb07c
|
AUX arduino-1.6.9-platform.patch 1102 SHA256 4026317625b48b4f845b31655a3553417e62cfd96072ac3b9dc2166806e95838 SHA512 91300f146fac62c16e542536e780ade8e4a10f95dc0e254fd7de1504eedec3fccffe6ef137ab05b457c9c675007b4067d53736e409c7dab7711e590ede22e4e4 WHIRLPOOL 787bfa52278cc2cc443c346bac7e7f1f9a52be409e64fc04c9a77461d3770118bf0ae583316918190fdd12c975d59869a5dc19157739bc37b396ce92a0adb07c
|
||||||
AUX arduino-1.6.9-script.patch 580 SHA256 553335d62134c9ca66e7b9f0b9496f187c76a3223438f2659e29d51cdd55776d SHA512 65b2868a18201f738a64377d965601dda77cee9713720e1d91de4378038083669370e3353b82f48f41c27d0ff65a859a8acc9b15bb20ba55bb7685daa98db173 WHIRLPOOL 2b9de5c030c05f48a52fd67f54d2ae1a25b1f95b1e02a69a172fe286d9b1c6912a652954b3e6d35b1c0cf252ba2ccaffa86e844e9f8075323ef1e413a0a988af
|
AUX arduino-1.6.9-script.patch 580 SHA256 553335d62134c9ca66e7b9f0b9496f187c76a3223438f2659e29d51cdd55776d SHA512 65b2868a18201f738a64377d965601dda77cee9713720e1d91de4378038083669370e3353b82f48f41c27d0ff65a859a8acc9b15bb20ba55bb7685daa98db173 WHIRLPOOL 2b9de5c030c05f48a52fd67f54d2ae1a25b1f95b1e02a69a172fe286d9b1c6912a652954b3e6d35b1c0cf252ba2ccaffa86e844e9f8075323ef1e413a0a988af
|
||||||
|
AUX arduino-1.8.1-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531
|
||||||
AUX arduino.desktop 228 SHA256 3b89b4fe43d2a0d40e757be94859b6809bd49f85d2c47a92e78b286d7de0ae39 SHA512 8c8b8b3306eeaa8640716abba14c44e2886b6d23c3cf2b5503595cb89a59845bdd5a57800fd07cea777be20e27621427bbb6bad2a8fe9513f7dfac5a41f8bde4 WHIRLPOOL c2d2db0cf2c10448801a718adc4ab4b58b0e70e2c9cfd31115d5a0c79fc1f69de3ffb67e2560636239b6fd6b24f9bddbf6ece2f72a69d2e4e0c042a36a6b08f8
|
AUX arduino.desktop 228 SHA256 3b89b4fe43d2a0d40e757be94859b6809bd49f85d2c47a92e78b286d7de0ae39 SHA512 8c8b8b3306eeaa8640716abba14c44e2886b6d23c3cf2b5503595cb89a59845bdd5a57800fd07cea777be20e27621427bbb6bad2a8fe9513f7dfac5a41f8bde4 WHIRLPOOL c2d2db0cf2c10448801a718adc4ab4b58b0e70e2c9cfd31115d5a0c79fc1f69de3ffb67e2560636239b6fd6b24f9bddbf6ece2f72a69d2e4e0c042a36a6b08f8
|
||||||
AUX platform-1.6.9/platform.txt 1447 SHA256 1a971137ac7575b4a6cb5869f79158db8ab61c1e899a275900ae9cce9fd140ed SHA512 269be33d4a2f22f59f149037614eca87b062c4f41f71dd3576db395d67018954f855d79b370a0b88b823985b287e163bbd0bdc430546a5ed3f5316fd7a0f41cb WHIRLPOOL 0daa35b52af6f8a1e6a3a58d4db7bb63798ac656400bf4227e94c166a1e8c159ef01012f1a8ea0a3c9a2aa836e5e00e1e5c6e65c0d34f72f7465419caa2ddeb0
|
AUX platform-1.6.9/platform.txt 1447 SHA256 1a971137ac7575b4a6cb5869f79158db8ab61c1e899a275900ae9cce9fd140ed SHA512 269be33d4a2f22f59f149037614eca87b062c4f41f71dd3576db395d67018954f855d79b370a0b88b823985b287e163bbd0bdc430546a5ed3f5316fd7a0f41cb WHIRLPOOL 0daa35b52af6f8a1e6a3a58d4db7bb63798ac656400bf4227e94c166a1e8c159ef01012f1a8ea0a3c9a2aa836e5e00e1e5c6e65c0d34f72f7465419caa2ddeb0
|
||||||
DIST arduino-1.6.7.tar.gz 77578555 SHA256 ae524c19c3b6fcd00cbf709e693321a13e694316fea5642a54b02d4170213586 SHA512 2f76aedad6f8bb9c3e17c4b02ecf816f5fe628b4856a6bd9a3d7c0fe3d9999a39df60a4794d99b1e62c3ae41695350f27d148a0925f7f59b8071359d33be2b00 WHIRLPOOL c5bdf2a67ff37fc8bc4a002ea24f003d97f6ae04632d906fc4d37d2af64c113f698e26720c73b40afc39925f03206a41a4ec0faba0d80756427714102ad47f90
|
DIST arduino-1.6.7.tar.gz 77578555 SHA256 ae524c19c3b6fcd00cbf709e693321a13e694316fea5642a54b02d4170213586 SHA512 2f76aedad6f8bb9c3e17c4b02ecf816f5fe628b4856a6bd9a3d7c0fe3d9999a39df60a4794d99b1e62c3ae41695350f27d148a0925f7f59b8071359d33be2b00 WHIRLPOOL c5bdf2a67ff37fc8bc4a002ea24f003d97f6ae04632d906fc4d37d2af64c113f698e26720c73b40afc39925f03206a41a4ec0faba0d80756427714102ad47f90
|
||||||
DIST arduino-1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049
|
DIST arduino-1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049
|
||||||
|
DIST arduino-1.8.1.tar.gz 86826305 SHA256 cc82bbb2979fbf53dc4775668de7e5eefcb61ab65f46507aa933107ad458d268 SHA512 1ca8c306d2bdee52fbc69ba7b933ac9a3a1154cfa2e5861e75b5eb2ca1cdfa7843b36b36eae68d8d932194be5ea938fbe3c2492b87d81d88d88edd9d0aeb1541 WHIRLPOOL 0ca152bbf1600e0f15ceb11130252fb353f2b7b74c461f8d8725ca9175295bc29a1609c847a1544df4053673b8e01207267c9e9a493fd08dc75cf05614c697b7
|
||||||
DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876
|
DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876
|
||||||
EBUILD arduino-1.6.7.ebuild 3617 SHA256 c078fd90e9d0eed48b0757dc1df7a1d078feef5abfcde907bd42317d1f146d9e SHA512 6f193f84325863969546350d6c10378aeaade1eb6f5207e824c9546ae500da3e93b003d52ef752a8c8e25371ba8838cc32659df0c9ef879a8956762dc24fa9eb WHIRLPOOL d67cc32dea2c31f3ed1dc130ea8a3e1c6d006d40e069c4efa00fdea46c40a00d92ab6c0b5205a03a5386ab6452cf040e03bc2e23dec0dfae302b2aeefd34b0ad
|
EBUILD arduino-1.6.7.ebuild 3617 SHA256 c078fd90e9d0eed48b0757dc1df7a1d078feef5abfcde907bd42317d1f146d9e SHA512 6f193f84325863969546350d6c10378aeaade1eb6f5207e824c9546ae500da3e93b003d52ef752a8c8e25371ba8838cc32659df0c9ef879a8956762dc24fa9eb WHIRLPOOL d67cc32dea2c31f3ed1dc130ea8a3e1c6d006d40e069c4efa00fdea46c40a00d92ab6c0b5205a03a5386ab6452cf040e03bc2e23dec0dfae302b2aeefd34b0ad
|
||||||
EBUILD arduino-1.6.9.ebuild 4424 SHA256 415aeee47ac97eeab8a63450c88edaf18c24e40fcd24b00bb8b636eafb846346 SHA512 b7e8ffe93351b851415bde8d1c6c14df4b1a44944fd44837a09bc9c7acd969141286c0aaac0ab79c726e2ac85cdf4f84ef75db1d9b62bb366bbf4d6ca4190dfd WHIRLPOOL 1a4166c5400062930fe54ee725d17f5173d03bd053b750643ec8750143caf37624e35b041a15605a1d0b38487abb187bea19b29b7fbce64c714eacbf5a0ec219
|
EBUILD arduino-1.6.9.ebuild 4424 SHA256 415aeee47ac97eeab8a63450c88edaf18c24e40fcd24b00bb8b636eafb846346 SHA512 b7e8ffe93351b851415bde8d1c6c14df4b1a44944fd44837a09bc9c7acd969141286c0aaac0ab79c726e2ac85cdf4f84ef75db1d9b62bb366bbf4d6ca4190dfd WHIRLPOOL 1a4166c5400062930fe54ee725d17f5173d03bd053b750643ec8750143caf37624e35b041a15605a1d0b38487abb187bea19b29b7fbce64c714eacbf5a0ec219
|
||||||
|
EBUILD arduino-1.8.1.ebuild 4336 SHA256 495a8f4bc548029c8dc9b85be15860d96db3588cd0a0d5b9784efad409e9e5e8 SHA512 9381e6cd272fb9fe4e1db91fd351d7420dc980b27b0451f415614f546d9ce8d4b267cd074bd2930383ef442cf75988671062010b58da90efd5f01f4b4f6c130e WHIRLPOOL 1fc492137bb3fb5ed834827d48e6229ef09967081bd33ee19da3e2cd4d951b1c69384e525f2bae8df4338424b6d20dcf65ff094796464f4c8fcd45a14f2efc25
|
||||||
|
145
dev-embedded/arduino/arduino-1.8.1.ebuild
Normal file
145
dev-embedded/arduino/arduino-1.8.1.ebuild
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
JAVA_PKG_IUSE="doc +examples"
|
||||||
|
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||||
|
HOMEPAGE="http://arduino.cc/ https://github.com/arduino/Arduino"
|
||||||
|
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
mirror://gentoo/arduino-icons.tar.bz2"
|
||||||
|
LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 x86"
|
||||||
|
RESTRICT="strip binchecks"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
COMMONDEP="
|
||||||
|
dev-embedded/listserialportsc
|
||||||
|
dev-java/jna:0
|
||||||
|
>dev-java/rxtx-2.1:2
|
||||||
|
dev-util/astyle"
|
||||||
|
|
||||||
|
RDEPEND="${COMMONDEP}
|
||||||
|
dev-embedded/avrdude
|
||||||
|
dev-embedded/uisp
|
||||||
|
sys-devel/crossdev
|
||||||
|
>=virtual/jre-1.8"
|
||||||
|
|
||||||
|
DEPEND="${COMMONDEP}
|
||||||
|
>=virtual/jdk-1.8"
|
||||||
|
|
||||||
|
EANT_GENTOO_CLASSPATH="jna,rxtx-2"
|
||||||
|
EANT_EXTRA_ARGS="-Dversion=${PV}"
|
||||||
|
EANT_BUILD_TARGET="build"
|
||||||
|
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
# cd ../"${S}"
|
||||||
|
mv Arduino-${PV} arduino-${PV}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
java_prepare() {
|
||||||
|
# Remove the libraries to ensure the system
|
||||||
|
# libraries are used
|
||||||
|
# rm app/lib/* || die
|
||||||
|
rm -rf app/src/processing/app/macosx || die
|
||||||
|
# Patch build/build.xml - remove local jar files
|
||||||
|
# for rxtx and ecj (use system wide versions)
|
||||||
|
# epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||||
|
|
||||||
|
# Patch launcher script to include rxtx class/ld paths
|
||||||
|
# epatch "${FILESDIR}"/${P}-script.patch
|
||||||
|
|
||||||
|
# Some OS X ThinkDifferent stuff from processing library
|
||||||
|
epatch "${FILESDIR}"/${P}-Do-Not-ThinkDifferent.patch
|
||||||
|
|
||||||
|
# Patch platform.txt for compiler paths
|
||||||
|
# epatch "${FILESDIR}"/${P}-platform.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
eant -f arduino-core/build.xml
|
||||||
|
EANT_GENTOO_CLASSPATH_EXTRA="../arduino-core/arduino-core.jar"
|
||||||
|
eant -f app/build.xml
|
||||||
|
eant "${EANT_EXTRA_ARGS}" -f build/build.xml
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd "${S}"/build/linux/work || die
|
||||||
|
# java-pkg_dojar lib/arduino-core.jar lib/pde.jar
|
||||||
|
java-pkg_dojar lib/*.jar
|
||||||
|
java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base
|
||||||
|
|
||||||
|
# This doesn't seem to be optional, it just hangs when starting without
|
||||||
|
# examples in correct place
|
||||||
|
#if use examples; then
|
||||||
|
#java-pkg_doexamples examples
|
||||||
|
#docompress -x /usr/share/doc/${P}/examples/
|
||||||
|
#fi
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
dodoc revisions.txt "${S}"/readme.txt
|
||||||
|
dohtml -r reference
|
||||||
|
java-pkg_dojavadoc "${S}"/build/javadoc/everything
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto "/usr/share/${PN}/"
|
||||||
|
doins -r examples hardware libraries
|
||||||
|
fowners -R root:uucp "/usr/share/${PN}/hardware"
|
||||||
|
|
||||||
|
exeinto "/usr/share/${PN}/"
|
||||||
|
doexe arduino-builder
|
||||||
|
|
||||||
|
insinto "/usr/share/${PN}/lib"
|
||||||
|
doins -r lib/*.txt lib/theme lib/*.png lib/*.conf lib/*.key
|
||||||
|
|
||||||
|
# For TeensyDuino
|
||||||
|
dosym /usr/bin/arduino "/usr/share/${PN}/arduino"
|
||||||
|
|
||||||
|
# use system avrdude
|
||||||
|
# patching class files is too hard
|
||||||
|
dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude"
|
||||||
|
dodir "/usr/share/${PN}/hardware/tools/avr/etc/"
|
||||||
|
dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avr/etc/avrdude.conf"
|
||||||
|
|
||||||
|
dosym /usr/$(get_libdir)/libastyle.so "/usr/share/${PN}/lib/libastylej.so"
|
||||||
|
dosym /usr/$(get_libdir)/liblistSerialsj.so "/usr/share/${PN}/lib/liblistSerialsj.so"
|
||||||
|
dodir "/usr/share/${PN}/hardware/tools/avr/bin/"
|
||||||
|
dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-g++"
|
||||||
|
dosym /usr/bin/avr-gcc "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc"
|
||||||
|
dosym /usr/bin/avr-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-ar"
|
||||||
|
dosym /usr/bin/avr-objcopy "/usr/share/${PN}/hardware/tools/avr/bin/avr-objcopy"
|
||||||
|
dosym /usr/bin/avr-size "/usr/share/${PN}/hardware/tools/avr/bin/avr-size"
|
||||||
|
|
||||||
|
if [ -x /usr/bin/avr-ld ]; then
|
||||||
|
BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' )
|
||||||
|
dosym /usr/lib/binutils/avr/${BU_VER}/ldscripts "/usr/avr/lib/ldscripts"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# install menu and icons
|
||||||
|
domenu "${FILESDIR}/${PN}.desktop"
|
||||||
|
for sz in 16 24 32 48 128 256; do
|
||||||
|
newicon -s $sz \
|
||||||
|
"${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \
|
||||||
|
"${PN}.png"
|
||||||
|
done
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [ ! -x /usr/bin/avr-g++ ]; then
|
||||||
|
ewarn "Install avr crosscompiler using:"
|
||||||
|
ewarn " USE=\"-openmp -hardened -sanitize -vtv\" \\"
|
||||||
|
ewarn " crossdev -s4 --ex-gdb -v -S --target avr"
|
||||||
|
echo
|
||||||
|
ewarn "Afterwards, create a symlink for ldscripts:"
|
||||||
|
ewarn " BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' ) \\"
|
||||||
|
ewarn " ln -s /usr/lib/binutils/avr/\$BU_VER/ldscripts /usr/avr/lib/ldscripts"
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
diff -uNr a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java
|
||||||
|
--- a/app/src/processing/app/Base.java 2015-11-07 16:00:54.614383789 +0100
|
||||||
|
+++ b/app/src/processing/app/Base.java 2015-11-07 16:01:09.486384112 +0100
|
||||||
|
@@ -49,7 +49,6 @@
|
||||||
|
import processing.app.helpers.filefilters.OnlyFilesWithExtension;
|
||||||
|
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
|
||||||
|
import processing.app.legacy.PApplet;
|
||||||
|
-import processing.app.macosx.ThinkDifferent;
|
||||||
|
import processing.app.packages.LibraryList;
|
||||||
|
import processing.app.packages.UserLibrary;
|
||||||
|
import processing.app.syntax.PdeKeywords;
|
||||||
|
@@ -129,10 +128,6 @@
|
||||||
|
|
||||||
|
splashScreenHelper.splashText(_("Loading configuration..."));
|
||||||
|
|
||||||
|
- if (OSUtils.isMacOS()) {
|
||||||
|
- ThinkDifferent.init();
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
try {
|
||||||
|
guardedMain(args);
|
||||||
|
} catch (Throwable e) {
|
6
dev-embedded/pk2cmd/Manifest
Normal file
6
dev-embedded/pk2cmd/Manifest
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
AUX pk2cmd-add-share-dir-for-dev-file-1.20.patch 668 SHA256 c59040ad6b5d840f3e55990fa58230610aac9164196ea0b3255fc1f4616c882d SHA512 f586c7eed0eac0d68e495d582c85c802c98ac8c84f7f21b00616edbbace74b877d21fd43334e5accfd02413d4a6d9d9811241feec1eaeae3a7647c745206d638 WHIRLPOOL a22205d9a8b1c95f9fc341e5f3db41df47ec0787ea44267c19c58f7ad47f3beda411d1fcdf003380b41960a34a0c83cd03fb6bd62cb4bca05669484d6e48257b
|
||||||
|
AUX pk2cmd-add-share-dir-for-dev-file.patch 1268 SHA256 58ee54b394a19c20e075e357b9d00b0e3609e758a2fed8488664bf189ae1be2b SHA512 d05ee8ca723ab02b156c7b544f54480fe9ff18611442a5a41d7ac755f651e6550d8f3fd8f38d348b89dd77112ede403b5ad4372cb75bd0e09315d74347bd1565 WHIRLPOOL b2f854934d9c36241f1a92e6e56b56ac01fc77faeec0b2fd9b33475ebfb5289d967ee587811ceb8bb73f13d501ffacb4a995180174ab87578bc8fdd40693429b
|
||||||
|
DIST pk2cmdv1.20LinuxMacSource.tar.gz 223175 SHA256 903027de5036eda3a648decece4acfcefe91e754ef0d4eacba0e5ba8b18857fa SHA512 72675eb287c1410c82ff49b4922afd28a8017b4e8517d10e77e0f0b111630f90881f778d754a47c97453f45412e965e281435d495fc70a047bd7357dd64f7b24 WHIRLPOOL f4f36412d4e653a20866bcbe9ec25b94e8ff4e75c1ae2e4944a42682832c9b64b683248bc559e73b976902906d2959492867f055291588cf66d9b83838174c75
|
||||||
|
EBUILD pk2cmd-1.20.ebuild 1212 SHA256 1d033af2b7093c2973c329e2fb0e1e4ce090385cc78348fc8b6f0dfb6444fe9f SHA512 16960cfdb7887768008d8dc61d04b66cdf402852bee35542c93dab6d7b43c41dae4d4c8b80549d26b9801bb8df430bf982106219072efda4c20fb08919386358 WHIRLPOOL 6a7b16f1d3bbdc475b13f35a9c3816477f07c97ce4ad931154605019e1cfc19af4b8bf4ade978cadf6e82a9dec46a149ce889fed9bcc050d4a6cef6e677e481b
|
||||||
|
EBUILD pk2cmd-9999.ebuild 1423 SHA256 d1589444ec2029265abf73dbacb751c73f44a567d94788d0622363f313fdb743 SHA512 6207ae1b9792cce8950e6ae4be85991f22c8728b98b526b6c408096b8327ecff644f0cb2fd59cc02f2e15a54dbe441dc6394756cfb91d6f713adaa8322d52dda WHIRLPOOL 1e7d32194b0e1570780f015ddae8d143bca3b2b8b12fa76379fbc41661ca8c9d9f0d12d40fafaae400102e7302feb15ea65a11fe1b2a50abc9ead143b15dd5b0
|
||||||
|
MISC metadata.xml 367 SHA256 b7b67f2fc54adf03857f1024784295bcedebc293481d25a7bfeaa073d2419cfb SHA512 09c3d20eb53c9927bb7489b3522f4daa0809a379760d950a33eed0b9ddfccfe1eae4324e5c674c4731779ccb45a95627575941f2d22387efcda406947256cb22 WHIRLPOOL 6620a00bfdc65555675fd5a7099d57c6ee2d9e1115e5b852865de97befd1759305373964af2afdabb0142a540d1472143a9e3aa287c016994e643775b20898a6
|
@ -0,0 +1,16 @@
|
|||||||
|
--- cmd_app.cpp.old 2009-01-31 21:23:30.000000000 +0100
|
||||||
|
+++ cmd_app.cpp 2009-01-31 21:25:48.000000000 +0100
|
||||||
|
@@ -88,7 +88,12 @@
|
||||||
|
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
|
||||||
|
if (_tcslen(tempString) < 17)
|
||||||
|
{
|
||||||
|
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||||
|
+ // Try /usr/share/pk2 first
|
||||||
|
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
|
||||||
|
+
|
||||||
|
+ if(access(tempString, 0))
|
||||||
|
+ // Well, that didn't work, default to the current directory
|
||||||
|
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!PicFuncs.ReadDeviceFile(tempString))
|
@ -0,0 +1,25 @@
|
|||||||
|
--- pk2cmd-9999/pk2cmd/cmd_app.cpp.orig 2017-05-17 15:46:14.454813532 +0200
|
||||||
|
+++ pk2cmd-9999/pk2cmd/cmd_app.cpp 2017-05-17 15:46:59.444690407 +0200
|
||||||
|
@@ -8,7 +8,7 @@
|
||||||
|
// Software must have this entire copyright and disclaimer notice prominently
|
||||||
|
// posted in a location where end users will see it (e.g., installation program,
|
||||||
|
// program headers, About Box, etc.). To the maximum extent permitted by law,
|
||||||
|
-// this Software is distributed “AS IS” and WITHOUT ANY WARRANTY INCLUDING BUT
|
||||||
|
+// this Software is distributed ?AS IS? and WITHOUT ANY WARRANTY INCLUDING BUT
|
||||||
|
// NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR
|
||||||
|
// PARTICULAR PURPOSE, or NON-INFRINGEMENT. IN NO EVENT WILL MICROCHIP OR ITS
|
||||||
|
// LICENSORS BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL
|
||||||
|
@@ -88,7 +88,12 @@
|
||||||
|
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
|
||||||
|
if (_tcslen(tempString) < 17)
|
||||||
|
{
|
||||||
|
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||||
|
+ // Try /usr/share/pk2 first
|
||||||
|
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
|
||||||
|
+
|
||||||
|
+ if(access(tempString, 0))
|
||||||
|
+ // Well, that didn't work, default to the current directory
|
||||||
|
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!PicFuncs.ReadDeviceFile(tempString))
|
11
dev-embedded/pk2cmd/metadata.xml
Normal file
11
dev-embedded/pk2cmd/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>embedded@gentoo.org</email>
|
||||||
|
<name>Embedded Gentoo</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription lang="en">
|
||||||
|
This application allows the use of the PICKit2 PIC programming device.
|
||||||
|
</longdescription>
|
||||||
|
</pkgmetadata>
|
49
dev-embedded/pk2cmd/pk2cmd-1.20.ebuild
Normal file
49
dev-embedded/pk2cmd/pk2cmd-1.20.ebuild
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="An application for working with the Microchip PicKit2 PIC programmer"
|
||||||
|
HOMEPAGE="http://www.microchip.com/pickit2"
|
||||||
|
SRC_URI="http://ww1.microchip.com/downloads/en/DeviceDoc/${PN}v${PV}LinuxMacSource.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MicroChip-PK2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ppc ppc64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="virtual/libusb:0"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${PN}v${PV}LinuxMacSource
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Patch adds /usr/share/pk2 to the default search for the device file
|
||||||
|
epatch "${FILESDIR}/${PN}-add-share-dir-for-dev-file-${PV}.patch"
|
||||||
|
|
||||||
|
# Fix up the Makefile
|
||||||
|
sed \
|
||||||
|
-e 's:#TARGET=linux:TARGET=linux:' \
|
||||||
|
-e 's:DBG=-O2:DBG=:' \
|
||||||
|
-e 's:^CFLAGS=:CFLAGS+=:' \
|
||||||
|
-e 's:^LDFLAGS=:LDFLAGS+=:' \
|
||||||
|
-e 's:^LIBUSB=/usr/local:LIBUSB=/usr:' \
|
||||||
|
-e "s:^CC=g++::" \
|
||||||
|
-i Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCXX)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# Copy the device files and PicKit2 OS
|
||||||
|
insinto "/usr/share/pk2"
|
||||||
|
doins PK2DeviceFile.dat PK2V023200.hex
|
||||||
|
# Install the program
|
||||||
|
dobin pk2cmd
|
||||||
|
# Install the documentation
|
||||||
|
dodoc ReadmeForPK2CMDLinux2-6.txt usbhotplug.txt
|
||||||
|
}
|
58
dev-embedded/pk2cmd/pk2cmd-9999.ebuild
Normal file
58
dev-embedded/pk2cmd/pk2cmd-9999.ebuild
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="An application for working with the Microchip PicKit2 PIC programmer"
|
||||||
|
HOMEPAGE="http://www.microchip.com/pickit2"
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="
|
||||||
|
git://github.com/psmay/${PN}.git
|
||||||
|
https://github.com/psmay/${PN}.git
|
||||||
|
"
|
||||||
|
inherit git-r3
|
||||||
|
S=${WORKDIR}/${P}/${PN}
|
||||||
|
else
|
||||||
|
SRC_URI="http://ww1.microchip.com/downloads/en/DeviceDoc/${PN}v${PV}LinuxMacSource.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ppc ppc64 ~x86"
|
||||||
|
S=${WORKDIR}/${PN}v${PV}LinuxMacSource
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MicroChip-PK2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="virtual/libusb:0"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Patch adds /usr/share/pk2 to the default search for the device file
|
||||||
|
epatch "${FILESDIR}/${PN}-add-share-dir-for-dev-file.patch"
|
||||||
|
|
||||||
|
# Fix up the Makefile
|
||||||
|
sed \
|
||||||
|
-e 's:#TARGET=linux:TARGET=linux:' \
|
||||||
|
-e 's:DBG=-O2:DBG=:' \
|
||||||
|
-e 's:^CFLAGS=:CFLAGS+=:' \
|
||||||
|
-e 's:^LDFLAGS=:LDFLAGS+=:' \
|
||||||
|
-e 's:^LIBUSB=/usr/local:LIBUSB=/usr:' \
|
||||||
|
-e "s:^CC=g++::" \
|
||||||
|
-i Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCXX)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# Copy the device files and PicKit2 OS
|
||||||
|
insinto "/usr/share/pk2"
|
||||||
|
doins PK2DeviceFile.dat PK2V023200.hex
|
||||||
|
# Install the program
|
||||||
|
dobin pk2cmd
|
||||||
|
# Install the documentation
|
||||||
|
dodoc ReadmeForPK2CMDLinux2-6.txt usbhotplug.txt
|
||||||
|
}
|
6
dev-libs/pigpio/Manifest
Normal file
6
dev-libs/pigpio/Manifest
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
AUX pigpio-44-MakeRemote.patch 813 SHA256 c5a631132680c2aac91e662acba8ac57ffe8de692be131a8ff35801bc3a043ef SHA512 fcc6c3a27f889b688928c3c65683c91b449eff3de692fed33f1465f97ff7c30844a5927dfef96225034831a4a3512f245292ce1efe5fac6c3f7f2472a7987cd8 WHIRLPOOL 3501024ee68375ba226ad26afeebe46fe15c05482012139cf40f37f02ccb3d6170d28389510fb2ced6945f7096ecbf4c9a5a8b6793969d8d954a9c998304dd5e
|
||||||
|
AUX pigpio-44-Makefile.patch 1333 SHA256 266bccc58f04424a9066886e2c1dd87edb1d396892372d0fee6c76ba8ab3ff69 SHA512 ac1a299bfcce2325ceb01c803d93fae3da6c7daa1d6efd8878defe6c12ca493fea16d484434af6eb0eda8049033ad2631f9a5100026af4204274e877e7327696 WHIRLPOOL b4307963dd332af90b09b127114bfa1677c9019403c58f11bf45562a8c6893a397cdc332a532cd208754e943a942ea544fc7396da02aa91dc311db9877fefa70
|
||||||
|
AUX pigpio-44-format-security.patch 511 SHA256 c2b0c606240e6c5b4e70289ee23f1b0fb3c9482951b99e1feee3d3dec02ca3a8 SHA512 02f025ca0c24fa08a52bc084c2c72c0a3a41ebc13299574e7de65ab81c0abb888d460dbac7592a856bc40110094a9bcf06072a0c5adb471dee28581bd08c2dd9 WHIRLPOOL 0b7850d8c42040bddb6027afa6ed93dc5c3e1de0565451a751b1bac354fa9243a5eb23a56a2739d502cf9fcd0a7ada8883027df0dd871cda5c8075be1380553c
|
||||||
|
AUX pigpio-9999-Makefile.patch 1404 SHA256 41ba514f42199778221c3e715d36a675f519bfcd2da82c2cf6d670cff78a13b2 SHA512 7fb0c8e622dc7d01e9426fbb0d7e12e797cea3997726873636381f48b5ffc0754896eb94feb727084bc1d0087511c7096cbe9e189d658a4c33c9f2af56f2f402 WHIRLPOOL 3b0d62ccddeadef2093f3af48da038aac00b3bb2fa6b1d43e753aa7c8fc6888bb6ea080c3c876c5d19d650ae1b64fae3aeac83ec8cb8d33cee2de87a08b97afe
|
||||||
|
EBUILD pigpio-9999.ebuild 1483 SHA256 cd2525c0b985276544d9eeccd59e37f41b4ee81890d674f43d7de06b3b42c371 SHA512 a524b22a27242e22d64c8fb4e9e1633cec6bd47a5ac5ceaea25427e2f48e2c31fe5c2eccfa8009bd89d8694cba7ef26924560729296d37c5c9d527501584df8e WHIRLPOOL 65937192d4c63feb03d0b7f0178db14aec52f1a19523f4da9b1d909a71564afdb88ae9c6c9a6a5ee666c7a164ac98dfc84ea9effebaeb37093e34f767d25f900
|
||||||
|
MISC metadata.xml 297 SHA256 652f1fc58682353a3236a2b0105df49f49f4a523f74148f000864cc40f37affd SHA512 9284ce2486abe9a813147f1fc1d395fffd5f20f652281077ff39c823eb10a317fe5dd14413e39f3a6d25b8814535482105fcba8ba6af0988a2141e403d3b3d8b WHIRLPOOL ff34e1054d63ad80545588396d05c9106257620c3e1705b9851b6b52309a6f76cdfeba63217b8b2d6fb9fdcbe9f8e4b6d33ee520179bb17de7ba7dd3126e2b9a
|
29
dev-libs/pigpio/files/pigpio-44-MakeRemote.patch
Normal file
29
dev-libs/pigpio/files/pigpio-44-MakeRemote.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- pigpio-9999/MakeRemote
|
||||||
|
+++ pigpio-9999/MakeRemote
|
||||||
|
@@ -1,8 +1,4 @@
|
||||||
|
#
|
||||||
|
-CC = gcc
|
||||||
|
-SIZE = size
|
||||||
|
-SHLIB = gcc -shared
|
||||||
|
-STRIPLIB = strip --strip-unneeded
|
||||||
|
|
||||||
|
CFLAGS += -O3 -Wall -pthread
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
bindir = $(exec_prefix)/bin
|
||||||
|
includedir = $(prefix)/include
|
||||||
|
libdir = $(prefix)/lib
|
||||||
|
-mandir = $(prefix)/man
|
||||||
|
+mandir = $(prefix)/share/man
|
||||||
|
|
||||||
|
all: $(ALL) pigpio.py setup.py
|
||||||
|
|
||||||
|
@@ -48,8 +44,6 @@
|
||||||
|
install -m 0644 libpigpiod_if2.so $(DESTDIR)$(libdir)
|
||||||
|
install -m 0755 -d $(DESTDIR)$(bindir)
|
||||||
|
install -m 0755 pigs $(DESTDIR)$(bindir)
|
||||||
|
- python2 setup.py install
|
||||||
|
- python3 setup.py install
|
||||||
|
install -m 0755 -d $(DESTDIR)$(mandir)/man1
|
||||||
|
install -m 0644 *.1 $(DESTDIR)$(mandir)/man1
|
||||||
|
install -m 0755 -d $(DESTDIR)$(mandir)/man3
|
42
dev-libs/pigpio/files/pigpio-44-Makefile.patch
Normal file
42
dev-libs/pigpio/files/pigpio-44-Makefile.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
--- pigpio-44/Makefile
|
||||||
|
+++ pigpio-44/Makefile
|
||||||
|
@@ -1,10 +1,4 @@
|
||||||
|
#
|
||||||
|
-CC = gcc
|
||||||
|
-AR = ar
|
||||||
|
-RANLIB = ranlib
|
||||||
|
-SIZE = size
|
||||||
|
-SHLIB = gcc -shared
|
||||||
|
-STRIPLIB = strip --strip-unneeded
|
||||||
|
|
||||||
|
CFLAGS += -O3 -Wall -pthread
|
||||||
|
|
||||||
|
@@ -32,7 +26,7 @@
|
||||||
|
bindir = $(exec_prefix)/bin
|
||||||
|
includedir = $(prefix)/include
|
||||||
|
libdir = $(prefix)/lib
|
||||||
|
-mandir = $(prefix)/man
|
||||||
|
+mandir = $(prefix)/share/man
|
||||||
|
|
||||||
|
all: $(ALL)
|
||||||
|
|
||||||
|
@@ -80,16 +74,13 @@
|
||||||
|
install -m 0755 libpigpiod_if.so $(DESTDIR)$(libdir)
|
||||||
|
install -m 0755 libpigpiod_if2.so $(DESTDIR)$(libdir)
|
||||||
|
install -m 0755 -d $(DESTDIR)$(bindir)
|
||||||
|
- install -m 0755 -s pig2vcd $(DESTDIR)$(bindir)
|
||||||
|
- install -m 0755 -s pigpiod $(DESTDIR)$(bindir)
|
||||||
|
- install -m 0755 -s pigs $(DESTDIR)$(bindir)
|
||||||
|
- if which python2; then python2 setup.py install; fi
|
||||||
|
- if which python3; then python3 setup.py install; fi
|
||||||
|
+ install -m 0755 pig2vcd $(DESTDIR)$(bindir)
|
||||||
|
+ install -m 0755 pigpiod $(DESTDIR)$(bindir)
|
||||||
|
+ install -m 0755 pigs $(DESTDIR)$(bindir)
|
||||||
|
install -m 0755 -d $(DESTDIR)$(mandir)/man1
|
||||||
|
install -m 0644 *.1 $(DESTDIR)$(mandir)/man1
|
||||||
|
install -m 0755 -d $(DESTDIR)$(mandir)/man3
|
||||||
|
install -m 0644 *.3 $(DESTDIR)$(mandir)/man3
|
||||||
|
- ldconfig
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(DESTDIR)$(includedir)/pigpio.h
|
20
dev-libs/pigpio/files/pigpio-44-format-security.patch
Normal file
20
dev-libs/pigpio/files/pigpio-44-format-security.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- pigpio-44/pigpio.c
|
||||||
|
+++ pigpio-44/pigpio.c
|
||||||
|
@@ -6269,7 +6269,7 @@
|
||||||
|
tp->id,
|
||||||
|
(unsigned)tp->nextTick.tv_sec,
|
||||||
|
(unsigned)tp->nextTick.tv_nsec);
|
||||||
|
- fprintf(stderr, buf);
|
||||||
|
+ fprintf(stderr, "%s", buf);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -6360,7 +6360,7 @@
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 5:
|
||||||
|
- fprintf(outFifo, cmdUsage);
|
||||||
|
+ fprintf(outFifo, "%s", cmdUsage);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 6:
|
42
dev-libs/pigpio/files/pigpio-9999-Makefile.patch
Normal file
42
dev-libs/pigpio/files/pigpio-9999-Makefile.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
diff -ur pigpio-9999.orig/Makefile pigpio-9999/Makefile
|
||||||
|
--- pigpio-9999.orig/Makefile 2016-11-04 10:17:06.305474989 +0100
|
||||||
|
+++ pigpio-9999/Makefile 2016-11-04 10:19:41.936609643 +0100
|
||||||
|
@@ -1,15 +1,6 @@
|
||||||
|
#
|
||||||
|
# Set CROSS_PREFIX to prepend to all compiler tools at once for easier
|
||||||
|
# cross-compilation.
|
||||||
|
-CROSS_PREFIX =
|
||||||
|
-CC = $(CROSS_PREFIX)gcc
|
||||||
|
-AR = $(CROSS_PREFIX)ar
|
||||||
|
-RANLIB = $(CROSS_PREFIX)ranlib
|
||||||
|
-SIZE = $(CROSS_PREFIX)size
|
||||||
|
-STRIP = $(CROSS_PREFIX)strip
|
||||||
|
-SHLIB = $(CC) -shared
|
||||||
|
-STRIPLIB = $(STRIP) --strip-unneeded
|
||||||
|
-
|
||||||
|
CFLAGS += -O3 -Wall -pthread
|
||||||
|
|
||||||
|
LIB1 = libpigpio.so
|
||||||
|
@@ -36,7 +27,7 @@
|
||||||
|
bindir = $(exec_prefix)/bin
|
||||||
|
includedir = $(prefix)/include
|
||||||
|
libdir = $(prefix)/lib
|
||||||
|
-mandir = $(prefix)/man
|
||||||
|
+mandir = $(prefix)/share/man
|
||||||
|
|
||||||
|
all: $(ALL)
|
||||||
|
|
||||||
|
@@ -90,13 +81,10 @@
|
||||||
|
install -m 0755 pig2vcd $(DESTDIR)$(bindir)
|
||||||
|
install -m 0755 pigpiod $(DESTDIR)$(bindir)
|
||||||
|
install -m 0755 pigs $(DESTDIR)$(bindir)
|
||||||
|
- if which python2; then python2 setup.py install; fi
|
||||||
|
- if which python3; then python3 setup.py install; fi
|
||||||
|
install -m 0755 -d $(DESTDIR)$(mandir)/man1
|
||||||
|
install -m 0644 *.1 $(DESTDIR)$(mandir)/man1
|
||||||
|
install -m 0755 -d $(DESTDIR)$(mandir)/man3
|
||||||
|
install -m 0644 *.3 $(DESTDIR)$(mandir)/man3
|
||||||
|
- ldconfig
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(DESTDIR)$(includedir)/pigpio.h
|
11
dev-libs/pigpio/metadata.xml
Normal file
11
dev-libs/pigpio/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer>
|
||||||
|
<email>xmw@gentoo.org</email>
|
||||||
|
<name>Michael Weber</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="remote">Only build remote access support</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
66
dev-libs/pigpio/pigpio-9999.ebuild
Normal file
66
dev-libs/pigpio/pigpio-9999.ebuild
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 )
|
||||||
|
DISTUTILS_OPTIONAL=1
|
||||||
|
inherit eutils git-r3 toolchain-funcs distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="C library for the Raspberry allowing control of general purpose input outputs"
|
||||||
|
HOMEPAGE="http://abyz.co.uk/rpi/pigpio"
|
||||||
|
EGIT_REPO_URI="https://github.com/joan2937/${PN}"
|
||||||
|
|
||||||
|
LICENSE="public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS=""
|
||||||
|
IUSE="examples python remote"
|
||||||
|
|
||||||
|
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-44-format-security.patch \
|
||||||
|
"${FILESDIR}"/${P}-Makefile.patch \
|
||||||
|
"${FILESDIR}"/${PN}-44-MakeRemote.patch
|
||||||
|
|
||||||
|
tc-export CC AR RANLIB
|
||||||
|
export SIZE="$(tc-getAR)"
|
||||||
|
export SIZE="${SIZE/-ar/-size}"
|
||||||
|
export SHLIB="$(tc-getCC) -shared"
|
||||||
|
export STRIPLIB="true"
|
||||||
|
|
||||||
|
use python && distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use python && distutils-r1_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if use remote ; then
|
||||||
|
emake -f MakeRemote libpigpiod_if.so
|
||||||
|
emake -f MakeRemote libpigpiod_if2.so
|
||||||
|
emake -f MakeRemote
|
||||||
|
else
|
||||||
|
emake
|
||||||
|
fi
|
||||||
|
|
||||||
|
use python && distutils-r1_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
if use remote ; then
|
||||||
|
emake -f MakeRemote install prefix="${EROOT}"usr DESTDIR="${D}"
|
||||||
|
else
|
||||||
|
emake install prefix="${EROOT}"usr DESTDIR="${D}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
use python && distutils-r1_src_install
|
||||||
|
|
||||||
|
if use examples ; then
|
||||||
|
dodoc -r EXAMPLES
|
||||||
|
fi
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
EBUILD openscad-9999.ebuild 887 SHA256 217736b22330a9910d6052de95186c38a4a42800e81d428d2af27498c4716036 SHA512 28f5bdfac51e5058196a3f25ab5d60d872d4b7c66855f21a14c4acf6d056f6129847fb2d7544061de41eb71498d1d3156d5de03a4c0990596bd61481cd35a251 WHIRLPOOL 804caaff3ebd7aa4a6bf0350c798d2d2f2057e1fdfd6646834f2c79b20238ee4872f2e03c919ec6776c2add7b3dc0bdaad1ffa858a8fccc05c1e73e496968398
|
EBUILD openscad-9999.ebuild 892 SHA256 397276db22760a383c5ea9c32a6b1da1d2d43c40a0eaa04ed0f8ef5e866b2ddf SHA512 8b11b0b8895f20e2f46d3c690ea946df0dcc7816955d88086bd6a3fbae290412c6a4b903237bbb707bca2231765c37819f7b70e561624bcf7f701f60823f5022 WHIRLPOOL 8dd3814525844a1d4e664a7fbd3c52b5ff930da07d1e1f04ca812e78152583fa25b9432bd6d2b821d2baf472ef4f40a0641e92360803b5ba3580d7f3ddbe0fa6
|
||||||
MISC metadata.xml 839 SHA256 e92ca10a725c36e711270e747abbd22584b0baba005ae1d65e45c89755f40a84 SHA512 f13910d4339e820344e1c70edc384c4522ad506c50ffc80e843358199b0d2e27f9eafe99e4613f258a62abc4683b462d001fe71e19d849845f6f4cf75324ffd3 WHIRLPOOL ca3494c5d2314193a80315008ef44b08f48fa624922340e33402c8fc87729ab27fcbf491b0c802d7052e1e63df00948835d657d8214c76376cf8e61fd2813935
|
MISC metadata.xml 839 SHA256 e92ca10a725c36e711270e747abbd22584b0baba005ae1d65e45c89755f40a84 SHA512 f13910d4339e820344e1c70edc384c4522ad506c50ffc80e843358199b0d2e27f9eafe99e4613f258a62abc4683b462d001fe71e19d849845f6f4cf75324ffd3 WHIRLPOOL ca3494c5d2314193a80315008ef44b08f48fa624922340e33402c8fc87729ab27fcbf491b0c802d7052e1e63df00948835d657d8214c76376cf8e61fd2813935
|
||||||
|
@ -30,7 +30,7 @@ CDEPEND="media-gfx/opencsg
|
|||||||
dev-libs/gmp:0
|
dev-libs/gmp:0
|
||||||
dev-libs/mpfr:0
|
dev-libs/mpfr:0
|
||||||
dev-libs/boost:=
|
dev-libs/boost:=
|
||||||
x11-libs/qscintilla
|
x11-libs/qscintilla[qt4]
|
||||||
"
|
"
|
||||||
DEPEND="${CDEPEND}"
|
DEPEND="${CDEPEND}"
|
||||||
RDEPEND="${CDEPEND}"
|
RDEPEND="${CDEPEND}"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
AUX slic3r-9999-adjust_var_path.patch 328 SHA256 a054f273f369f4f833d6c139a20bb0f8e005fb85e871cc5f17919d7428e7c3d7 SHA512 7cda1634ee0d80a3b63e6ecce726850d469121498b4f83717ca82360909c6dd8ddaefebffffa1ef0f8beae4473a2040432bd382aa78d43b0e8f108eaaddbdbb6 WHIRLPOOL 61bb16086f7e7660a8109d9af8f42cb31a6d4139eb74ef823ae2b58e764db94401aff05c4671bf747a973d29a588dcbbc8f36821f55b1bcf25041741cd6d3786
|
AUX slic3r-9999-adjust_var_path.patch 477 SHA256 dfcc6880c8785b70bf3fe28a32ecb9041d6c38b238ca36bc4aed08be664b429d SHA512 ffe841707eca3a312b31a9ae6618f2d41004100547176e092436fb02d6d17f6bafe431e61f72f426f3c4894da208d8043d6b1f0e46fe6beffe90ee33d4f49894 WHIRLPOOL 4d3640a2fb3803ad610e3439e617a4dc4d690115b6c835d46bf54870aa78f0fbf21d18132609439dac034c4103a2d7942067c877552e47de88be48f67e6d61e1
|
||||||
EBUILD slic3r-9999.ebuild 2560 SHA256 9becb3da6df6c8b13ef89ae3b43bb870c6c1b23f8079ee7668f76b3e812beb9b SHA512 cde193c7a3fc73b9066df1a8042e76b141bdecb8b68d9c2b2619f5ecddba640a1e7ef8207e60148ccbf8ab3d3b9578024c61a0a13de5a68025f3971fcab81bba WHIRLPOOL 078bb7a0e9e1520dc11af65f1ff322a7ea28dc4785590d9175ad8eb498477f11a1f0c9e2f2508a1c7a04e6eedcbeafd93282094b4af4bf040a0dd3c9c8a3f119
|
EBUILD slic3r-9999.ebuild 2580 SHA256 efc6a34cbda561ec0967e242ef247145c797fb177be010dafb07d362a6baa0dc SHA512 babd3c3b916d53e36aa4b405f5ba2eb024c33f71cdff245de83c9296f792134b355dd75e5aa0a9c48cdefb20846259cf894fcffd3f202a3e5d41b1f396aee8fe WHIRLPOOL fce907ba3fd569547b48340ca6fa68e8d2a43dd1dd9b616b3e3c93f87a44606ad41dc2a566d9c38864f4f664662b38011036185c87eedc7b27791c62f2769de5
|
||||||
MISC metadata.xml 1166 SHA256 f9ead7e79da319295791a454378ef319bc215d647af78ce0c1ee50d0b9272cfc SHA512 8fa8adf81c468d72253218f1e5c4c42e8546a89166c3a3158db17b7504c13920abe7bc4ce3efadb4e6fa035d23d3a509c844699ac80b417dd16b570a6f6f213e WHIRLPOOL ff18b28867a43a0094fa59739f2ea72fb5297cda6ba4f40e43fd006e13c3c4f4e7a6baadd6dcb816103d39a59b16f90bf75b5ededd23f220cd3c6260e393448f
|
MISC metadata.xml 1166 SHA256 f9ead7e79da319295791a454378ef319bc215d647af78ce0c1ee50d0b9272cfc SHA512 8fa8adf81c468d72253218f1e5c4c42e8546a89166c3a3158db17b7504c13920abe7bc4ce3efadb4e6fa035d23d3a509c844699ac80b417dd16b570a6f6f213e WHIRLPOOL ff18b28867a43a0094fa59739f2ea72fb5297cda6ba4f40e43fd006e13c3c4f4e7a6baadd6dcb816103d39a59b16f90bf75b5ededd23f220cd3c6260e393448f
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
--- a/lib/Slic3r.pm 2016-12-18 15:24:37.520000000 +0100
|
diff -ur slic3r-9999.orig/lib/Slic3r.pm slic3r-9999/lib/Slic3r.pm
|
||||||
+++ b/lib/Slic3r.pm 2016-12-18 15:25:23.430000000 +0100
|
--- slic3r-9999.orig/lib/Slic3r.pm 2017-05-08 09:38:37.478019637 +0200
|
||||||
|
+++ slic3r-9999/lib/Slic3r.pm 2017-05-08 09:41:32.370470244 +0200
|
||||||
@@ -42,7 +42,7 @@
|
@@ -42,7 +42,7 @@
|
||||||
|
|
||||||
use FindBin;
|
use FindBin;
|
||||||
# Path to the images.
|
# Path to the images.
|
||||||
-our $var = sub { decode_path($FindBin::Bin) . "/var/" . $_[0] };
|
-my $varpath = decode_path($FindBin::Bin) . "/var";
|
||||||
+our $var = sub { decode_path($FindBin::RealBin) . "/var/" . $_[0] };
|
+my $varpath = decode_path($FindBin::RealBin) . "/var";
|
||||||
|
if ($^O eq 'darwin' && !-d $varpath) {
|
||||||
use Moo 1.003001;
|
$varpath = decode_path($FindBin::Bin) . "/../Resources/var";
|
||||||
|
}
|
||||||
|
@ -10,7 +10,7 @@ DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D
|
|||||||
HOMEPAGE="http://slic3r.org"
|
HOMEPAGE="http://slic3r.org"
|
||||||
SRC_URI=""
|
SRC_URI=""
|
||||||
EGIT_REPO_URI="https://github.com/alexrj/Slic3r.git"
|
EGIT_REPO_URI="https://github.com/alexrj/Slic3r.git"
|
||||||
EGIT_BRANCH="stable"
|
EGIT_BRANCH="master"
|
||||||
|
|
||||||
LICENSE="AGPL-3 CC-BY-3.0"
|
LICENSE="AGPL-3 CC-BY-3.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
@ -24,6 +24,7 @@ RDEPEND="!=dev-lang/perl-5.16*
|
|||||||
dev-perl/Devel-Size
|
dev-perl/Devel-Size
|
||||||
>=dev-perl/Encode-Locale-1.50.0
|
>=dev-perl/Encode-Locale-1.50.0
|
||||||
dev-perl/IO-stringy
|
dev-perl/IO-stringy
|
||||||
|
dev-perl/local-lib
|
||||||
>=dev-perl/Math-PlanePath-53.0.0
|
>=dev-perl/Math-PlanePath-53.0.0
|
||||||
>=dev-perl/Moo-1.3.1
|
>=dev-perl/Moo-1.3.1
|
||||||
dev-perl/XML-SAX-ExpatXS
|
dev-perl/XML-SAX-ExpatXS
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
DIST smartsim_user_manual.pdf 1625979 SHA256 1f0a4197e86f87f889e47452af7ef1083622d79f583b2f2a7bf19102ebcfb5f4 SHA512 607fba86bd7a6a57ae29627ba0ead77ebcac0060bf596f26eaef852b0e5d4e3e1a06abf8634fd8a418b504b1e384f72b63a8a12d4a41f98ae538d9a074dcd4c4 WHIRLPOOL 9857d5903e1b35b0f1623bd2c1c0c901e1ea4d6e9ef2c5191b4add1101de60a25db7d9f6357e4ff47c82abde1baf760e6f6e202be508cc7c21dbc064411f9160
|
DIST smartsim_user_manual.pdf 1625979 SHA256 1f0a4197e86f87f889e47452af7ef1083622d79f583b2f2a7bf19102ebcfb5f4 SHA512 607fba86bd7a6a57ae29627ba0ead77ebcac0060bf596f26eaef852b0e5d4e3e1a06abf8634fd8a418b504b1e384f72b63a8a12d4a41f98ae538d9a074dcd4c4 WHIRLPOOL 9857d5903e1b35b0f1623bd2c1c0c901e1ea4d6e9ef2c5191b4add1101de60a25db7d9f6357e4ff47c82abde1baf760e6f6e202be508cc7c21dbc064411f9160
|
||||||
EBUILD smartsim-9999.ebuild 694 SHA256 725d1dcdbc7d37d68523fd670669373907dfa9ea70694f179359a4cc4b5fceb9 SHA512 7111fa06300431eee6844c7a00bbc5dcba3739b451cba6c99490a8ad3257ca0b77fd7e27969631e08fdf66011d036e138e681e2e99475e97177fc82535c81610 WHIRLPOOL 592315979b1c8204e21540465a13d0733867de488bc3c7f99d86ead9b0c8d8648f6fb85dc32aa831ea74db30f4e27a22fbc23a22438a6682bf76f7094e462501
|
EBUILD smartsim-9999.ebuild 745 SHA256 00031432bc36307735527a6c3ca3a6591f80900f1ba61bbc024d5fb5b62bbfbc SHA512 79761d2392018f3e7fa2c3460d65bfaedef04e07bcdaf3e1b2d166539ebd7c516a2fcde72691c4ace56055358f18cbbd68cc7b4424636dcd6e19180c50145c01 WHIRLPOOL 52074b05076491c704d94aefd40b8f5900412e6aacb59cdf3a9bbc0f434d663e7a6261c777880d6121d4050c78bdbe2212d3bad29a3cb8edd73e14775a4b5b4a
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
EAPI=4
|
EAPI=4
|
||||||
|
|
||||||
inherit git-2
|
inherit git-2 autotools
|
||||||
|
|
||||||
DESCRIPTION="Digital logic circuit design and simulation package"
|
DESCRIPTION="Digital logic circuit design and simulation package"
|
||||||
HOMEPAGE="http://www.smartsim.org.uk/ https://github.com/ashleynewson/SmartSim"
|
HOMEPAGE="http://www.smartsim.org.uk/ https://github.com/ashleynewson/SmartSim"
|
||||||
@ -23,6 +23,11 @@ RDEPEND="dev-libs/libxml2:2
|
|||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
virtual/pkgconfig"
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
use doc && dodoc "${DISTDIR}"/smartsim_user_manual.pdf
|
use doc && dodoc "${DISTDIR}"/smartsim_user_manual.pdf
|
||||||
|
5
sci-libs/libmed/Manifest
Normal file
5
sci-libs/libmed/Manifest
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
AUX libmed-3.2.0-cmake-fortran.patch 587 SHA256 75f68c00f9dec0fa8c1f5177db0ba75a84eeefe047f42c28a2bd7d1c5e5cb358 SHA512 f534e88c6cfd9f0c68b280b6093dd90ebd5cb99f27f8259d7addde91875bdfb56ea4535133da81d3915870a950ba53d30789c2fe1e522a052209366792fde077 WHIRLPOOL 1fa7a99d4ebb4452583ee68222ce03db91e7c8c9a1a55909ebdda530b2c155baaf83dc2fd7d5af87f8cc925fe85a47bd7711733cd16276caccb903be699223e5
|
||||||
|
AUX libmed-3.2.0-fix-swig-build.patch 512 SHA256 4cd223b5df3aaf8905fc5ce9612199d0c49aefeab7c09abb29d2d75b85cb40a7 SHA512 21e7d319883be4ce29e4fe1c97cc75a3782c5a50c2a471434f03257921c5b231eb407c22e12ed268f61fda3031c5897c5a9dc08f774130417b535d3f242ee0c8 WHIRLPOOL 783946318565e9ea43da182bed8c23299ad742540ccf7d4c8172a8e1164c33dc2700ccc9ca751d35ebd847e5205bf193035b3a5d2eb42b4afe5fbe4f891e7fe6
|
||||||
|
DIST med-3.2.0.tar.gz 57197710 SHA256 d52e9a1bdd10f31aa154c34a5799b48d4266dc6b4a5ee05a9ceda525f2c6c138 SHA512 5a40d1fe454d5a1ec90dc192fe4a914433841928ffde668aeb7fd78d0aea1083f98c8c895b7bd8dbc28e91ed455cb8e7f1235fa9bce43e1e7feaf6abf20c94a8 WHIRLPOOL 5f74a31c73d3752a8ec09dbbfe1e2d49fc4460a1915b93fba9771130e7ff9d70aa6f303580a1d3996222010164487973f9813a4f357af9cebefb7f77a532514c
|
||||||
|
EBUILD libmed-3.2.0.ebuild 1564 SHA256 cf657c966cfec46cf5ae1dd9f51035c2169b065d734c2053a3246a6b36cf14c2 SHA512 eec0acc8c4fbf8118e8d5fe64380cdc8498d1351bc03315e6ee53ce309a0d6a45414030c59a5a3eef54d2f800fb775241eb677c17c1dee43181095fd0f528b87 WHIRLPOOL d05e06ed14095269a36964094fd69d57ca63f2e850203981729e27c9189cd087023c80820c9b01fb9057f24b8977fcb65be63dddb0c6cf96d28eee5d2290c76a
|
||||||
|
MISC metadata.xml 259 SHA256 bbfbeb80ffccffa8e7f837d2c93e994bbe024d565ae3a31d30c6646e80a684c8 SHA512 19fb78cf4029c154954a40df40e28fc8d98a8b7e6b42f97259f664d44c29b284feffb9d073cadc7f90b5654a64b2466e186cb677d3a11830206f173eb9057706 WHIRLPOOL 75b8dd1a97dde63f9cc9f73b5951eaf54579460763ef7cbe6f3a9a0739070601d762152ea00df8b476b80e92e5c29b611a494bac5ab747298942530cabe0ee84
|
20
sci-libs/libmed/files/libmed-3.2.0-cmake-fortran.patch
Normal file
20
sci-libs/libmed/files/libmed-3.2.0-cmake-fortran.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Make cmake properly disable fortran upon user requirments
|
||||||
|
|
||||||
|
--- ./CMakeLists.txt.orig 2016-07-01 15:28:57.139304608 +0300
|
||||||
|
+++ ./CMakeLists.txt 2016-07-01 15:34:22.295899455 +0300
|
||||||
|
@@ -8,10 +8,13 @@
|
||||||
|
|
||||||
|
INCLUDE(CheckLanguage)
|
||||||
|
CHECK_LANGUAGE(Fortran)
|
||||||
|
-IF(CMAKE_Fortran_COMPILER)
|
||||||
|
+OPTION (MEDFILE_BUILD_FORTRAN "Build fortran library" ON)
|
||||||
|
+IF(MEDFILE_BUILD_FORTRAN)
|
||||||
|
ENABLE_LANGUAGE(Fortran)
|
||||||
|
+ IF(NOT CMAKE_Fortran_COMPILER)
|
||||||
|
+ MESSAGE(FATAL_EROOR "Fortran support was requested but not found")
|
||||||
|
+ ENDIF()
|
||||||
|
ELSE()
|
||||||
|
- MESSAGE(STATUS "No Fortran support")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
## Version number
|
19
sci-libs/libmed/files/libmed-3.2.0-fix-swig-build.patch
Normal file
19
sci-libs/libmed/files/libmed-3.2.0-fix-swig-build.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Fix wierd typedefs macroses in the header witch made swing to fail
|
||||||
|
|
||||||
|
diff --git a/include/H5public_extract.h.in b/include/H5public_extract.h.in
|
||||||
|
index ba07342..28318f4 100644
|
||||||
|
--- a/include/H5public_extract.h.in
|
||||||
|
+++ b/include/H5public_extract.h.in
|
||||||
|
@@ -28,9 +28,9 @@ extern "C" {
|
||||||
|
@HDF5_TYPEDEF_HID_T@
|
||||||
|
@HDF5_TYPEDEF_HSIZE_T@
|
||||||
|
|
||||||
|
-#typedef int herr_t;
|
||||||
|
-#typedef int hid_t;
|
||||||
|
-#typedef unsigned long long hsize_t;
|
||||||
|
+typedef int herr_t;
|
||||||
|
+typedef int hid_t;
|
||||||
|
+typedef unsigned long long hsize_t;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
64
sci-libs/libmed/libmed-3.2.0.ebuild
Normal file
64
sci-libs/libmed/libmed-3.2.0.ebuild
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
FORTRAN_NEEDED=fortran
|
||||||
|
# NOTE:The build for multiple python versions should be possible but complecated for the build system
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs fortran-2 python-single-r1 cmake-utils
|
||||||
|
|
||||||
|
MY_P="med-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="A library to store and exchange meshed data or computation results"
|
||||||
|
HOMEPAGE="http://www.salome-platform.org/"
|
||||||
|
SRC_URI="http://files.salome-platform.org/Salome/other/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3 LGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc fortran python static-libs test"
|
||||||
|
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
RDEPEND="
|
||||||
|
sci-libs/hdf5[fortran=]
|
||||||
|
sys-cluster/openmpi[fortran=]
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
python? ( >=dev-lang/swig-2.0.9:0 )
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/med-${PV}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-cmake-fortran.patch"
|
||||||
|
"${FILESDIR}/${P}-fix-swig-build.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=( AUTHORS ChangeLog INSTALL README )
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
use fortran && fortran-2_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DMEDFILE_BUILD_FORTRAN="$(usex fortran)"
|
||||||
|
-DMEDFILE_BUILD_STATIC_LIBS="$(usex static-libs)"
|
||||||
|
-DMEDFILE_INSTALL_DOC="$(usex doc)"
|
||||||
|
-DMEDFILE_BUILD_PYTHON="$(usex python)"
|
||||||
|
-DMEDFILE_BUILD_TESTS="$(usex test)"
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
# Prevent test executables being installed
|
||||||
|
use test && rm -rf "${D}/usr/bin/"{testc,testf}
|
||||||
|
}
|
8
sci-libs/libmed/metadata.xml
Normal file
8
sci-libs/libmed/metadata.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>sci@gentoo.org</email>
|
||||||
|
<name>Gentoo Science Project</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user