parent
179b92d7c4
commit
36a2654758
@ -0,0 +1,179 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.6.9.ebuild,v 1.1 2015/03/24 17:58:57 ultrabug Exp $
|
||||
|
||||
EAPI=5
|
||||
SCONS_MIN_VERSION="1.2.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="http://www.mongodb.org"
|
||||
SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz
|
||||
mms-agent? ( http://dev.gentoo.org/~ultrabug/20140409-mms-monitoring-agent.zip )"
|
||||
|
||||
LICENSE="AGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug kerberos mms-agent ssl static-libs"
|
||||
|
||||
PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
|
||||
RDEPEND="
|
||||
app-arch/snappy
|
||||
>=dev-cpp/yaml-cpp-0.5.1
|
||||
>=dev-libs/boost-1.50[threads(+)]
|
||||
>=dev-libs/libpcre-8.30[cxx]
|
||||
dev-libs/snowball-stemmer
|
||||
dev-util/google-perftools[-minimal]
|
||||
net-libs/libpcap
|
||||
ssl? ( >=dev-libs/openssl-1.0.1g )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
|
||||
scons_opts+=" --disable-warnings-as-errors"
|
||||
scons_opts+=" --use-system-boost"
|
||||
scons_opts+=" --use-system-pcre"
|
||||
scons_opts+=" --use-system-snappy"
|
||||
scons_opts+=" --use-system-stemmer"
|
||||
scons_opts+=" --use-system-tcmalloc"
|
||||
scons_opts+=" --use-system-yaml"
|
||||
scons_opts+=" --usev8"
|
||||
|
||||
if use debug; then
|
||||
scons_opts+=" --dbg=on"
|
||||
fi
|
||||
|
||||
if use prefix; then
|
||||
scons_opts+=" --cpppath=${EPREFIX}/usr/include"
|
||||
scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
|
||||
fi
|
||||
|
||||
if use kerberos; then
|
||||
scons_opts+=" --use-sasl-client"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
scons_opts+=" --ssl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-2.6.2-fix-scons.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
|
||||
|
||||
# fix yaml-cpp detection
|
||||
sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct || die
|
||||
|
||||
# bug #462606
|
||||
sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
|
||||
|
||||
# bug #482576
|
||||
sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# filter some problematic flags
|
||||
filter-flags "-march=*"
|
||||
filter-flags -O?
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons ${scons_opts} all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
|
||||
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
keepdir "${x}"
|
||||
fowners mongodb:mongodb "${x}"
|
||||
done
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r2" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
|
||||
newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s}
|
||||
newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s}
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r2" ${PN}.conf
|
||||
newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
if use mms-agent; then
|
||||
local MY_PN="mms-agent"
|
||||
local MY_D="/opt/${MY_PN}"
|
||||
|
||||
insinto /etc
|
||||
newins "${WORKDIR}/${MY_PN}/settings.py" mms-agent.conf
|
||||
rm "${WORKDIR}/${MY_PN}/settings.py"
|
||||
|
||||
insinto ${MY_D}
|
||||
doins "${WORKDIR}/${MY_PN}/"*
|
||||
dosym /etc/mms-agent.conf ${MY_D}/settings.py
|
||||
|
||||
fowners -R mongodb:mongodb ${MY_D}
|
||||
newinitd "${FILESDIR}/${MY_PN}.initd-r2" ${MY_PN}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# wrt bug #461466
|
||||
if [[ "$(get_libdir)" == "lib64" ]]; then
|
||||
rmdir "${ED}"/usr/lib/ &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
escons ${scons_opts} test
|
||||
"${S}"/test --dbpath=unittest || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then
|
||||
ewarn "!! IMPORTANT !!"
|
||||
ewarn " "
|
||||
ewarn "${PN} configuration files have changed !"
|
||||
ewarn " "
|
||||
ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf"
|
||||
ewarn " http://docs.mongodb.org/manual/reference/configuration-options/"
|
||||
ewarn " "
|
||||
ewarn "Make sure you also follow the upgrading process :"
|
||||
ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/"
|
||||
ewarn " "
|
||||
if use mms-agent; then
|
||||
ewarn "MMS Agent configuration file has been moved to :"
|
||||
ewarn " /etc/mms-agent.conf"
|
||||
fi
|
||||
else
|
||||
if use mms-agent; then
|
||||
elog "Edit your MMS Agent configuration file :"
|
||||
elog " /etc/mms-agent.conf"
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST libinput-0.12.0.tar.xz 538364 SHA256 6e0ce9dd9ff04e9ac382dffb7fa332b94f093227a197a9c8189e87de6d88b55a SHA512 e2e069ef3489361a03bf1f031be0541d79ef6e42e6523c00a0b61a5ec480c53dc34139ed92ab4ffd5a9c7c1420a7c50aa157d3d58889beeffa02e7eed6d0c21f WHIRLPOOL f51b9f96e6926ab2f665b6d714e81c95bdb2d792830ef80eb3b623b5466f9464aeb2b5abd5454e319af795063576d959475dd0fbae20d59d3ae09480684a08ef
|
||||
DIST libinput-0.13.0.tar.xz 540300 SHA256 6cecaf7fde525f1d81474cbd495ce526d5e34c845d3e9d6f3e2565b7048cc61a SHA512 d07b35cec8d8cd3f75d7f8916fda4723e6a7b94bf457e249ee2b93e9a7c60b9999508d071b8959c7fb3676d13a3b5430c71f2bf579572cab87bcc4e655ab69ab WHIRLPOOL 944a1336d764d6359f65a4d3ac8d3150caf1b0db649a6dea2eaf52fae2b2e14a2ffac8b3de93280115d296c773bb7fc0d6c771e98514f76061fb8814bf0d56ff
|
||||
DIST libinput-0.7.0.tar.xz 440228 SHA256 129f485afe5e4a9394641293991c97cb99f5f3338340d0d65b704ff463d1579e SHA512 0e03ab7ca98c4574997742b7d8912000fb176d7a3e2c381b7e63139f78455374f8f38284e226fe443d5a524f34be8995317b91fc0190795a97b10af060423b77 WHIRLPOOL 664510fc33cb718b56600553332bb3eb587b3f4a40f81d4a80dd218882aba204522bcbbfab98f3ae0c6447d3a39cc98b9d88aea5f8e3c21da0803b93d64ad321
|
||||
DIST libinput-0.8.0.tar.xz 504908 SHA256 57747436ac6a2ed9fe7745093acdd96fdce699bad6074c6e89450367d74192c7 SHA512 f913d48f1badf4fca98384382ab6d84d5b9e49d4130cdf1073fa89b49b8bcb1c313f82b2728513a77433e4020645a10dbcc0511f87e9d2e1316c5f1d1126e9ae WHIRLPOOL 2c92c9d1ff3cd9940390399b1abba40a953cbf6cb49c10df66e3d073f14905603ec98589d61d5ff74f613a6a67c678646ae724d12633b740bbe37340e4fa6568
|
||||
DIST libinput-0.9.0.tar.xz 510512 SHA256 309043976f41f5451c2a4b1c25bc2993b18aecb22524d797f21eb6b6c968ff0d SHA512 a6f718215428eda45ac00c25d0b62ada84bf924822cb66e0a9b28f4cfc36e7d1678f2dfb47afae16ce4c277d589adcf97aefe8e2e5a154873b649fe4a84527a1 WHIRLPOOL 23da6dbcd7b17000cea641e0931db8a9b2ad34b0655e4e31b0419ff4799adc59d2646b10316e073ad49695ebd652c150abf05c39d15c735ecb1d97f6f8c1d8de
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libinput/libinput-0.13.0.ebuild,v 1.1 2015/03/24 12:12:38 chithanh Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Library to handle input devices in Wayland"
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Software/libinput/"
|
||||
SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
|
||||
|
||||
# License appears to be a variant of libtiff
|
||||
LICENSE="libtiff"
|
||||
SLOT="0/10"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libevdev-0.4
|
||||
>=sys-libs/mtdev-1.1
|
||||
virtual/libudev
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
# Doc handling in kinda strange but everything
|
||||
# is available in the tarball already.
|
||||
sed -e 's/^\(SUBDIRS =.*\)doc\(.*\)$/\1\2/' \
|
||||
-i Makefile.am Makefile.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# gui can be built but will not be installed
|
||||
# building documentation silently fails with graphviz syntax errors
|
||||
econf \
|
||||
--disable-documentation \
|
||||
--disable-event-gui \
|
||||
--disable-tests
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
dodoc -r doc/html
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,160 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/weston/weston-1.7.0.ebuild,v 1.1 2015/03/24 14:16:27 chithanh Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
EGIT_REPO_URI="git://anongit.freedesktop.org/git/wayland/${PN}"
|
||||
GIT_ECLASS="git-r3"
|
||||
EXPERIMENTAL="true"
|
||||
fi
|
||||
VIRTUALX_REQUIRED="test"
|
||||
RESTRICT="test"
|
||||
|
||||
inherit autotools readme.gentoo toolchain-funcs virtualx $GIT_ECLASS
|
||||
|
||||
DESCRIPTION="Wayland reference compositor"
|
||||
HOMEPAGE="http://wayland.freedesktop.org/"
|
||||
|
||||
if [[ $PV = 9999* ]]; then
|
||||
SRC_URI="${SRC_PATCHES}"
|
||||
else
|
||||
SRC_URI="http://wayland.freedesktop.org/releases/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="MIT CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~arm-linux"
|
||||
IUSE="colord dbus +drm +egl editor examples fbdev gles2 headless ivi +opengl rdp +resize-optimization rpi +launch screen-sharing static-libs +suid systemd test unwind wayland-compositor +X xwayland"
|
||||
|
||||
REQUIRED_USE="
|
||||
drm? ( egl )
|
||||
egl? ( || ( gles2 opengl ) )
|
||||
gles2? ( !opengl )
|
||||
screen-sharing? ( rdp )
|
||||
test? ( X )
|
||||
wayland-compositor? ( egl )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libinput-0.8.0
|
||||
>=dev-libs/wayland-1.7.0
|
||||
media-libs/lcms:2
|
||||
media-libs/libpng:0=
|
||||
media-libs/libwebp:0=
|
||||
virtual/jpeg
|
||||
>=x11-libs/cairo-1.11.3[gles2(-)?,opengl?]
|
||||
>=x11-libs/libdrm-2.4.30
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/pixman
|
||||
x11-misc/xkeyboard-config
|
||||
fbdev? (
|
||||
>=sys-libs/mtdev-1.1.0
|
||||
>=virtual/udev-136
|
||||
)
|
||||
colord? ( >=x11-misc/colord-0.1.27 )
|
||||
dbus? ( sys-apps/dbus )
|
||||
drm? (
|
||||
media-libs/mesa[gbm]
|
||||
>=sys-libs/mtdev-1.1.0
|
||||
>=virtual/udev-136
|
||||
)
|
||||
egl? (
|
||||
media-libs/glu
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
editor? ( x11-libs/pango )
|
||||
gles2? (
|
||||
media-libs/mesa[wayland]
|
||||
)
|
||||
opengl? (
|
||||
media-libs/mesa[wayland]
|
||||
)
|
||||
rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 )
|
||||
rpi? (
|
||||
>=sys-libs/mtdev-1.1.0
|
||||
>=virtual/udev-136
|
||||
)
|
||||
systemd? (
|
||||
sys-auth/pambase[systemd]
|
||||
sys-apps/systemd[pam]
|
||||
)
|
||||
launch? ( sys-auth/pambase )
|
||||
unwind? ( sys-libs/libunwind )
|
||||
X? (
|
||||
x11-libs/libxcb
|
||||
x11-libs/libX11
|
||||
)
|
||||
xwayland? (
|
||||
x11-base/xorg-server[wayland]
|
||||
x11-libs/cairo[xcb]
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcursor
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use examples || use gles2 || use test; then
|
||||
myconf="--enable-simple-clients
|
||||
$(use_enable egl simple-egl-clients)"
|
||||
else
|
||||
myconf="--disable-simple-clients
|
||||
--disable-simple-egl-clients"
|
||||
fi
|
||||
|
||||
if use gles2; then
|
||||
myconf+=" --with-cairo=glesv2"
|
||||
elif use opengl; then
|
||||
myconf+=" --with-cairo=gl"
|
||||
else
|
||||
myconf+=" --with-cairo=image"
|
||||
fi
|
||||
|
||||
econf \
|
||||
$(use_enable examples demo-clients-install) \
|
||||
$(use_enable fbdev fbdev-compositor) \
|
||||
$(use_enable dbus) \
|
||||
$(use_enable drm drm-compositor) \
|
||||
$(use_enable headless headless-compositor) \
|
||||
$(use_enable ivi ivi-shell) \
|
||||
$(use_enable rdp rdp-compositor) \
|
||||
$(use_enable rpi rpi-compositor) \
|
||||
$(use_enable wayland-compositor) \
|
||||
$(use_enable X x11-compositor) \
|
||||
$(use_enable launch weston-launch) \
|
||||
$(use_enable colord) \
|
||||
$(use_enable egl) \
|
||||
$(use_enable unwind libunwind) \
|
||||
$(use_enable resize-optimization) \
|
||||
$(use_enable screen-sharing) \
|
||||
$(use_enable suid setuid-install) \
|
||||
$(use_enable xwayland) \
|
||||
$(use_enable xwayland xwayland-test) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export XDG_RUNTIME_DIR="${T}/runtime-dir"
|
||||
mkdir "${XDG_RUNTIME_DIR}" || die
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}" || die
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
Xemake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
readme.gentoo_src_install
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Data-Dump-Streamer/Data-Dump-Streamer-2.380.0.ebuild,v 1.1 2015/03/24 16:22:29 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=YVES
|
||||
MODULE_VERSION=2.38
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Accurately serialize a data structure as Perl code"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-perl/B-Utils-0.70.0
|
||||
virtual/perl-Carp
|
||||
virtual/perl-Data-Dumper
|
||||
virtual/perl-Exporter
|
||||
virtual/perl-IO
|
||||
virtual/perl-Text-Balanced
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-Module-Build
|
||||
virtual/perl-ExtUtils-CBuilder
|
||||
test? (
|
||||
virtual/perl-Test-Simple
|
||||
dev-perl/JSON-XS
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
||||
|
||||
src_prepare() {
|
||||
# Add DDS.pm shortcut
|
||||
echo 'yes' > "${S}"/.answer
|
||||
perl-module_src_prepare
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST Data-Dump-Streamer-2.36.tar.gz 146731 SHA256 4547179175eabf56b15cd558829c1245a796f9ebe35017dae1b2fbba6ecb8ae2 SHA512 89e742dacef0c65701a3e66179e5a6392c16d4ff180e8ca8604b7271243a31511dbdfb5a2a6dbc4bb21fe1d50899c4a5313e8a9e3ddae14cacd7d432b4a7e606 WHIRLPOOL d0618cde8281d801b9f780667aaf01bcfe07a9d4d68321a7915d3b2ad9cdbeabfb344d752bdcad434e8c3769c7a57fd1c113de0b123a2c29a1d3988a82d60732
|
||||
DIST Data-Dump-Streamer-2.38.tar.gz 148048 SHA256 210684c5a6805d61dd49ec0a17ae5ba359f100877e0dc8e467d956c78c693a5d SHA512 1a1e248e4fc6687ca99b1cb105b4ffc13f8f0a3d39c85c4eb82fc465d18b92815b7a9f10bb6b1e31c6d1553e3bdbb24eaefd850b0bdfafc058859882ddf5a51b WHIRLPOOL bdcef04f1cf7e1e849dfe76cf2cc464ee5280ded227b943640391d88d02dc33f5c62253f847da353c8c04afbfcb76d36b0f50dfa9bf2d23a0c86f7f88fb58f78
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST redis-2.2.3.tgz 86664 SHA256 87861198403ef7bf09306494f2efc5b55bfdcc6095b7aac059a546a2e662967d SHA512 17ff00c0ee3fa36fa6a2040740c51a9ad36e16be19b9b6df9872138a9015e3f01add59b0b6437c66966fb2850a4c63800b47737e468f4103d7285bdebf377b3b WHIRLPOOL bf0a30d2b9ba399edaddaae7856c6e42e48ed4be88e86a4da88ba5556a7aa36d54a448830810d3ffd3a3e49329f5a8e36a1d0eac9436843fc00b157e0fc592aa
|
||||
DIST redis-2.2.5.tgz 96970 SHA256 dceb18c9b563a8da92752ffc2c280beb1b14a86649342af307831a881c053343 SHA512 a0ae16146b97be678d3a25037ada6eb65b4a5cfbc02622c3c056635428851d52634e9d8fef9d393db4787f568d3d4d0c4ebbc740d1b008acc2f168ea5002aeb5 WHIRLPOOL bbb13c9d4b9e9a2d1b60314325cdf0eb921fb2e6d1962919499db89d9a3a11f82ad196c1bff81e404a7133fd21231decd7277b9a537a079d4cdd953fff24d451
|
||||
DIST redis-2.2.7.tgz 134340 SHA256 95e5331cd7e709771eb4479c455bcf326a74b2aea3b1a5cba00b4c95e66dc902 SHA512 88be2abeda62b7c1c95b6d399bbb5f97774d956001b4d13a8e5f183e86fe6336d91f479a8125adcaeff1ad5617a920953961360fc3484ebafc3ed915bcd7f86c WHIRLPOOL e7c8ea7c0c4578933211d4571d742ad09eadb5dd93e207d4f0d5858bfacb7a78eb4bd7ed34cafbc17b465b0d423ea0ff788dee907d89c4939ee4a9acbbe8b95d
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-redis/pecl-redis-2.2.7.ebuild,v 1.1 2015/03/24 13:28:34 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PHP_EXT_NAME="redis"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
|
||||
USE_PHP="php5-6 php5-5 php5-4"
|
||||
|
||||
DOCS="README ChangeLog"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="This extension provides an API for communicating with Redis servers"
|
||||
LICENSE="PHP-3.01"
|
||||
SLOT="0"
|
||||
IUSE="igbinary"
|
||||
|
||||
DEPEND="igbinary? ( php_targets_php5-4? ( dev-php/igbinary[php_targets_php5-4] )
|
||||
php_targets_php5-5? ( dev-php/igbinary[php_targets_php5-5] )
|
||||
php_targets_php5-6? ( dev-php/igbinary[php_targets_php5-6] )
|
||||
)"
|
||||
RDEPEND="$DEPEND"
|
||||
|
||||
src_configure() {
|
||||
my_conf="--enable-redis
|
||||
$(use_enable igbinary redis-igbinary)"
|
||||
|
||||
php-ext-source-r2_src_configure
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST mercurial-3.2.3.tar.gz 4078011 SHA256 c4369320e276d78aada1b5936e96c7bbbbb8154cfba725ef4e8757dcedeaf1ef SHA512 eba8e9a1f807132614d2229a6ed38840aa55a80859a504c8fa7c500572e73a1b8a33d4a26ec0e1b9c0202f5ec592d29bf4b6bd1d95f069d2ecda342d28e31569 WHIRLPOOL 586743d7960673f97cf88232a529528ce0a6e3fd2a94256ba5b528a292669111d06a9f3ecc95f10ad590374691dbdb18538f927e7b6510c3b965973646585837
|
||||
DIST mercurial-3.2.4.tar.gz 4078698 SHA256 08d4169d02fd24819a7b3203ba85ccf5037dc646e082eb1b21b3c87ed576f6bc SHA512 20f39489ca8c3a619f86e9a4c81908fe38890d55908d8194f61ea697770cbe48425b5aedf5483fa08a5297c52a746c8efde524930fb45c4f8fd778d8278557c9 WHIRLPOOL a4472a0611b427269391cdb62902d41559910146857ba6c4a63a3574cff61823ef5f99f71096469e1151bf2804f09ac04f1cb1fb3712c302c14af41f86e9cc79
|
||||
DIST mercurial-3.3.tar.gz 4162147 SHA256 306a084b166ab3d01a0d8a2e1b80208fd7c7f71dc46d485d47a9c5c021e9dc77 SHA512 96d3ad32b51d3a32a0610e36d410b5370b06c7f0746cee3d3b119c2faf864e0cc089b0e0992c6dd4c660a727e22b9e13ce94fcc98ab9b2a57b8e521d8e4a678e WHIRLPOOL fcde79dea587923e94235bc297c13bfdf0947554af9d14e67b76ac2343c548f8a7b16a15ac2977590b5dbb5b62c7901789f1bda1ef964622daaaa2e6d1a5e1a3
|
||||
DIST mercurial-3.3.2.tar.gz 4165131 SHA256 67c617c740ac706f923371a26f02339b27cd6c36e5d3fb2ccad0dc02361527fa SHA512 f151ea3187b70d70a82f643aaacd2742d0ce5f996590eab008332a7f28df5a19e99634ff33b0509ad38d2b6b411627413a457255df8a8e45025246beebb6fcc1 WHIRLPOOL 740b1ebb68f7c8baf3e6a9b023be2423677e3189221dc302c0601b514193e27eaaf73985c9536c6aa03fa0c5b9be8c092cd7b3eaca5f77ee24bfa276bbb6109c
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-3.2.4.ebuild,v 1.1 2015/01/11 09:36:42 djc Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-3.3.2.ebuild,v 1.1 2015/03/24 17:32:12 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
@ -1,140 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-3.3.ebuild,v 1.1 2015/02/02 10:04:06 djc Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Scalable distributed SCM"
|
||||
HOMEPAGE="http://mercurial.selenic.com/"
|
||||
SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bugzilla emacs gpg test tk"
|
||||
|
||||
RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
gpg? ( app-crypt/gnupg )
|
||||
tk? ( dev-lang/tk )
|
||||
app-misc/ca-certificates"
|
||||
DEPEND="emacs? ( virtual/emacs )
|
||||
test? ( app-arch/unzip
|
||||
dev-python/pygments[${PYTHON_USEDEP}] )"
|
||||
|
||||
SITEFILE="70${PN}-gentoo.el"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" )
|
||||
|
||||
python_prepare_all() {
|
||||
# fix up logic that won't work in Gentoo Prefix (also won't outside in
|
||||
# certain cases), bug #362891
|
||||
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
strip-flags -ftracer -ftree-vectorize
|
||||
# Note: make it impl-conditional if py3 is supported
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
"${PYTHON}" setup.py build_mo || die
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
rm -r contrib/{win32,macosx} || die
|
||||
if use emacs; then
|
||||
cd contrib || die
|
||||
elisp-compile mercurial.el || die "elisp-compile failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newbashcomp contrib/bash_completion hg
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins contrib/zsh_completion _hg
|
||||
|
||||
rm -f doc/*.?.txt
|
||||
dodoc CONTRIBUTORS
|
||||
cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
|
||||
|
||||
dobin hgeditor
|
||||
dobin contrib/hgk
|
||||
python_foreach_impl python_doscript contrib/hg-ssh
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
|
||||
fi
|
||||
|
||||
local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
|
||||
*.el mercurial.spec)
|
||||
for f in ${RM_CONTRIB[@]}; do
|
||||
rm -r contrib/$f || die
|
||||
done
|
||||
|
||||
dodoc -r contrib
|
||||
docompress -x /usr/share/doc/${PF}/contrib
|
||||
doman doc/*.?
|
||||
|
||||
cat > "${T}/80mercurial" <<-EOF
|
||||
HG="${EPREFIX}/usr/bin/hg"
|
||||
EOF
|
||||
doenvd "${T}/80mercurial"
|
||||
|
||||
insinto /etc/mercurial/hgrc.d
|
||||
doins "${FILESDIR}/cacerts.rc"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd tests &>/dev/null || die
|
||||
rm -rf *svn* # Subversion tests fail with 1.5
|
||||
rm -f test-archive* # Fails due to verbose tar output changes
|
||||
rm -f test-convert-baz* # GNU Arch baz
|
||||
rm -f test-convert-cvs* # CVS
|
||||
rm -f test-convert-darcs* # Darcs
|
||||
rm -f test-convert-git* # git
|
||||
rm -f test-convert-mtn* # monotone
|
||||
rm -f test-convert-tla* # GNU Arch tla
|
||||
#rm -f test-doctest* # doctest always fails with python 2.5.x
|
||||
rm -f test-largefiles* # tends to time out
|
||||
|
||||
popd &>/dev/null || die
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local TEST_DIR
|
||||
|
||||
rm -rf "${TMPDIR}"/test
|
||||
distutils_install_for_testing
|
||||
cd tests || die
|
||||
"${PYTHON}" run-tests.py --verbose \
|
||||
--tmpdir="${TMPDIR}"/test \
|
||||
--with-hg="${TEST_DIR}"/scripts/hg \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
|
||||
elog "If you want to convert repositories from other tools using convert"
|
||||
elog "extension please install correct tool:"
|
||||
elog " dev-vcs/cvs"
|
||||
elog " dev-vcs/darcs"
|
||||
elog " dev-vcs/git"
|
||||
elog " dev-vcs/monotone"
|
||||
elog " dev-vcs/subversion"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST tortoisehg-3.2.2.tar.gz 8212311 SHA256 ce3c9a3cd44ae071b6d44c68fd2fa78858f11dddaeef688cc4e7cb4a4fdf81a0 SHA512 9dd2c398467afea507376255125d916af36e94943678410232c5f100c7b3a56f37f89076baa2b824cdee12d4792144ff5ecba1493d28f10f23377322f0f628d1 WHIRLPOOL f0ecdc78b795e1d19b8c8321a1c8606ff0058ae56915fea6ba93c4f1e2893a69dd217f70562db922b5b68f3a3d965067f88b4a0b7e5f853245934f4fb9c88abd
|
||||
DIST tortoisehg-3.2.4.tar.gz 8212476 SHA256 71653daafa3beff6518e1f198ad7f26403118f4413ed0ae02830fdd1ae86001a SHA512 d94554e8d3e2c2199f0e8858925bf20dc4399595f214c08dd00b7f40c5674dd6097d97c7181f502c010d0d76efebc1491caac23d7d2e238596dbf5f734b79253 WHIRLPOOL 424968f10e0bb26942a990255b586f95d565161f29fee669ba35d516c25d204ebc0b9b154d619907dbfc9331a0a03d005653d42886a1671ec8f319ac5d3f0c36
|
||||
DIST tortoisehg-3.3.tar.gz 8210712 SHA256 087af028bb54a2162a31a2dd81a14a3f1f1e12eadde42890a489ab11f7201cdb SHA512 ed1f3870c116e1e22f3f9f38b73e7660b1036452a42f65794782a542c2df55036e2d5737aa1e121d4d9c513509305a72f41a51cb4a1270f3ce49cb4c99c74baf WHIRLPOOL 3905ad92b1eaf3a7ead3a58e5cf5fbf0212b3a7decc06652cc5ed1ac140dee50e30c238532ff9abe23f1531efa8f3410bc562a518505c3e36cca0cb1b7323f9b
|
||||
DIST tortoisehg-3.3.2.tar.gz 8226128 SHA256 779beb06588897d1c42fc463fecc4b61498f7cac76681fe1c1f017ecd811719a SHA512 4b7e1422731507aa8947b0e8e7746a6daa004186833db200122927c4e5a2f2cb1fbbf12f89089e3ee82d1a22fdb3c7745465188cbf3e14d73d831b953f2b2d9f WHIRLPOOL 34fce6c6383ae94eb4d6fbca854068535ac39b50746dbcc3ee9460976231dc68c3c5f824dc31082838505bdaeaf3620306ceea867d8ac5571d00ee1f1192e867
|
||||
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/tortoisehg/tortoisehg-3.2.4.ebuild,v 1.1 2015/02/03 07:26:08 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://www.bitbucket.org/${PN}/targz/downloads/${P}.tar.gz"
|
||||
HG_DEPEND=">=dev-vcs/mercurial-3.0 <dev-vcs/mercurial-3.3"
|
||||
else
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://bitbucket.org/tortoisehg/thg"
|
||||
EHG_REVISION="stable"
|
||||
KEYWORDS=""
|
||||
SRC_URI=""
|
||||
HG_DEPEND="dev-vcs/mercurial"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Set of graphical tools for Mercurial"
|
||||
HOMEPAGE="http://tortoisehg.bitbucket.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="${HG_DEPEND}
|
||||
dev-python/iniparse[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt4[svg,${PYTHON_USEDEP}]
|
||||
dev-python/qscintilla-python[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( >=dev-python/sphinx-1.0.3 )"
|
||||
|
||||
# Workaround race condition in build_qt
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
if [[ ${LINGUAS+set} ]]; then
|
||||
cd i18n/tortoisehg || die
|
||||
local x y keep
|
||||
for x in *.po; do
|
||||
keep=false
|
||||
for y in ${LINGUAS}; do
|
||||
if [[ ${y} == ${x%.po}* ]]; then
|
||||
keep=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
${keep} || rm "${x}" || die
|
||||
done
|
||||
cd "${S}" || die
|
||||
fi
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc
|
||||
if use doc ; then
|
||||
dohtml -r doc/build/html/
|
||||
fi
|
||||
newicon -s scalable icons/scalable/apps/thg-logo.svg thg_logo.svg
|
||||
domenu contrib/thg.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "When startup of ${PN} fails with an API version mismatch error"
|
||||
elog "between dev-python/sip and dev-python/PyQt4 please rebuild"
|
||||
elog "dev-python/qscintilla-python."
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/tortoisehg/tortoisehg-3.3.ebuild,v 1.1 2015/02/04 22:21:58 polynomial-c Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/tortoisehg/tortoisehg-3.3.2.ebuild,v 1.1 2015/03/24 17:34:12 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
@ -1,2 +1 @@
|
||||
DIST enigma-1.01-64bit.tar.gz 10891095 SHA256 ae87ecf635bd89bec143a8011e30a4a3b546edb3fe2ed2fca243d366bb599736 SHA512 345034bcdb7d237cd3e70d2439657e738456e5fd0c761ff3257f17e7c6adee78ee48673ce24f562cedf46040c4749081beaf568e0d823900c9179078fefd8686 WHIRLPOOL 6ae0955272bb443db22ce5f2f55103440a22077e260957168277f14f3f4be68c087aac245aebc81234f66a3225618283800f9a1bc8e3822d4b88ae741e6e3d93
|
||||
DIST enigma-1.21.tar.gz 56409951 SHA256 d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01 SHA512 0cca56a193f0f416e0fde02caf2e30b61eef506b6c62e151ff575f5c130f1e2e778d77149007b114ebaeec3a3e793434328555cb5190954a0ae13ed6cee229f0 WHIRLPOOL 9583eaacd75c7a3cf5af172d1209771b599e6f8b0fed2b7ea6b0a76ccc2743615d47ac3199f56dd1e39203afc09a43d9aa5d8d879e38502b47d4b77274217b87
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-1.01.ebuild,v 1.17 2012/09/28 12:24:34 tupone Exp $
|
||||
|
||||
EAPI=2
|
||||
inherit autotools eutils games
|
||||
|
||||
DESCRIPTION="puzzle game similar to Oxyd"
|
||||
HOMEPAGE="http://www.nongnu.org/enigma/"
|
||||
SRC_URI="mirror://berlios/enigma-game/${P}-64bit.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="media-libs/sdl-ttf
|
||||
media-libs/libsdl
|
||||
media-libs/sdl-mixer
|
||||
media-libs/sdl-image[jpeg,png]
|
||||
media-libs/libpng
|
||||
|| ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] )
|
||||
net-libs/enet:0
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
src_prepare() {
|
||||
cp /usr/share/gettext/config.rpath .
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-autotools.patch \
|
||||
"${FILESDIR}"/${P}-gcc43.patch \
|
||||
"${FILESDIR}"/${P}-gcc44.patch \
|
||||
"${FILESDIR}"/${P}-gcc46.patch \
|
||||
"${FILESDIR}"/${P}-gcc47.patch \
|
||||
"${FILESDIR}"/${P}-xerces-c.patch \
|
||||
"${FILESDIR}"/${P}-libpng15.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egamesconf \
|
||||
--disable-dependency-tracking \
|
||||
$(use_enable nls)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING
|
||||
dohtml -r doc/*
|
||||
doman doc/enigma.6
|
||||
prepgamesdirs
|
||||
}
|
@ -1,109 +0,0 @@
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -260,7 +260,6 @@
|
||||
CXXFLAGS="$CXXFLAGS -O2 -ffast-math -fomit-frame-pointer"
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
- CXXFLAGS="$CXXFLAGS -g"
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
@@ -321,7 +320,6 @@
|
||||
dnl Configure libraries
|
||||
dnl ----------------------------------------------------------
|
||||
AC_CONFIG_SUBDIRS(lib-src/zipios++)
|
||||
-AC_CONFIG_SUBDIRS(lib-src/enet)
|
||||
|
||||
AC_CONFIG_FILES([Makefile m4/Makefile intl/Makefile
|
||||
data/Makefile
|
||||
--- etc/Makefile.am
|
||||
+++ etc/Makefile.am
|
||||
@@ -1,14 +1,14 @@
|
||||
# if !MINGW32
|
||||
# Comply with xdg icon theme specification
|
||||
-icondir = $(prefix)/share/icons/hicolor/48x48/apps
|
||||
+icondir = /usr/share/icons/hicolor/48x48/apps
|
||||
icon_DATA = enigma.png
|
||||
|
||||
# Backwards-compatible global search location for images
|
||||
-pixmapdir = $(prefix)/share/pixmaps
|
||||
+pixmapdir = /usr/share/pixmaps
|
||||
pixmap_DATA = enigma.png
|
||||
|
||||
# Install .desktop file in xdg standard location
|
||||
-desktopdir = $(prefix)/share/applications
|
||||
+desktopdir = /usr/share/applications
|
||||
desktop_DATA = enigma.desktop
|
||||
# endif !MINGW32
|
||||
|
||||
--- lib-src/Makefile.am
|
||||
+++ lib-src/Makefile.am
|
||||
@@ -1 +1 @@
|
||||
-SUBDIRS = oxydlib lua zipios++ enet enigma-core
|
||||
+SUBDIRS = oxydlib lua zipios++ enigma-core
|
||||
--- Makefile.am
|
||||
+++ Makefile.am
|
||||
@@ -3,11 +3,9 @@
|
||||
# tools -> lib-src/lua
|
||||
# src -> tools, lib-src
|
||||
#
|
||||
-SUBDIRS = m4 lib-src tools intl src data doc po etc
|
||||
+SUBDIRS = m4 lib-src tools intl src data po etc
|
||||
EXTRA_DIST = enigma CHANGES ACKNOWLEDGEMENTS
|
||||
|
||||
-docdir = @datadir@/doc/enigma
|
||||
-doc_DATA = README CHANGES COPYING ACKNOWLEDGEMENTS
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
--- po/Makefile.in.in
|
||||
+++ po/Makefile.in.in
|
||||
@@ -24,12 +24,12 @@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
datadir = @datadir@
|
||||
-localedir = $(datadir)/locale
|
||||
+localedir = /usr/share/locale
|
||||
gettextsrcdir = $(datadir)/gettext/po
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
-MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||
+MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs
|
||||
#install_sh@ -d
|
||||
mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
|
||||
|
||||
--- src/Makefile.am
|
||||
+++ src/Makefile.am
|
||||
@@ -12,12 +12,11 @@
|
||||
|
||||
CXXFLAGS = @CXXFLAGS@\
|
||||
-DSYSTEM_DATA_DIR=\"$(datadir)/enigma\" \
|
||||
- -DLOCALEDIR=\"$(localedir)\" \
|
||||
+ -DLOCALEDIR=\"/usr/share/locale\" \
|
||||
-I$(top_srcdir)/lib-src/zipios++ \
|
||||
-I$(top_builddir)/lib-src/zipios++ \
|
||||
-I$(top_srcdir)/lib-src/lua \
|
||||
-I$(top_srcdir)/lib-src/enigma-core \
|
||||
- -I$(top_srcdir)/lib-src/enet/include \
|
||||
-I$(top_srcdir)/lib-src \
|
||||
-I$(top_builddir)/intl @SDL_CFLAGS@
|
||||
|
||||
@@ -193,7 +192,7 @@
|
||||
|
||||
else # not MINGW32
|
||||
|
||||
- localedir = $(datadir)/locale
|
||||
+ localedir = /usr/share/locale
|
||||
mingw_ldadd =
|
||||
|
||||
endif
|
||||
@@ -202,7 +201,7 @@
|
||||
@LIBINTL@ \
|
||||
$(top_builddir)/lib-src/enigma-core/libecl.a \
|
||||
$(top_builddir)/lib-src/lua/liblua.a \
|
||||
- $(top_builddir)/lib-src/enet/libenet.a \
|
||||
+ -lenet \
|
||||
$(top_builddir)/lib-src/oxydlib/liboxyd.a \
|
||||
$(top_builddir)/lib-src/zipios++/src/libzipios.a \
|
||||
-lz \
|
@ -1,40 +0,0 @@
|
||||
--- lib-src/enigma-core/ecl_util.hh
|
||||
+++ lib-src/enigma-core/ecl_util.hh
|
||||
@@ -20,6 +20,7 @@
|
||||
#define ECL_UTIL_HH_INCLUDED
|
||||
|
||||
#include <string>
|
||||
+#include <algorithm>
|
||||
|
||||
/* hide GNU extensions for non-gnu compilers: */
|
||||
#ifndef __GNU__
|
||||
--- src/Utf8ToXML.cc
|
||||
+++ src/Utf8ToXML.cc
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "main.hh"
|
||||
#include <xercesc/util/XMLString.hpp>
|
||||
#include <xercesc/util/TransService.hpp>
|
||||
+#include <cstring>
|
||||
|
||||
XERCES_CPP_NAMESPACE_USE
|
||||
|
||||
--- src/file.hh
|
||||
+++ src/file.hh
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <iosfwd>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
+#include <memory>
|
||||
#include "ecl_error.hh"
|
||||
|
||||
namespace enigma
|
||||
--- src/gui/widgets.cc
|
||||
+++ src/gui/widgets.cc
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
+#include <climits>
|
||||
|
||||
using namespace enigma::gui;
|
||||
using namespace ecl;
|
@ -1,51 +0,0 @@
|
||||
--- src/PropertyManager.cc.old 2009-05-22 10:50:04.000000000 +0200
|
||||
+++ src/PropertyManager.cc 2009-05-22 10:50:30.000000000 +0200
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "XMLtoLocal.hh"
|
||||
#include "XMLtoUtf8.hh"
|
||||
#include "ecl_system.hh"
|
||||
+#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <xercesc/dom/DOM.hpp>
|
||||
#include <xercesc/util/XMLDouble.hpp>
|
||||
--- src/StateManager.cc.old 2009-05-22 10:52:13.000000000 +0200
|
||||
+++ src/StateManager.cc 2009-05-22 10:52:38.000000000 +0200
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "XMLtoUtf8.hh"
|
||||
#include "ecl_system.hh"
|
||||
#include "gui/ErrorMenu.hh"
|
||||
+#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <xercesc/dom/DOM.hpp>
|
||||
--- src/gui/LevelPackComposer.cc.old 2009-05-22 10:53:46.000000000 +0200
|
||||
+++ src/gui/LevelPackComposer.cc 2009-05-22 10:54:24.000000000 +0200
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "lev/Index.hh"
|
||||
|
||||
#include "main.hh"
|
||||
+#include <cstdio>
|
||||
|
||||
using namespace ecl;
|
||||
using namespace std;
|
||||
--- src/lev/Index.cc.old 2009-05-22 10:55:16.000000000 +0200
|
||||
+++ src/lev/Index.cc 2009-05-22 10:55:41.000000000 +0200
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "StateManager.hh"
|
||||
#include "lev/ScoreManager.hh"
|
||||
#include "lev/RatingManager.hh"
|
||||
+#include <cstdio>
|
||||
|
||||
|
||||
namespace enigma { namespace lev {
|
||||
--- src/lua.cc.old 2009-05-28 09:43:36.000000000 +0200
|
||||
+++ src/lua.cc 2009-05-28 09:44:22.000000000 +0200
|
||||
@@ -574,7 +574,7 @@
|
||||
int y = round_down<int>(lua_tonumber(L, 2));
|
||||
const char *dir = lua_tostring(L,3);
|
||||
const char *allowed = "wsen";
|
||||
- char *found = strchr(allowed, dir[0]);
|
||||
+ const char *found = strchr(allowed, dir[0]);
|
||||
|
||||
if (found && found[0])
|
||||
world::AddScramble(GridPos(x,y), enigma::Direction(found-allowed));
|
@ -1,20 +0,0 @@
|
||||
--- lib-src/enigma-core/ecl_dict.hh.old 2011-04-29 08:41:47.649582258 +0200
|
||||
+++ lib-src/enigma-core/ecl_dict.hh 2011-04-29 08:42:05.404691426 +0200
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "ecl_error.hh"
|
||||
#include <utility>
|
||||
+#include <cstddef>
|
||||
|
||||
namespace ecl
|
||||
{
|
||||
--- lib-src/zipios++/src/directory.h.old 2011-04-29 08:40:31.063798354 +0200
|
||||
+++ lib-src/zipios++/src/directory.h 2011-04-29 08:40:52.656147037 +0200
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
#include <stdexcept>
|
||||
+#include <cstddef>
|
||||
|
||||
// #include <boost.h> Contents of boost.h
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- lib-src/enigma-core/ecl_alist.hh.old 2012-09-28 12:28:01.465223434 +0200
|
||||
+++ lib-src/enigma-core/ecl_alist.hh 2012-09-28 12:28:41.195739039 +0200
|
||||
@@ -61,7 +61,7 @@
|
||||
VAL &operator[] (const key_type &key) {
|
||||
iterator i=find(key);
|
||||
if (i==this->end())
|
||||
- i=insert(this->end(), make_pair(key, VAL()));
|
||||
+ i=this->insert(this->end(), make_pair(key, VAL()));
|
||||
return i->second;
|
||||
}
|
||||
};
|
@ -1,11 +0,0 @@
|
||||
--- lib-src/enigma-core/IMG_SavePNG.c
|
||||
+++ lib-src/enigma-core/IMG_SavePNG.c
|
||||
@@ -84,7 +84,7 @@
|
||||
png_bytep *row_pointers = 0;
|
||||
|
||||
/* Set error handling. */
|
||||
- if (setjmp(png_ptr->jmpbuf)) {
|
||||
+ if (setjmp(png_jmpbuf(png_ptr))) {
|
||||
IMG_SetError("Error writing the PNG file");
|
||||
}
|
||||
else {
|
@ -1,85 +0,0 @@
|
||||
--- configure.ac 2008-11-18 14:09:53.724778996 +0500
|
||||
+++ configure.ac3 2008-11-18 14:42:30.322032537 +0500
|
||||
@@ -167,14 +167,14 @@ dnl ------------------------------------
|
||||
dnl Check for xerces
|
||||
dnl ----------------------------------------
|
||||
if test "$MINGW32" = yes; then
|
||||
- AC_MSG_CHECKING([for Xerces 3.0 experimental version])
|
||||
- AC_EGREP_HEADER([gXercesMajVersion = 3],[xercesc/util/XercesVersion.hpp],
|
||||
+ AC_MSG_CHECKING([for Xerces 3 version])
|
||||
+ AC_EGREP_HEADER([XERCES_VERSION_MAJOR 3],[xercesc/util/XercesVersion.hpp],
|
||||
[AC_MSG_RESULT([found])],
|
||||
[AC_MSG_ERROR([not found])])
|
||||
AC_CHECK_LIB(xerces, main,,[AC_MSG_ERROR([xerces is required to compile Enigma])])
|
||||
else
|
||||
- AC_MSG_CHECKING([for Xerces 3.0 experimental version])
|
||||
- AC_EGREP_HEADER([gXercesMajVersion = 3],[xercesc/util/XercesVersion.hpp],
|
||||
+ AC_MSG_CHECKING([for Xerces 3 version])
|
||||
+ AC_EGREP_HEADER([XERCES_VERSION_MAJOR 3],[xercesc/util/XercesVersion.hpp],
|
||||
xerces3exp="yes",
|
||||
xerces3exp="no")
|
||||
if test "x$xerces3exp" = xyes; then
|
||||
--- src/lev/ScoreManager.cc
|
||||
+++ src/lev/ScoreManager.cc
|
||||
@@ -65,15 +65,23 @@
|
||||
class ScoreDomSerFilter : public DOMWriterFilter {
|
||||
#endif
|
||||
public:
|
||||
+#if _XERCES_VERSION >= 30000
|
||||
+ virtual DOMNodeFilter::FilterAction acceptNode(const DOMNode *node) const;
|
||||
+#else
|
||||
virtual short acceptNode(const DOMNode *node) const;
|
||||
+#endif
|
||||
virtual unsigned long getWhatToShow () const {
|
||||
return DOMNodeFilter::SHOW_ALL;
|
||||
}
|
||||
virtual void setWhatToShow (unsigned long toShow) {}
|
||||
};
|
||||
-
|
||||
+
|
||||
+#if _XERCES_VERSION >= 30000
|
||||
+ DOMNodeFilter::FilterAction ScoreDomSerFilter::acceptNode(const DOMNode *node) const {
|
||||
+#else
|
||||
short ScoreDomSerFilter::acceptNode(const DOMNode *node) const {
|
||||
- if (node->getNodeType () == DOMNode::ELEMENT_NODE &&
|
||||
+#endif
|
||||
+ if (node->getNodeType () == DOMNode::ELEMENT_NODE &&
|
||||
std::string(XMLtoUtf8(node->getNodeName()).c_str()) == "level") {
|
||||
const DOMElement *e = dynamic_cast<const DOMElement *>(node);
|
||||
std::string id = XMLtoUtf8(e->getAttribute(Utf8ToXML("id").x_str())).c_str();
|
||||
--- src/Utf8ToXML.cc~ 2008-12-29 00:12:26.000000000 +0600
|
||||
+++ src/Utf8ToXML.cc 2008-12-29 00:15:19.000000000 +0600
|
||||
@@ -40,11 +40,11 @@
|
||||
}
|
||||
|
||||
void Utf8ToXML::init(const char * const toTranscode) {
|
||||
- unsigned int srcLength = std::strlen(toTranscode) + 1;
|
||||
+ XMLSize_t srcLength = std::strlen(toTranscode) + 1;
|
||||
// make safe assumptions on utf-16 size
|
||||
- unsigned int maxDestLength = srcLength;
|
||||
- unsigned int charsEaten;
|
||||
- unsigned int destLength;
|
||||
+ XMLSize_t maxDestLength = srcLength;
|
||||
+ XMLSize_t charsEaten;
|
||||
+ XMLSize_t destLength;
|
||||
unsigned char *charSizes = new unsigned char[maxDestLength]; // just junk
|
||||
// make a buffer - size does not matter - the object is temporary
|
||||
xmlString = new XMLCh[maxDestLength];
|
||||
--- src/XMLtoUtf8.cc~ 2008-12-29 00:12:12.000000000 +0600
|
||||
+++ src/XMLtoUtf8.cc 2008-12-29 00:14:47.000000000 +0600
|
||||
@@ -27,11 +27,11 @@
|
||||
namespace enigma
|
||||
{
|
||||
XMLtoUtf8::XMLtoUtf8(const XMLCh* const toTranscode) {
|
||||
- unsigned int srcLength = XMLString::stringLen(toTranscode) + 1;
|
||||
+ XMLSize_t srcLength = XMLString::stringLen(toTranscode) + 1;
|
||||
// make safe assumptions on utf-8 size
|
||||
- unsigned int maxDestLength = 3 * srcLength;
|
||||
- unsigned int charsEaten;
|
||||
- unsigned int destLength;
|
||||
+ XMLSize_t maxDestLength = 3 * srcLength;
|
||||
+ XMLSize_t charsEaten;
|
||||
+ XMLSize_t destLength;
|
||||
// make a buffer - size does not matter - the object is temporary
|
||||
utf8String = new char[maxDestLength];
|
||||
// transcode to utf-8 -- there are no unrepresentable chars
|
@ -1 +1,2 @@
|
||||
DIST monopd-0.9.7.tar.gz 180318 SHA256 34aa975c8ee410f661622f91a63c4199e68a333123218b3e48300be1bc7afc30 SHA512 55b2e3b6f16f20fc1928d79eaecbdceaf9b9a8c9fe44b2cf8a8489347c728a006df78043235504e3931bb71b90e7493375fb2b71285447ad4a11dd434aa3133f WHIRLPOOL 14c47c95b64fafe07dc37ea61579ad42cf09c535f35b8f22d7dbdfa1dd04c529173e22c99287d2c748266ab00cdd82e28340d945924681849a1209911d6fcd16
|
||||
DIST monopd-0.9.8.tar.gz 180509 SHA256 408321ea73f2e7cdee570973ff50a3ee1a2f7078f8f19e8861614f238574ec9a SHA512 c39806c51f27eb29f154db520bf1c49d10e5a8587b3d23411de43bd07cd3553c398ea31802473d9cdcf350f5432abeb7bde62478e1844abc93d73395951c87b1 WHIRLPOOL 9e18cfac665610f5372af16128b87095eeb19251cd511b489124c4e7d8845bcc123c6a1fc51d8d457cdabf6cacc6dcf704766b8ff1a96c0f5940bd4f66595272
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-server/monopd/monopd-0.9.8.ebuild,v 1.1 2015/03/24 15:45:04 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils systemd games
|
||||
|
||||
DESCRIPTION="server for atlantik games"
|
||||
HOMEPAGE="http://gtkatlantic.gradator.net/"
|
||||
SRC_URI="http://download.tuxfamily.org/gtkatlantic/monopd/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="systemd"
|
||||
|
||||
RDEPEND="systemd? ( sys-apps/systemd )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-libs/libmath++-0.0.3"
|
||||
|
||||
src_prepare() {
|
||||
sed "s:GENTOO_DIR:\"${GAMES_BINDIR}\":" \
|
||||
"${FILESDIR}"/monopd.in > "${T}"/monopd || die
|
||||
sed -i \
|
||||
-e '/C_SUBST(CXXFLAGS/s/CFLAGS/CXXFLAGS/' \
|
||||
configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egamesconf $(use_with systemd systemd-daemon)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doinitd "${T}"/monopd
|
||||
systemd_dounit doc/systemd/monopd.s*
|
||||
prepgamesdirs
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST font-util-1.2.0.tar.bz2 134588 SHA256 dbbac617ae6cdf6f459e602361211d217f4bad5ad8bfb6adcede6196693f9712 SHA512 98c38572608d77e5a0a7ca6e462cc0eb49a665540da3b537a125902962897d65175be871cc44e570773f07274896730efad9a437cdf541e98112777ce10d0ed2 WHIRLPOOL acd27be6afb6d1faaa7b56695351737e21d8810d1785c0ac3cf4083d77d4f5b3408b8810d868b5ede5cbec99e083ade25dfa7dcef3f3a332b20b4e12bf6ffad4
|
||||
DIST font-util-1.3.0.tar.bz2 142059 SHA256 dfa9e55625a4e0250f32fabab1fd5c8ffcd2d1ff2720d6fcf0f74bc8a5929195 SHA512 61ce9a730e9601decf21fed222c7500aa8a08afd1919634367b927f5479cabfc235c76855f447a560605a477da5cbcbf614af7d18a74fcb512db2f7b3bf4ce5a WHIRLPOOL d7980ac0b8cf75a134db76dc055f5a722d891bae9e04a98fd453ceae4ff1573257a57fe1e60385643d644edb36bf3867ca6f3739dff9b8153b956e3bff3d4011
|
||||
DIST font-util-1.3.1.tar.bz2 153289 SHA256 aa7ebdb0715106dd255082f2310dbaa2cd7e225957c2a77d719720c7cc92b921 SHA512 9fd6dd4c0a01ede5f0b09ec0f9d316267ca086e2ee9526a43a4e4d6ce3cd67c977293bd3cf440328ca417292fcae1579888b24b7259eaf012230890210d74889 WHIRLPOOL 9c6f73b3fa3eeb6c7f5474d5f53dd6435133aea8459debd90084f8e25250d577628d52ec62f6ef126a590bb584d30a6f97d66aee3aaaaa8ee608f59d469d4d5d
|
||||
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-fonts/font-util/font-util-1.2.0.ebuild,v 1.9 2011/11/10 08:06:43 grobian Exp $
|
||||
|
||||
EAPI=3
|
||||
inherit xorg-2
|
||||
|
||||
EGIT_REPO_URI="git://anongit.freedesktop.org/xorg/font/util"
|
||||
DESCRIPTION="X.Org font utilities"
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
CONFIGURE_OPTIONS="--with-mapdir=${EPREFIX}/usr/share/fonts/util --with-fontrootdir=${EPREFIX}/usr/share/fonts"
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-fonts/font-util/font-util-1.3.1.ebuild,v 1.1 2015/03/24 14:33:30 chithanh Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit xorg-2
|
||||
|
||||
EGIT_REPO_URI="git://anongit.freedesktop.org/xorg/font/util"
|
||||
DESCRIPTION="X.Org font utilities"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
XORG_CONFIGURE_OPTIONS="--with-mapdir=${EPREFIX}/usr/share/fonts/util --with-fontrootdir=${EPREFIX}/usr/share/fonts"
|
@ -1 +1 @@
|
||||
DIST flake-0.11.tar.bz2 43319 SHA256 8dd249888005c2949cb4564f02b6badb34b2a0f408a7ec7ab01e11ceca1b7f19
|
||||
DIST flake-0.11.tar.bz2 43319 SHA256 8dd249888005c2949cb4564f02b6badb34b2a0f408a7ec7ab01e11ceca1b7f19 SHA512 045cbe7f5af29dfdc5843df3dccfa6faf1ce816566b2f3ac928b98e14f5ee0ec15ee5024a092da4e33beb5d87c31f38c0780970811c5b96ae72683aeac332584 WHIRLPOOL 1ed1293f5db7606e3f2aa40f15fc066fdd17a85236b7ac1781f7c76c85f1c7e620d08e791836e2c07a93b4b1bd96c7b4e9392b4ae347d7c36478ec87fcc7459a
|
||||
|
@ -0,0 +1,136 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.2.ebuild,v 1.1 2015/03/24 17:13:39 hd_brummy Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="nvram"
|
||||
|
||||
RDEPEND="nvram? ( sys-power/nvram-wakeup )
|
||||
app-admin/sudo
|
||||
sys-process/wait_on_pid"
|
||||
|
||||
VDR_HOME=/var/vdr
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup vdr
|
||||
|
||||
# Add user vdr to these groups:
|
||||
# video - accessing dvb-devices
|
||||
# audio - playing sound when using software-devices
|
||||
# cdrom - playing dvds/audio-cds ...
|
||||
enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# moved into own package
|
||||
sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile
|
||||
sed -e '/all:/s#compile##' -i Makefile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
nonfatal dodoc README* TODO ChangeLog
|
||||
|
||||
# create necessary directories
|
||||
diropts -ovdr -gvdr
|
||||
keepdir "${VDR_HOME}"
|
||||
|
||||
local kd
|
||||
for kd in shutdown-data merged-config-files dvd-images; do
|
||||
keepdir "${VDR_HOME}/${kd}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local PLUGINS_NEW=0
|
||||
if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
|
||||
PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
|
||||
fi
|
||||
if [[ ${PLUGINS_NEW} > 0 ]]; then
|
||||
cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
|
||||
else
|
||||
einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins"
|
||||
local PLUGIN
|
||||
for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
|
||||
echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
|
||||
done
|
||||
fi
|
||||
|
||||
has_version "<${CATEGORY}/${PN}-0.5.4"
|
||||
previous_less_than_0_5_4=$?
|
||||
|
||||
has_version "<${CATEGORY}/${PN}-2.6"
|
||||
previous_less_than_2_6=$?
|
||||
}
|
||||
|
||||
VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $previous_less_than_0_5_4 = 0 ]] ; then
|
||||
elog "\nVDR use now default the --cachedir parameter to store the epg.file"
|
||||
elog "Please do not override this with the EPGFILE variable\n"
|
||||
|
||||
elog "svdrp port 2001 support removed\n"
|
||||
|
||||
elog "--rcu support removed, use media-plugin/vdr-rcu\n"
|
||||
fi
|
||||
|
||||
if [[ $previous_less_than_2_6 = 0 ]]; then
|
||||
elog "${CATEGORY}/${PN} supports now a init script"
|
||||
elog "to start a X server"
|
||||
elog "Please refer for detailed info to"
|
||||
elog "${CATGORY}/${PN} README.x11-setup\n"
|
||||
fi
|
||||
|
||||
if use nvram; then
|
||||
elog "nvram wakeup is optional."
|
||||
elog "To make use of it emerge sys-power/nvram-wakeup.\n"
|
||||
fi
|
||||
|
||||
elog "Plugins which should be used are now set via its"
|
||||
elog "own config-file called /etc/conf.d/vdr.plugins"
|
||||
elog "or enabled via the frontend eselect vdr-plugin.\n"
|
||||
|
||||
if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
|
||||
grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
|
||||
then
|
||||
ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
|
||||
ewarn "This no longer has any effect, please use"
|
||||
ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
|
||||
fi
|
||||
|
||||
elog "systemd is supported by ${CATEGORY}/${PN}"
|
||||
elog "Please read for detailed info on this"
|
||||
elog "${CATEGORY}/${PN} README.systemd"
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
|
||||
|
||||
einfo "Removing depricated entry from /etc/sudoers:"
|
||||
einfo "- ${VDRSUDOENTRY}"
|
||||
|
||||
cd "${T}"
|
||||
cat >sudoedit-vdr.sh <<-SUDOEDITOR
|
||||
#!/bin/bash
|
||||
sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d'
|
||||
|
||||
SUDOEDITOR
|
||||
chmod a+x sudoedit-vdr.sh
|
||||
|
||||
VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
|
||||
|
||||
einfo "Edited /etc/sudoers"
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue