Added KiKit and dependencies

This commit is contained in:
layman 2020-10-02 12:15:08 +02:00
parent d5f321aedd
commit eb674de470
12 changed files with 311 additions and 0 deletions

View File

@ -4,5 +4,6 @@ DIST sdcc-doc-4.0.0.tar.bz2 980999 BLAKE2B 6f9478c095e6b4fec27c6ab7a10a8564ae46d
DIST sdcc-src-3.6.0.tar.bz2 17993788 BLAKE2B 2a03e5f8d270206812c9f66334bf1c20dd8c5824e16db1bf0b0e31c6b8d0d7d6f582d942f61e00320442ed4f48577fc404e1917fc5b2733bba86de246d3e9743 SHA512 fd05cf13f7acf0b71a35a99f99dc6ef8abcb4f41fbe1ab0cf25348842b57317217410b4a521ea1a70db93d8e7e4e6dac272ec14d893cdbcfa584ee963f42ad2f
DIST sdcc-src-4.0.0.tar.bz2 19204540 BLAKE2B 2192a7dc7418826440209dd8c7a73fd5ced491b799975b953368daeabb429327a6c518a1212a2fd49c34c6e5ab7d84f240cbf6ff8b3779e2d38f5ad81499ee71 SHA512 41a92711a9278261879caec1a01425104b7c75346b3c6ad9617cab025309c9b38f79eea2d04122f5ae6ce273fcd61fbde8a0d23756313a4593394230b51a1d4c
EBUILD sdcc-3.6.0.ebuild 3306 BLAKE2B 625516717c5a0347d31cc8abf2e23287d922f15e68a994e3e768ccb4b1324e9c4aa8a90fc9ba0a89e65637a5668e45ab33af8072136e92f6b0ebe027183bc352 SHA512 f770eda02c29b97b536114ee672c8d8cf47c286bd6f5c5f1bb05cda61d57afda8724938228696e04e352e472ebf661857d9ad714b31c9c8c997f37f0fefa8564
EBUILD sdcc-4.0.0-r1.ebuild 3521 BLAKE2B 48ad40b6ffc3271110075e3ba18c468335d24eed4c15c7580f257fd6261890529a95e5291b205be3ce2480436371bcb00141a7e99bccdbecc2ef7a39d6f65d20 SHA512 4a84125b1c5193eb618b76bd7ca6c948f6204dba654c1209513214bf9a01698c49b6163f8433150b2c149529484300d157baa8adfa681f1aee801f3c514fed3e
EBUILD sdcc-4.0.0.ebuild 3467 BLAKE2B f91878482f72eb29c13fbd59ff1689254612dca9d249323e44264ef1d4b332fa7801da0207ebd7f54bf40c454023a696cf0c31720a043456d9ab5f31b81013b0 SHA512 21222a73d804a3f56c36845ae4ea0dad4319df6550c0081c82d740b8aeaeb16fe03451fbe27ce5a97b63e4854fee299b3876b9fcd08fb5872ed0a02476eade30
MISC metadata.xml 2212 BLAKE2B 23e83037b2a6e932760e7f0eafdd34230c035dd5a5833335db0ea9c4c1e04e62e69a920e2c2f3492d45ddc014c76450ad05b4d7794d66cca261e294ac20555a0 SHA512 4af2667ae3006548904e9e13894a49c277744d6876e0a99c99e8ea2e89c9e3fc277cf851ae0856b3c3b64f41ef7fd7c255f1bb4f9f42de8917aad7c59e25a0f0

View File

