Merge updates from master

This commit is contained in:
Repository QA checks
2015-10-23 05:03:34 -04:00
10 changed files with 504 additions and 39 deletions
@@ -73,17 +73,17 @@ pkg_setup() {
src_prepare() {
# remove internal copies of various libraries
rm -rf "${S}"/cups/libs
rm -rf "${S}"/expat
rm -rf "${S}"/freetype
rm -rf "${S}"/jbig2dec
rm -rf "${S}"/jpeg{,xr}
rm -rf "${S}"/lcms{,2}
rm -rf "${S}"/libpng
rm -rf "${S}"/tiff
rm -rf "${S}"/zlib
rm -rf "${S}"/cups/libs || die
rm -rf "${S}"/expat || die
rm -rf "${S}"/freetype || die
rm -rf "${S}"/jbig2dec || die
rm -rf "${S}"/jpeg{,xr} || die
rm -rf "${S}"/lcms{,2} || die
rm -rf "${S}"/libpng || die
rm -rf "${S}"/tiff || die
rm -rf "${S}"/zlib || die
# remove internal CMaps (CMaps from poppler-data are used instead)
rm -rf "${S}"/Resource/CMap
rm -rf "${S}"/Resource/CMap || die
# apply various patches, many borrowed from Fedora
# http://pkgs.fedoraproject.org/cgit/ghostscript.git
@@ -96,15 +96,15 @@ src_prepare() {
if use djvu ; then
unpack gsdjvu-${GSDJVU_PV}.tar.gz
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/base
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" || die
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/base || die
epatch "${WORKDIR}"/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch
cp "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu
cp "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu || die
grep -q djvusep "${S}"/contrib/contrib.mak || \
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak || die
# install ps2utf8.ps, bug #197818
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib || die
sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \
"${S}"/base/unixinst.mak || die "sed failed"
fi
@@ -124,10 +124,10 @@ src_prepare() {
-e 's:-L$(BINDIR):& $(LDFLAGS):g' \
"${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed"
cd "${S}"
cd "${S}" || die
eautoreconf
cd "${S}/ijs"
cd "${S}/ijs" || die
eautoreconf
}
@@ -171,7 +171,7 @@ src_configure() {
"${S}"/Makefile || die "sed failed"
fi
cd "${S}/ijs"
cd "${S}/ijs" || die
econf \
--enable-shared \
$(use_enable static-libs static)
@@ -181,31 +181,30 @@ src_compile() {
# -j1 needed because of bug #550926
emake -j1 so all
cd "${S}/ijs"
cd "${S}/ijs" || die
emake
}
src_install() {
emake -j1 DESTDIR="${D}" install-so install
if use djvu ; then
dobin gsdjvu
fi
use djvu && dobin gsdjvu
# move gsc to gs, bug #343447
# gsc collides with gambit, bug #253064
mv -f "${D}/usr/bin/gsc" "${D}/usr/bin/gs" || die
mv -f "${ED}"/usr/bin/{gsc,gs} || die
cd "${S}/ijs"
cd "${S}/ijs" || die
emake -j1 DESTDIR="${D}" install
# rename the original cidfmap to cidfmap.GS
mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
# install our own cidfmap to handle CJK fonts
insinto "/usr/share/ghostscript/${PVM}/Resource/Init"
doins "${WORKDIR}/fontmaps/CIDFnmap"
doins "${WORKDIR}/fontmaps/cidfmap"
insinto /usr/share/ghostscript/${PVM}/Resource/Init
doins \
"${WORKDIR}/fontmaps/CIDFnmap" \
"${WORKDIR}/fontmaps/cidfmap"
for X in ${LANGS} ; do
if use linguas_${X} ; then
doins "${WORKDIR}/fontmaps/cidfmap.${X}"
@@ -215,7 +214,9 @@ src_install() {
# install the CMaps from poppler-data properly, bug #409361
dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap
use static-libs || find "${D}" -name '*.la' -delete
use static-libs || prune_libtool_files --all
use linguas_de || rm -r "${D}"/usr/share/man/de
if ! use linguas_de; then
rm -r "${ED}"/usr/share/man/de || die
fi
}
-1
View File
@@ -18,7 +18,6 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
RDEPEND="
!dev-python/pyfits
>=dev-libs/expat-2.1.0:0=
dev-python/configobj[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
+1
View File
@@ -1,2 +1,3 @@
DIST humanfriendly-1.33.tar.gz 34362 SHA256 158259d5cb9b762fb094a3cbbade70b5e623568b92c3765d1914fa87f5bf4ecc SHA512 878dc081b15df2f1d682697b9abde45ea20aebd4a33bd7079af7eb3c86b331ad2135b7153b6727ddadbc2146fe042d5a860aaab4889a637622636d4118179bf5 WHIRLPOOL c57a7404341cff1eca80069e35350b99ddf3c26b68894ab283d39ad4dd80fbd2014f04a8dfdb040aae432c4b2ed9bdc51f0085d743575c78eddcc9985cf3cbed
DIST humanfriendly-1.35.tar.gz 36181 SHA256 de030bb1976b526f514c9a953c38286f50c3ece01180a1efdda56f091eb33164 SHA512 3cec8629423f640b2b6bdcf95aa8346daf88268b3d7e9ce44be395f7e9f3aa1a23d27d422db3bfda32e1e6c2c6a2eaf8dc1393ef6fcea4895ef6b44671353d0d WHIRLPOOL c44a897a81b2044a9d6913fb1d74d6979534d00cce486035b23facbc5595532996cb19c8b34cd7768381e67ff277b6ed02c034341958f4eff63940136cecaf27
DIST humanfriendly-1.38.tar.gz 41228 SHA256 1706a6e72c28d4001d2f2c963e74d120d36b9b9047e4026c0909f37b3da5e558 SHA512 2409e00ab9a50537a9ef03216a1e3e31f503a879afdf1b642a63f68e0a839a58d90610548f5ba2db57d32ec8e7106ab160e64b212053dfbbedca00128c1f6fdc WHIRLPOOL 8d2a98dbd08381870464b0e1ff4817b34ec0ac85b321e6cf460bfded0047976c3639898bd5d3811f859fed40f368085be561dc2f61a720deb586a21c181f2398
@@ -0,0 +1,30 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
inherit distutils-r1
DESCRIPTION="Human friendly output for text interfaces using Python"
HOMEPAGE="https://pypi.python.org/pypi/humanfriendly https://humanfriendly.readthedocs.org"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/capturer[${PYTHON_USEDEP}]
dev-python/coloredlogs[${PYTHON_USEDEP}]
)
"
python_test() {
esetup.py test
}
@@ -19,7 +19,6 @@ IUSE="doc test"
RDEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
!dev-python/astropy
sci-libs/cfitsio:0="
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
@@ -57,15 +56,17 @@ python_test() {
nosetests --verbose || die
}
python_install() {
distutils-r1_python_install
local binary
for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do
einfo "Renaming ${binary} to ${binary}-${PN}"
mv ${binary}{,-${PN}} || die "failed renaming"
done
}
python_install_all() {
use doc && local HTML_DOCS=( docs/build/html/. )
DOCS=( FAQ.txt CHANGES.txt )
distutils-r1_python_install_all
rename_binary() {
local binary
for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do
mv ${binary}{,-${PN}} || die "failed renaming"
done
}
python_foreach_impl rename_binary
}
+1
View File
@@ -0,0 +1 @@
DIST cyclo-2.1_pre1.tar.gz 30866 SHA256 56c2c2ab2e684eb8d4c196835a2343b13ca3c26e1f1ca63ffd8c5bb2f485ad89 SHA512 1b28c54b84d28ed9f72f57e8db1da74cd29be92947418bb3e9452afae1fc863ffb1110face3291f1abb34d1dcaed84d018bf9122ae25b4b67017e4990bb080b6 WHIRLPOOL dcbbd1117a9f5ecdafbda40814ce47053b9653de251fd8384a4900765537fe61cd406b1eddfc890e79adce32da30f799c5a736b2ca246cab5505eac060f5e518
+46
View File
@@ -0,0 +1,46 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils toolchain-funcs
DESCRIPTION="Computes cyclomatic complexity metrics on C source code."
HOMEPAGE="https://github.com/sarnold/cyclo"
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="https://github.com/sarnold/cyclo.git"
inherit git-r3
else
SRC_URI="https://github.com/sarnold/cyclo/archive/2.1_pre1.tar.gz -> ${P}.tar.gz"
fi
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
SLOT="0"
LICENSE="GPL-2"
IUSE="debug"
DEPEND="sys-devel/flex"
src_compile() {
local my_flags="CC=$(tc-getCC) CCPLUS=$(tc-getCXX)"
if ! use debug ; then
DBG="" make ${my_flags} all || die "make failed"
else
export STRIP_MASK="*/bin/*"
if [ -n "${DEBUG}" ] ; then
DBG="${DEBUG}" make ${my_flags} all || die "make debug failed"
else
make ${my_flags} all || die "make debug failed"
fi
fi
}
src_install() {
dobin cyclo mcstrip
doman cyclo.0 mcstrip.1 cyclo.1
dodoc README.rst mccabe.example || die "dodoc failed"
}
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>dev-tools</herd>
<maintainer>
<email>nerdboy@gentoo.org</email>
<name>Steve Arnold</name>
</maintainer>
<maintainer>
<email>blueness@gentoo.org</email>
<name>Anthony G. Basile</name>
</maintainer>
<upstream>
<remote-id type="github">sarnold/cyclo</remote-id>
</upstream>
</pkgmetadata>
+175
View File
@@ -0,0 +1,175 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils
DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
HOMEPAGE="https://bitcointalk.org/?topic=168174"
SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
# TODO: knc (needs i2c-tools header)
# TODO: minergate (needs actual miner_gate)
# TODO: titan
IUSE="adl antminer avalon avalonmm bfx bifury bitforce bfsb bigpic bitfury cointerra cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus jingtian klondike +libusb littlefury lm_sensors metabank modminer nanofury ncurses opencl proxy proxy_getwork proxy_stratum rockminer screen scrypt twinfury +udev udev-broad-rules unicode x6500 zeusminer ztex"
REQUIRED_USE='
|| ( antminer avalon avalonmm bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer gridseed hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 zeusminer ztex )
adl? ( opencl )
bfsb? ( bitfury )
bfx? ( bitfury libusb )
bigpic? ( bitfury )
drillbit? ( bitfury )
dualminer? ( icarus )
gridseed? ( scrypt )
hashbuster? ( bitfury )
hashbuster2? ( bitfury libusb )
klondike? ( libusb )
littlefury? ( bitfury )
lm_sensors? ( opencl )
metabank? ( bitfury )
nanofury? ( bitfury )
scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
twinfury? ( bitfury )
unicode? ( ncurses )
proxy? ( || ( proxy_getwork proxy_stratum ) )
proxy_getwork? ( proxy )
proxy_stratum? ( proxy )
x6500? ( libusb )
zeusminer? ( scrypt icarus )
ztex? ( libusb )
'
DEPEND='
net-misc/curl
ncurses? (
sys-libs/ncurses:=[unicode?]
)
>=dev-libs/jansson-2
dev-libs/libbase58
net-libs/libblkmaker
udev? (
virtual/udev
)
hashbuster? (
dev-libs/hidapi
)
libusb? (
virtual/libusb:1
)
lm_sensors? (
sys-apps/lm_sensors
)
nanofury? (
dev-libs/hidapi
)
proxy_getwork? (
net-libs/libmicrohttpd
)
proxy_stratum? (
dev-libs/libevent
)
screen? (
app-misc/screen
|| (
>=sys-apps/coreutils-8.15
sys-freebsd/freebsd-bin
app-misc/realpath
)
)
'
RDEPEND="${DEPEND}
opencl? (
|| (
virtual/opencl
dev-util/nvidia-cuda-sdk[opencl]
)
)
"
DEPEND="${DEPEND}
virtual/pkgconfig
>=dev-libs/uthash-1.9.7
sys-apps/sed
cpumining? (
amd64? (
>=dev-lang/yasm-1.0.1
)
x86? (
>=dev-lang/yasm-1.0.1
)
)
"
src_configure() {
local CFLAGS="${CFLAGS}"
local with_curses
use hardened && CFLAGS="${CFLAGS} -nopie"
if use ncurses; then
if use unicode; then
with_curses='--with-curses=ncursesw'
else
with_curses='--with-curses=ncurses'
fi
else
with_curses='--without-curses'
fi
CFLAGS="${CFLAGS}" \
econf \
--docdir="/usr/share/doc/${PF}" \
$(use_enable adl) \
$(use_enable antminer) \
$(use_enable avalon) \
$(use_enable avalonmm) \
$(use_enable bifury) \
$(use_enable bitforce) \
$(use_enable bfsb) \
$(use_enable bfx) \
$(use_enable bigpic) \
$(use_enable bitfury) \
$(use_enable cointerra) \
$(use_enable cpumining) \
$(use_enable drillbit) \
$(use_enable dualminer) \
$(use_enable gridseed) \
$(use_enable hashbuster) \
$(use_enable hashbuster2 hashbusterusb) \
$(use_enable hashfast) \
$(use_enable icarus) \
$(use_enable jingtian) \
$(use_enable klondike) \
$(use_enable littlefury) \
$(use_enable metabank) \
$(use_enable modminer) \
$(use_enable nanofury) \
$(use_enable opencl) \
$(use_enable rockminer) \
$(use_enable scrypt) \
$(use_enable twinfury) \
--with-system-libblkmaker \
$with_curses \
$(use_with udev libudev) \
$(use_enable udev-broad-rules broad-udevrules) \
$(use_with lm_sensors sensors) \
$(use_with proxy_getwork libmicrohttpd) \
$(use_with proxy_stratum libevent) \
$(use_enable x6500) \
$(use_enable zeusminer) \
$(use_enable ztex)
}
src_install() {
emake install DESTDIR="$D"
if ! use examples; then
rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
fi
if ! use screen; then
rm "${D}/usr/bin/start-bfgminer.sh"
fi
}
+195
View File
@@ -0,0 +1,195 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils
DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
HOMEPAGE="https://bitcointalk.org/?topic=168174"
SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
# TODO: knc (needs i2c-tools header)
# TODO: kncasic & titan (need systemwide knc-asic install)
# TODO: minergate (needs actual miner_gate)
IUSE="adl antminer avalon avalonmm bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus jingtian keccak klondike +libusb littlefury lm_sensors metabank minion modminer nanofury ncurses opencl proxy proxy_getwork proxy_stratum rockminer screen scrypt +sha256d twinfury +udev udev-broad-rules unicode x6500 zeusminer ztex"
REQUIRED_USE='
|| ( keccak scrypt sha256d )
|| ( antminer avalon avalonmm bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer gridseed hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 zeusminer ztex )
adl? ( opencl )
antminer? ( sha256d )
avalon? ( sha256d )
avalonmm? ( sha256d )
bfsb? ( sha256d bitfury )
bfx? ( sha256d bitfury libusb )
bifury? ( sha256d )
bigpic? ( sha256d bitfury )
bitforce? ( sha256d )
bitfury? ( sha256d )
cointerra? ( sha256d )
drillbit? ( sha256d bitfury )
dualminer? ( || ( sha256d scrypt ) icarus )
gridseed? ( scrypt )
hashbuster? ( sha256d bitfury )
hashbuster2? ( sha256d bitfury libusb )
hashfast? ( sha256d )
icarus? ( || ( scrypt sha256d ) )
jingtian? ( sha256d )
keccak? ( || ( cpumining opencl proxy ) )
klondike? ( sha256d libusb )
littlefury? ( sha256d bitfury )
lm_sensors? ( opencl )
metabank? ( sha256d bitfury )
minion? ( sha256d )
modminer? ( sha256d )
nanofury? ( sha256d bitfury )
scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
sha256d? ( || ( antminer avalon avalonmm bfx bifury bitforce bfsb bigpic bitfury cointerra cpumining drillbit dualminer hashbuster hashbuster2 hashfast icarus jingtian klondike littlefury metabank modminer nanofury opencl proxy rockminer twinfury x6500 ztex ) )
twinfury? ( bitfury )
unicode? ( ncurses )
proxy? ( || ( proxy_getwork proxy_stratum ) )
proxy_getwork? ( proxy )
proxy_stratum? ( proxy )
rockminer? ( sha256d )
twinfury? ( sha256d )
x6500? ( sha256d libusb )
zeusminer? ( scrypt icarus )
ztex? ( sha256d libusb )
'
DEPEND='
net-misc/curl
ncurses? (
sys-libs/ncurses:=[unicode?]
)
>=dev-libs/jansson-2
dev-libs/libbase58
net-libs/libblkmaker
udev? (
virtual/udev
)
hashbuster? (
dev-libs/hidapi
)
libusb? (
virtual/libusb:1
)
lm_sensors? (
sys-apps/lm_sensors
)
nanofury? (
dev-libs/hidapi
)
proxy_getwork? (
net-libs/libmicrohttpd
)
proxy_stratum? (
dev-libs/libevent
)
screen? (
app-misc/screen
|| (
>=sys-apps/coreutils-8.15
sys-freebsd/freebsd-bin
app-misc/realpath
)
)
'
RDEPEND="${DEPEND}
opencl? (
|| (
virtual/opencl
dev-util/nvidia-cuda-sdk[opencl]
)
)
"
DEPEND="${DEPEND}
virtual/pkgconfig
>=dev-libs/uthash-1.9.7
sys-apps/sed
cpumining? (
amd64? (
>=dev-lang/yasm-1.0.1
)
x86? (
>=dev-lang/yasm-1.0.1
)
)
"
src_configure() {
local CFLAGS="${CFLAGS}"
local with_curses
use hardened && CFLAGS="${CFLAGS} -nopie"
if use ncurses; then
if use unicode; then
with_curses='--with-curses=ncursesw'
else
with_curses='--with-curses=ncurses'
fi
else
with_curses='--without-curses'
fi
CFLAGS="${CFLAGS}" \
econf \
--docdir="/usr/share/doc/${PF}" \
$(use_enable adl) \
$(use_enable antminer) \
$(use_enable avalon) \
$(use_enable avalonmm) \
$(use_enable bifury) \
$(use_enable bitforce) \
$(use_enable bfsb) \
$(use_enable bfx) \
$(use_enable bigpic) \
$(use_enable bitfury) \
$(use_enable cointerra) \
$(use_enable cpumining) \
$(use_enable drillbit) \
$(use_enable dualminer) \
$(use_enable gridseed) \
$(use_enable hashbuster) \
$(use_enable hashbuster2 hashbusterusb) \
$(use_enable hashfast) \
$(use_enable icarus) \
$(use_enable jingtian) \
$(use_enable keccak) \
$(use_enable klondike) \
$(use_enable littlefury) \
$(use_enable metabank) \
$(use_enable minion) \
$(use_enable modminer) \
$(use_enable nanofury) \
$(use_enable opencl) \
$(use_enable rockminer) \
$(use_enable scrypt) \
$(use_enable sha256d) \
$(use_enable twinfury) \
--with-system-libblkmaker \
$with_curses \
$(use_with udev libudev) \
$(use_enable udev-broad-rules broad-udevrules) \
$(use_with lm_sensors sensors) \
$(use_with proxy_getwork libmicrohttpd) \
$(use_with proxy_stratum libevent) \
$(use_enable x6500) \
$(use_enable zeusminer) \
$(use_enable ztex)
}
src_install() {
emake install DESTDIR="$D"
if ! use examples; then
rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
fi
if ! use screen; then
rm "${D}/usr/bin/start-bfgminer.sh"
fi
}