@ -0,0 +1,156 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools toolchain-funcs
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="https://svn.code.sf.net/p/sdcc/code/trunk/sdcc"
inherit subversion
else
SRC_URI="
mirror://sourceforge/sdcc/${PN}-src-${PV}.tar.bz2
doc? ( mirror://sourceforge/sdcc/${PN}-doc-${PV}.tar.bz2 )
"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Small device C compiler (for various microprocessors)"
HOMEPAGE="http://sdcc.sourceforge.net/"
LICENSE="
GPL-2 ZLIB
non-free? ( MicroChip-SDCC )
packihx? ( public-domain )
"
SLOT="0"
# in order of configure.ac's AC_DO_PORT stanzas
SDCC_PORTS="
avr
mcs51
z80 z180
r2k r3ka
gbz80
tlcs90
ez80-z80
ds390 ds400
pic14 pic16
hc08
s08
stm8
pdk13 pdk14 pdk15 pdk16
"
IUSE="
${SDCC_PORTS}
+boehm-gc device-lib doc non-free packihx +sdbinutils sdcdb +sdcpp ucsim
"
for port in ${SDCC_PORTS}; do
REQUIRED_USE="${REQUIRED_USE}
${port}? ( sdbinutils )
"
done
REQUIRED_USE="${REQUIRED_USE}
|| ( ${SDCC_PORTS} )
"
RESTRICT="strip"
RDEPEND="
dev-libs/boost:=
sys-libs/ncurses:=
sys-libs/readline:0=
>=dev-embedded/gputils-0.13.7
boehm-gc? ( dev-libs/boehm-gc:= )
!dev-embedded/sdcc-svn
"
DEPEND="
${RDEPEND}
dev-util/gperf
"
PATCHES=(
"${FILESDIR}"/${PN}-3.8.0-override-override.patch
)
src_prepare() {
# Fix conflicting variable names between Gentoo and sdcc
find \
'(' -name 'Makefile*.in' -o -name 'configure' ')' \
-exec sed -r -i \
-e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \
{} + || die
# Make sure timestamps don't get messed up.
[[ ${PV} == "9999" ]] && find "${S}" -type f -exec touch -r . {} +
default
eautoreconf
# Avoid 'bfd.info' rebuild with 'makeinfo': bug #705424
# Build dependencies are: eautoreconf->Makefile.in->bfdver.texi->bfd.info
touch support/sdbinutils/bfd/doc/bfdver.texi || die
touch support/sdbinutils/bfd/doc/bfd.info || die
}
src_configure() {
# sdbinutils subdir doesn't pass down --docdir properly, so need to
# expand $(datarootdir) ourselves.
unset ARCH
econf \
ac_cv_prog_AR="$(tc-getAR)" \
ac_cv_prog_AS="$(tc-getAS)" \
ac_cv_prog_STRIP=true \
$(use_enable boehm-gc libgc) \
$(use_enable device-lib) \
$(use_enable non-free) \
$(use_enable packihx) \
$(use_enable sdbinutils) \
$(use_enable sdcdb) \
$(use_enable sdcpp) \
$(use_enable ucsim) \
\
$(use_enable avr avr-port) \
$(use_enable mcs51 mcs51-port) \
$(use_enable z80 z80-port) \
$(use_enable z180 z180-port) \
$(use_enable r2k r2k-port) \
$(use_enable r3ka r3ka-port) \
$(use_enable gbz80 gbz80-port) \
$(use_enable tlcs90 tlcs90-port) \
$(use_enable ez80-z80 ez80_z80-port) \
$(use_enable ds390 ds390-port) \
$(use_enable ds400 ds400-port) \
$(use_enable pic14 pic14-port) \
$(use_enable pic16 pic16-port) \
$(use_enable hc08 hc08-port) \
$(use_enable s08 s08-port) \
$(use_enable stm8 stm8-port) \
$(use_enable pdk13 pdk13-port) \
$(use_enable pdk14 pdk14-port) \
$(use_enable pdk15 pdk15-port) \
$(use_enable pdk16 pdk16-port) \
\
--disable-doc \
--without-ccache
}
src_compile() {
unset ARCH
default
}
src_install() {
default
dodoc doc/*.txt
find "${D}" -name .deps -exec rm -rf {} + || die
if use doc && [[ ${PV} != "9999" ]]; then
cd "${WORKDIR}"/doc
dodoc -r *
fi
# a bunch of archives (*.a) are built & installed by gputils
# for PIC processors, but they do not work with standard `ar`
# & `scanelf` utils and they're not for the host.
dostrip /usr/bin
}

View File

@ -0,0 +1,2 @@
DIST euclid3-0.01.tar.gz 13201 BLAKE2B ffa8d368f58cae91969230eaf4fa5324cda2c45ff69c98d73b1fdfbdb67e38846090fac4cdd128439583a7f36190c2d474c7f647823ac79440218bf02a73070f SHA512 c4e5e2770ab4ede08904fc3b76e50d6812944ed226c9db52f2da8d100370e20ea6031ca554ae44d72d53e96727d163bd3cc8da7bf175539de10749da77877b0b
EBUILD euclid3-0.01.ebuild 452 BLAKE2B 35cee20ec1ac40e405ef3a1695d0cd1c2f007e950d1c860573dfd2af3ff66aa8a1635e9fdbc129125e5c0c1e005ac9c90664e4990e7cef76c5cfb9c6b815ec15 SHA512 b78c9c311b0b70cb7d678e8b06b4ed2926b390165c4b4e6a383aa5ed87d1985a992a7f7b787257cfc932543a926d4bf5508ceb6669c688199f03c08556826851

View File

@ -0,0 +1,21 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1
DESCRIPTION="2D and 3D maths module for Python"
HOMEPAGE="http://partiallydisassembled.net/euclid.html"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"

View File

@ -0,0 +1 @@
EBUILD kikit-9999.ebuild 1011 BLAKE2B 8c0bedf60e3790b36eb0f7ccdc7a8668e377de18e64d89e388ca9254f0c8891b2137a0111f8938fbed7e8f57e0d8a360b10bcbe98b5187cc30f69cfdb7d1637f SHA512 41030b392b83ff8cc9b4011aba536d1732ae5d67a156b6861769d7e67903b81be67485fc6c0bb84eda421a53f511a59c12a166e2879a518727b4189fb309c777

View File

@ -0,0 +1,40 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=rdepend
MY_PN="KiKit"
MY_P="${MY_PN}-${PV}"
inherit distutils-r1
DESCRIPTION="KiKit is a Python library and CLI tool to automate several tasks in a standard KiCAD workflow"
HOMEPAGE="https://github.com/yaqwsx/KiKit"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/yaqwsx/KiKit.git"
KEYWORDS=""
inherit git-r3
else
KEYWORDS="~amd64 ~x86"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="dev-python/click[${PYTHON_USEDEP}]
dev-python/markdown2[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pybars3[${PYTHON_USEDEP}]
dev-python/solidpython[${PYTHON_USEDEP}]
sci-libs/Shapely[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
dev-python/versioneer[${PYTHON_USEDEP}]
"

View File

@ -0,0 +1,2 @@
DIST pybars3-0.9.7.tar.gz 29203 BLAKE2B 7255a9bf7c2d0e56d90bef95a007a0d6ae9d4bc25dbdfef0a76d7dc3927da01d2ec7e4f597f53e62fd1c540e72718778cb0a5882b20e054b2fbfa9dfc927c82c SHA512 7aff86c0703e3827909f3603d7f35026ee39ce74d9c5ff1beb18a71b0a839c3aa407402f8d9c1aca9eb69af33750db0477881826e72135fc26a7274b0f1f538b
EBUILD pybars3-0.9.7.ebuild 499 BLAKE2B a5da6501aefbe9240a46bcecab590e90255929ce6cf8e91b0cf4900b53011fbc253ef35b100f59f62697564c3c8dbf2e962a0969e34caf21e929b8f1c5d763a8 SHA512 18f67a569587543b28cee91fb179f3a09abd05b83a1dfc74e6f9a374eabd5049f2459d6dfee04bd19569e0504fdd849bbb54fc3e8bef69f77a52b72b44c3cae0

View File

@ -0,0 +1,21 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1
DESCRIPTION="Handlebars.js templating for Python"
HOMEPAGE="https://github.com/wbond/pybars3#readme"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-python/pymeta3-0.5.1[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,2 @@
DIST pymeta3-0.5.1.tar.gz 29566 BLAKE2B ca508055c7ae23d488bfa8f79874aad104de6f92f9e02c096fd252e1aaae551f30964d2b134918ce7c313c0d5985365cd1c1b4d1886ef8f6fc64fd8266a77ff1 SHA512 3a44661ae550cbb56fb0397af835e3a12ac81243d4a2f1ac3d9d713a3955cb276441e112e7cd75beb7ebd0c4bfa03014ec8b625750dffeec891b5b7802b72575
EBUILD pymeta3-0.5.1.ebuild 547 BLAKE2B bf2fd91c2f4683c538007a50b039f144baf149ab683cefd32b145122e5aa90732395103c2181b0451c0767cca6874ea362d941d9fe0eae8636c4be367ed463f2 SHA512 f2635bc56d3cac2487d727246957b659b885bd3c5320346937c918c5532a46fb179da0f153405191e38df7097d8227c863047b7e1923fff26355296207d07ef3

View File

@ -0,0 +1,26 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=no
MY_PN="PyMeta3"
MY_P="${MY_PN}-${PV}"
inherit distutils-r1
DESCRIPTION="Pattern-matching language based on OMeta for Python"
HOMEPAGE="https://github.com/wbond/pymeta3"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"

View File

@ -0,0 +1,2 @@
DIST solidpython-1.0.2.tar.gz 67607 BLAKE2B 273bcf188d141d91d83be440e78346aa9b3f955ba8134e6a11d5707829218bbb27ffcdf4e8e86a093249908df4a16ac0d878fe6ed31790b5772340533e48796d SHA512 eeb7c68e54055fcfd5b53cf9c2745ea4dac602dbce158c8c7559dde21372c87cacbcac9c203cf0b577bd292a59304d48e8a4c7afcf9afdd9cc6c6cf0286e1d09
EBUILD solidpython-1.0.2.ebuild 820 BLAKE2B 52d2cc249ec55e08bb2b6a12b182ef6e3133c35c650b717ecb4d6879d420dd72d62cbe632946b3e6a0807a75833861e9a8d99895777c367d6b3a71c40fdbe9f9 SHA512 7f840aa914e2d5b3aadcab493fc1097cf4ad20437c13c40e1e57de9ae55cb58e6966ba97d9cae800df7e1d18b4fc9cde75c500e13e34b6cff0db3af936991e5d

View File

@ -0,0 +1,37 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=bdepend
inherit distutils-r1
DESCRIPTION="OpenSCAD for Python"
HOMEPAGE="https://github.com/SolidCode/SolidPython"
KEYWORDS="~amd64 ~x86"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-python/euclid3-0.01[${PYTHON_USEDEP}]
>=dev-python/pypng-0.0.19[${PYTHON_USEDEP}]
~dev-python/prettytable-0.7.2[${PYTHON_USEDEP}]
>=dev-python/regex-2019.4[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
src_prepare() {
# Sanitize dependency versions
sed -e "s/,<0.2.0//" \
-e "s/,<0.0.20//" \
-e "s/,<2020.0//" \
-i "${S}"/setup.py || die "sed failed"
default
}