parent
06a7864662
commit
7ce605da81
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
||||
From bbd98c32fb5d33f42d1b9257f55a07d62b8de164 Mon Sep 17 00:00:00 2001
|
||||
From: Craig Andrews <candrews@integralblue.com>
|
||||
Date: Mon, 7 May 2018 11:28:33 -0400
|
||||
Subject: [PATCH] [Kernel] Include /boot/kernel* while looking for linux kernel
|
||||
images
|
||||
|
||||
Fixes kernel detection on Gentoo
|
||||
---
|
||||
perl/lib/NeedRestart/Kernel/Linux.pm | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/perl/lib/NeedRestart/Kernel/Linux.pm b/perl/lib/NeedRestart/Kernel/Linux.pm
|
||||
index 6f284f3..69a919c 100644
|
||||
--- a/perl/lib/NeedRestart/Kernel/Linux.pm
|
||||
+++ b/perl/lib/NeedRestart/Kernel/Linux.pm
|
||||
@@ -131,7 +131,7 @@ sub nr_kernel_check_real($$) {
|
||||
} grep {
|
||||
# filter initrd images
|
||||
(!m@^/boot/init@);
|
||||
- } (</boot/vmlinu*>, </boot/*.img>);
|
||||
+ } (</boot/vmlinu*>, </boot/*.img>, </boot/kernel*>);
|
||||
|
||||
$ui->progress_prep(scalar keys %kfiles, __ 'Scanning linux images...');
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/liske/${PN}.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Restart daemons after library updates"
|
||||
HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2+"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/sed-4.2.2
|
||||
dev-lang/perl:=
|
||||
dev-perl/libintl-perl
|
||||
dev-perl/Module-Find
|
||||
dev-perl/Module-ScanDeps
|
||||
dev-perl/Proc-ProcessTable
|
||||
dev-perl/Sort-Naturally
|
||||
dev-perl/TermReadKey
|
||||
sys-apps/init-system-helpers
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gentoo-kernel-detection.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman man/*.1
|
||||
dodoc -r ex
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1 @@
|
||||
DIST bareos-15.2.2.tar.gz 3928036 BLAKE2B ac331008e45c029bb3320a9a40264d350aedbb5550d65a606a95372241f5ec9c8a7e73f365f8b0c3972e59fa907764995b0173dcd762971cd2fdce1e025c75e2 SHA512 07b11c51695a6ff348317965625e5cdb8e296d4f3a4037718a98e266d94650ed1fb905c220ac791123d8ed92d0aed24854a6ab52887249849dbc00697d3300c3
|
||||
DIST bareos-16.2.4.tar.gz 4275141 BLAKE2B e7b8a5658a697436401659ecd24148f4f1ad982cbd6dd46c39f3d29ba461b54737950d6fe6ec2c36e7892d414306c7038af5221c28652109e047f66f2d9daa2e SHA512 91f7f2b3d9889f4faa9834dc414e2250015d3d26bf8bd0c04c1f3fd882a50a4066ced145f7c8609c070e8f74b53574953e3fef344726c6863cd7bbc73c76a88c
|
||||
DIST bareos-16.2.7.tar.gz 4282998 BLAKE2B 9101a49d1178e0bcc4843cc4472a2082827a7bd7595389c0fa3699d36651ca70fce674509eeaddc8f806a5df1dba6afc89c05be183e7561e013d23bd157ef294 SHA512 028f38dd77fed5e3af6ee50aa44cb2f82349bd38e40eadebc552a95100166291ae0c68073daa2513919da330c66bb54a3050f1d99cbf3b5354f2450a789f6c00
|
||||
|
@ -1,428 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit eutils multilib python-single-r1 qt4-r2 user
|
||||
|
||||
DESCRIPTION="Featureful client/server network backup suite"
|
||||
HOMEPAGE="http://www.bareos.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson lmdb libressl
|
||||
logwatch mysql ndmp postgres python qt4 rados rados-striper readline scsi-crypto
|
||||
sql-pooling +sqlite ssl static +storage-daemon tcpd vim-syntax"
|
||||
REQUIRED_USE="!clientonly? ( || ( mysql postgres sqlite ) )"
|
||||
|
||||
DEPEND="
|
||||
!app-backup/bacula
|
||||
cephfs? ( sys-cluster/ceph )
|
||||
rados? ( sys-cluster/ceph )
|
||||
rados-striper? ( >=sys-cluster/ceph-0.94.2 )
|
||||
glusterfs? ( sys-cluster/glusterfs )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
dev-libs/gmp:0
|
||||
!clientonly? (
|
||||
postgres? ( dev-db/postgresql:*[threads] )
|
||||
mysql? ( virtual/mysql )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
director? (
|
||||
virtual/mta
|
||||
jansson? ( dev-libs/jansson )
|
||||
)
|
||||
)
|
||||
qt4? (
|
||||
dev-qt/qtsvg:4
|
||||
x11-libs/qwt:5
|
||||
)
|
||||
fastlz? ( dev-libs/bareos-fastlzlib )
|
||||
logwatch? ( sys-apps/logwatch )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
static? (
|
||||
acl? ( virtual/acl[static-libs] )
|
||||
sys-libs/zlib[static-libs]
|
||||
dev-libs/lzo[static-libs]
|
||||
sys-libs/ncurses:=[static-libs]
|
||||
ssl? (
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0=[static-libs] )
|
||||
libressl? ( dev-libs/libressl:0=[static-libs] )
|
||||
)
|
||||
gnutls? ( net-libs/gnutls[static-libs] )
|
||||
)
|
||||
)
|
||||
!static? (
|
||||
acl? ( virtual/acl )
|
||||
dev-libs/lzo
|
||||
ssl? (
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
gnutls? ( net-libs/gnutls )
|
||||
)
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/zlib
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!clientonly? (
|
||||
storage-daemon? (
|
||||
sys-block/mtx
|
||||
app-arch/mt-st
|
||||
)
|
||||
)
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
|
||||
|
||||
REQUIRED_USE="static? ( clientonly )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S=${WORKDIR}/${PN}-Release-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
use mysql && export mydbtypes+="mysql"
|
||||
use postgres && export mydbtypes+=" postgresql"
|
||||
use sqlite && export mydbtypes+=" sqlite"
|
||||
|
||||
# create the daemon group and user
|
||||
if [ -z "$(egetent group bareos 2>/dev/null)" ]; then
|
||||
enewgroup bareos
|
||||
einfo
|
||||
einfo "The group 'bareos' has been created. Any users you add to this"
|
||||
einfo "group have access to files created by the daemons."
|
||||
einfo
|
||||
fi
|
||||
|
||||
if use clientonly && use static && use qt4; then
|
||||
ewarn
|
||||
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if ! use clientonly; then
|
||||
if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then
|
||||
enewuser bareos -1 -1 /var/lib/bareos bareos,disk,tape,cdrom,cdrw
|
||||
einfo
|
||||
einfo "The user 'bareos' has been created. Please see the bareos manual"
|
||||
einfo "for information about running bareos as a non-root user."
|
||||
einfo
|
||||
fi
|
||||
fi
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# adjusts default configuration files for several binaries
|
||||
# to /etc/bareos/<config> instead of ./<config>
|
||||
pushd src >&/dev/null || die
|
||||
for f in console/console.c dird/dird.c filed/filed.c \
|
||||
stored/bcopy.c stored/bextract.c stored/bls.c \
|
||||
stored/bscan.c stored/btape.c stored/stored.c \
|
||||
qt-console/main.cpp; do
|
||||
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \
|
||||
|| die "sed on ${f} failed"
|
||||
done
|
||||
popd >&/dev/null || die
|
||||
|
||||
# bug 466690 Use CXXFLAGS instead of CFLAGS
|
||||
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
|
||||
|
||||
# stop build for errors in subdirs
|
||||
epatch "${FILESDIR}"/${PN}-12.4.5-Makefile.patch
|
||||
|
||||
# bat needs to respect LDFLAGS
|
||||
epatch "${FILESDIR}"/${PN}-12.4.5-bat-ldflags.patch
|
||||
|
||||
# do not strip binaries
|
||||
for d in filed console dird stored; do
|
||||
sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=''
|
||||
|
||||
addpredict /var/lib/logrotate.status
|
||||
|
||||
if use clientonly; then
|
||||
myconf="${myconf} \
|
||||
$(use_enable clientonly client-only) \
|
||||
$(use_enable !static libtool) \
|
||||
$(use_enable static static-cons) \
|
||||
$(use_enable static static-fd)"
|
||||
fi
|
||||
|
||||
# do not build bat and traymonitor if 'static' clientonly
|
||||
if ! use clientonly || ! use static; then
|
||||
myconf="${myconf} \
|
||||
$(use_enable qt4 bat) \
|
||||
$(use_enable qt4 traymonitor)"
|
||||
fi
|
||||
|
||||
myconf="${myconf} \
|
||||
$(use_with X x) \
|
||||
$(use_enable acl) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable ndmp) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable !readline conio) \
|
||||
$(use_enable scsi-crypto) \
|
||||
$(use_enable sql-pooling) \
|
||||
$(use_with fastlz) \
|
||||
$(use_with mysql) \
|
||||
$(use_with postgres postgresql) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use sqlite || echo "--without-sqlite3") \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcpd tcp-wrappers) \
|
||||
$(use_enable lmdb) \
|
||||
$(use_with glusterfs) \
|
||||
$(use_with rados) \
|
||||
$(use_with rados-striper) \
|
||||
$(use_with cephfs) \
|
||||
$(use_with jansson) \
|
||||
"
|
||||
|
||||
econf \
|
||||
--libdir=/usr/$(get_libdir) \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--with-pid-dir=/run/bareos \
|
||||
--sysconfdir=/etc \
|
||||
--with-subsys-dir=/run/lock/subsys \
|
||||
--with-working-dir=/var/lib/bareos \
|
||||
--with-logdir=/var/log/bareos \
|
||||
--with-scriptdir=/usr/libexec/bareos \
|
||||
--with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
|
||||
--with-backenddir=/usr/$(get_libdir)/${PN}/backend \
|
||||
--with-dir-user=bareos \
|
||||
--with-dir-group=bareos \
|
||||
--with-sd-user=root \
|
||||
--with-sd-group=bareos \
|
||||
--with-fd-user=root \
|
||||
--with-fd-group=bareos \
|
||||
--with-sbin-perm=0755 \
|
||||
--with-systemd \
|
||||
--enable-dynamic-cats-backends \
|
||||
--enable-dynamic-storage-backends \
|
||||
--enable-batch-insert \
|
||||
--disable-afs \
|
||||
--host=${CHOST} \
|
||||
${myconf}
|
||||
# correct configuration for QT based bat
|
||||
if use qt4 ; then
|
||||
pushd src/qt-console
|
||||
eqmake4
|
||||
popd
|
||||
pushd src/qt-tray-monitor
|
||||
eqmake4
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# workaround for build failing with high -j values
|
||||
# if ndmp is enabled
|
||||
use ndmp && MAKEOPTS="$MAKEOPTS -j1"
|
||||
|
||||
# Make build log verbose (bug #447806)
|
||||
emake NO_ECHO=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
newicon src/images/bareos_logo_shadow.png bareos.png
|
||||
|
||||
# install bat icon and desktop file when enabled
|
||||
# (for some reason ./configure doesn't pick this up)
|
||||
if use qt4 && ! use static ; then
|
||||
doicon src/images/bat.png
|
||||
domenu scripts/bat.desktop
|
||||
fi
|
||||
|
||||
# remove some scripts we don't need at all
|
||||
rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
|
||||
rm -f "${D}"/usr/sbin/bareos
|
||||
|
||||
# remove upstream init scripts
|
||||
rm -f "${D}"/etc/init.d/bareos-*
|
||||
|
||||
# rename statically linked apps
|
||||
if use clientonly && use static ; then
|
||||
pushd "${D}"/usr/sbin || die
|
||||
mv static-bareos-fd bareos-fd || die
|
||||
mv static-bconsole bconsole || die
|
||||
popd || die
|
||||
fi
|
||||
|
||||
# extra files which 'make install' doesn't cover
|
||||
if ! use clientonly; then
|
||||
# the logrotate configuration
|
||||
# (now unconditional wrt bug #258187)
|
||||
diropts -m0755
|
||||
insinto /etc/logrotate.d
|
||||
insopts -m0644
|
||||
newins "${S}"/scripts/logrotate bareos
|
||||
|
||||
# the logwatch scripts
|
||||
if use logwatch; then
|
||||
diropts -m0750
|
||||
dodir /etc/log.d/scripts/services
|
||||
dodir /etc/log.d/scripts/shared
|
||||
dodir /etc/log.d/conf/logfiles
|
||||
dodir /etc/log.d/conf/services
|
||||
pushd "${S}"/scripts/logwatch >&/dev/null || die
|
||||
emake DESTDIR="${D}" install
|
||||
popd >&/dev/null || die
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
|
||||
if ! use qt4; then
|
||||
rm -vf "${D}"/usr/share/man/man1/bat.1*
|
||||
fi
|
||||
if use clientonly || ! use director; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
|
||||
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
|
||||
rm -vf "${D}"/usr/share/man/man8/bwild.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bregex.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
|
||||
rm -vf "${D}"/usr/libexec/bareos/create_*_database
|
||||
rm -vf "${D}"/usr/libexec/bareos/drop_*_database
|
||||
rm -vf "${D}"/usr/libexec/bareos/make_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/update_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
|
||||
rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
|
||||
fi
|
||||
if use clientonly || ! use storage-daemon; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bextract.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bls.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bscan.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/btape.8*
|
||||
rm -vf "${D}"/usr/libexec/bareos/disk-changer
|
||||
rm -vf "${D}"/usr/libexec/bareos/mtx-changer
|
||||
rm -vf "${D}"/usr/libexec/bareos/dvd-handler
|
||||
rm -vf "${D}"/etc/bareos/mtx-changer.conf
|
||||
fi
|
||||
if ! use scsi-crypto; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
|
||||
fi
|
||||
if ! use qt4; then
|
||||
rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1*
|
||||
fi
|
||||
|
||||
# documentation
|
||||
dodoc README.md
|
||||
use ndmp && dodoc README.NDMP
|
||||
use scsi-crypto && dodoc README.scsicrypto
|
||||
|
||||
# vim-files
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins scripts/bareos.vim
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
newins scripts/filetype.vim bareos_ft.vim
|
||||
fi
|
||||
|
||||
# setup init scripts
|
||||
myscripts="bareos-fd"
|
||||
if ! use clientonly; then
|
||||
if use director; then
|
||||
myscripts="${myscripts} bareos-dir"
|
||||
fi
|
||||
if use storage-daemon; then
|
||||
myscripts="${myscripts} bareos-sd"
|
||||
fi
|
||||
fi
|
||||
for script in ${myscripts}; do
|
||||
# copy over init script and config to a temporary location
|
||||
# so we can modify them as needed
|
||||
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
|
||||
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
|
||||
|
||||
# now set the database dependency for the director init script
|
||||
case "${script}" in
|
||||
bareos-dir)
|
||||
sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# install init script and config
|
||||
newinitd "${T}/${script}".initd "${script}"
|
||||
newconfd "${T}/${script}".confd "${script}"
|
||||
done
|
||||
|
||||
# make sure the working directory exists
|
||||
diropts -m0750
|
||||
keepdir /var/lib/bareos
|
||||
|
||||
# make sure bareos group can execute bareos libexec scripts
|
||||
fowners -R root:bareos /usr/libexec/bareos
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use clientonly; then
|
||||
fowners root:bareos /var/lib/bareos
|
||||
else
|
||||
fowners bareos:bareos /var/lib/bareos
|
||||
fi
|
||||
|
||||
if ! use clientonly && use director; then
|
||||
einfo
|
||||
einfo "If this is a new install, you must create the databases with:"
|
||||
if use postgres; then
|
||||
einfo
|
||||
einfo "For postgresql:"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
|
||||
fi
|
||||
if use mysql; then
|
||||
einfo
|
||||
einfo "For mysql:"
|
||||
einfo
|
||||
einfo " Make sure root has direct access to your mysql server. You may want to"
|
||||
einfo " create a /root/.my.cnf file with"
|
||||
einfo " [client]"
|
||||
einfo " user=root"
|
||||
einfo " password=YourPasswordForAccessingMysqlAsRoot"
|
||||
einfo " before running:"
|
||||
einfo " /usr/libexec/bareos/create_bareos_database mysql"
|
||||
einfo " /usr/libexec/bareos/make_bareos_tables mysql"
|
||||
einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
|
||||
fi
|
||||
einfo
|
||||
fi
|
||||
|
||||
if use sqlite; then
|
||||
einfo
|
||||
einfo "Be aware that Bareos does not officially support SQLite database."
|
||||
einfo "Best use it only for a client-only installation. See Bug #445540."
|
||||
einfo
|
||||
einfo "It is strongly recommended to use either postgresql or mysql as"
|
||||
einfo "catalog database backend."
|
||||
einfo
|
||||
fi
|
||||
|
||||
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
|
||||
einfo "you have to enable 'USE=qt4'."
|
||||
einfo
|
||||
}
|
@ -1,428 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit eutils multilib python-single-r1 qt4-r2 user
|
||||
|
||||
DESCRIPTION="Featureful client/server network backup suite"
|
||||
HOMEPAGE="http://www.bareos.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson lmdb libressl
|
||||
logwatch mysql ndmp postgres python qt4 rados rados-striper readline scsi-crypto
|
||||
sql-pooling +sqlite ssl static +storage-daemon tcpd vim-syntax"
|
||||
REQUIRED_USE="!clientonly? ( || ( mysql postgres sqlite ) )"
|
||||
|
||||
DEPEND="
|
||||
!app-backup/bacula
|
||||
cephfs? ( sys-cluster/ceph )
|
||||
rados? ( sys-cluster/ceph )
|
||||
rados-striper? ( >=sys-cluster/ceph-0.94.2 )
|
||||
glusterfs? ( sys-cluster/glusterfs )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
dev-libs/gmp:0
|
||||
!clientonly? (
|
||||
postgres? ( dev-db/postgresql:*[threads] )
|
||||
mysql? ( virtual/mysql )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
director? (
|
||||
virtual/mta
|
||||
jansson? ( dev-libs/jansson )
|
||||
)
|
||||
)
|
||||
qt4? (
|
||||
dev-qt/qtsvg:4
|
||||
x11-libs/qwt:5
|
||||
)
|
||||
fastlz? ( dev-libs/bareos-fastlzlib )
|
||||
logwatch? ( sys-apps/logwatch )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
static? (
|
||||
acl? ( virtual/acl[static-libs] )
|
||||
sys-libs/zlib[static-libs]
|
||||
dev-libs/lzo[static-libs]
|
||||
sys-libs/ncurses:=[static-libs]
|
||||
ssl? (
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0=[static-libs] )
|
||||
libressl? ( dev-libs/libressl:0=[static-libs] )
|
||||
)
|
||||
gnutls? ( net-libs/gnutls[static-libs] )
|
||||
)
|
||||
)
|
||||
!static? (
|
||||
acl? ( virtual/acl )
|
||||
dev-libs/lzo
|
||||
ssl? (
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
gnutls? ( net-libs/gnutls )
|
||||
)
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/zlib
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!clientonly? (
|
||||
storage-daemon? (
|
||||
sys-block/mtx
|
||||
app-arch/mt-st
|
||||
)
|
||||
)
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
|
||||
|
||||
REQUIRED_USE="static? ( clientonly )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S=${WORKDIR}/${PN}-Release-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
use mysql && export mydbtypes+="mysql"
|
||||
use postgres && export mydbtypes+=" postgresql"
|
||||
use sqlite && export mydbtypes+=" sqlite"
|
||||
|
||||
# create the daemon group and user
|
||||
if [ -z "$(egetent group bareos 2>/dev/null)" ]; then
|
||||
enewgroup bareos
|
||||
einfo
|
||||
einfo "The group 'bareos' has been created. Any users you add to this"
|
||||
einfo "group have access to files created by the daemons."
|
||||
einfo
|
||||
fi
|
||||
|
||||
if use clientonly && use static && use qt4; then
|
||||
ewarn
|
||||
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if ! use clientonly; then
|
||||
if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then
|
||||
enewuser bareos -1 -1 /var/lib/bareos bareos,disk,tape,cdrom,cdrw
|
||||
einfo
|
||||
einfo "The user 'bareos' has been created. Please see the bareos manual"
|
||||
einfo "for information about running bareos as a non-root user."
|
||||
einfo
|
||||
fi
|
||||
fi
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# adjusts default configuration files for several binaries
|
||||
# to /etc/bareos/<config> instead of ./<config>
|
||||
pushd src >&/dev/null || die
|
||||
for f in console/console.c dird/dird.c filed/filed.c \
|
||||
stored/bcopy.c stored/bextract.c stored/bls.c \
|
||||
stored/bscan.c stored/btape.c stored/stored.c \
|
||||
qt-console/main.cpp; do
|
||||
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \
|
||||
|| die "sed on ${f} failed"
|
||||
done
|
||||
popd >&/dev/null || die
|
||||
|
||||
# bug 466690 Use CXXFLAGS instead of CFLAGS
|
||||
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
|
||||
|
||||
# stop build for errors in subdirs
|
||||
epatch "${FILESDIR}"/${PN}-12.4.5-Makefile.patch
|
||||
|
||||
# bat needs to respect LDFLAGS
|
||||
epatch "${FILESDIR}"/${PN}-12.4.5-bat-ldflags.patch
|
||||
|
||||
# do not strip binaries
|
||||
for d in filed console dird stored; do
|
||||
sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=''
|
||||
|
||||
addpredict /var/lib/logrotate.status
|
||||
|
||||
if use clientonly; then
|
||||
myconf="${myconf} \
|
||||
$(use_enable clientonly client-only) \
|
||||
$(use_enable !static libtool) \
|
||||
$(use_enable static static-cons) \
|
||||
$(use_enable static static-fd)"
|
||||
fi
|
||||
|
||||
# do not build bat and traymonitor if 'static' clientonly
|
||||
if ! use clientonly || ! use static; then
|
||||
myconf="${myconf} \
|
||||
$(use_enable qt4 bat) \
|
||||
$(use_enable qt4 traymonitor)"
|
||||
fi
|
||||
|
||||
myconf="${myconf} \
|
||||
$(use_with X x) \
|
||||
$(use_enable acl) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable ndmp) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable !readline conio) \
|
||||
$(use_enable scsi-crypto) \
|
||||
$(use_enable sql-pooling) \
|
||||
$(use_with fastlz) \
|
||||
$(use_with mysql) \
|
||||
$(use_with postgres postgresql) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use sqlite || echo "--without-sqlite3") \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcpd tcp-wrappers) \
|
||||
$(use_enable lmdb) \
|
||||
$(use_with glusterfs) \
|
||||
$(use_with rados) \
|
||||
$(use_with rados-striper) \
|
||||
$(use_with cephfs) \
|
||||
$(use_with jansson) \
|
||||
"
|
||||
|
||||
econf \
|
||||
--libdir=/usr/$(get_libdir) \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--with-pid-dir=/run/bareos \
|
||||
--sysconfdir=/etc \
|
||||
--with-subsys-dir=/run/lock/subsys \
|
||||
--with-working-dir=/var/lib/bareos \
|
||||
--with-logdir=/var/log/bareos \
|
||||
--with-scriptdir=/usr/libexec/bareos \
|
||||
--with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
|
||||
--with-backenddir=/usr/$(get_libdir)/${PN}/backend \
|
||||
--with-dir-user=bareos \
|
||||
--with-dir-group=bareos \
|
||||
--with-sd-user=root \
|
||||
--with-sd-group=bareos \
|
||||
--with-fd-user=root \
|
||||
--with-fd-group=bareos \
|
||||
--with-sbin-perm=0755 \
|
||||
--with-systemd \
|
||||
--enable-dynamic-cats-backends \
|
||||
--enable-dynamic-storage-backends \
|
||||
--enable-batch-insert \
|
||||
--disable-afs \
|
||||
--host=${CHOST} \
|
||||
${myconf}
|
||||
# correct configuration for QT based bat
|
||||
if use qt4 ; then
|
||||
pushd src/qt-console
|
||||
eqmake4
|
||||
popd
|
||||
pushd src/qt-tray-monitor
|
||||
eqmake4
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# workaround for build failing with high -j values
|
||||
# if ndmp is enabled
|
||||
use ndmp && MAKEOPTS="$MAKEOPTS -j1"
|
||||
|
||||
# Make build log verbose (bug #447806)
|
||||
emake NO_ECHO=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
newicon src/images/bareos_logo_shadow.png bareos.png
|
||||
|
||||
# install bat icon and desktop file when enabled
|
||||
# (for some reason ./configure doesn't pick this up)
|
||||
if use qt4 && ! use static ; then
|
||||
doicon src/images/bat.png
|
||||
domenu scripts/bat.desktop
|
||||
fi
|
||||
|
||||
# remove some scripts we don't need at all
|
||||
rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
|
||||
rm -f "${D}"/usr/sbin/bareos
|
||||
|
||||
# remove upstream init scripts
|
||||
rm -f "${D}"/etc/init.d/bareos-*
|
||||
|
||||
# rename statically linked apps
|
||||
if use clientonly && use static ; then
|
||||
pushd "${D}"/usr/sbin || die
|
||||
mv static-bareos-fd bareos-fd || die
|
||||
mv static-bconsole bconsole || die
|
||||
popd || die
|
||||
fi
|
||||
|
||||
# extra files which 'make install' doesn't cover
|
||||
if ! use clientonly; then
|
||||
# the logrotate configuration
|
||||
# (now unconditional wrt bug #258187)
|
||||
diropts -m0755
|
||||
insinto /etc/logrotate.d
|
||||
insopts -m0644
|
||||
newins "${S}"/scripts/logrotate bareos
|
||||
|
||||
# the logwatch scripts
|
||||
if use logwatch; then
|
||||
diropts -m0750
|
||||
dodir /etc/log.d/scripts/services
|
||||
dodir /etc/log.d/scripts/shared
|
||||
dodir /etc/log.d/conf/logfiles
|
||||
dodir /etc/log.d/conf/services
|
||||
pushd "${S}"/scripts/logwatch >&/dev/null || die
|
||||
emake DESTDIR="${D}" install
|
||||
popd >&/dev/null || die
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
|
||||
if ! use qt4; then
|
||||
rm -vf "${D}"/usr/share/man/man1/bat.1*
|
||||
fi
|
||||
if use clientonly || ! use director; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
|
||||
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
|
||||
rm -vf "${D}"/usr/share/man/man8/bwild.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bregex.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
|
||||
rm -vf "${D}"/usr/libexec/bareos/create_*_database
|
||||
rm -vf "${D}"/usr/libexec/bareos/drop_*_database
|
||||
rm -vf "${D}"/usr/libexec/bareos/make_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/update_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
|
||||
rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
|
||||
rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
|
||||
fi
|
||||
if use clientonly || ! use storage-daemon; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bextract.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bls.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/bscan.8*
|
||||
rm -vf "${D}"/usr/share/man/man8/btape.8*
|
||||
rm -vf "${D}"/usr/libexec/bareos/disk-changer
|
||||
rm -vf "${D}"/usr/libexec/bareos/mtx-changer
|
||||
rm -vf "${D}"/usr/libexec/bareos/dvd-handler
|
||||
rm -vf "${D}"/etc/bareos/mtx-changer.conf
|
||||
fi
|
||||
if ! use scsi-crypto; then
|
||||
rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
|
||||
fi
|
||||
if ! use qt4; then
|
||||
rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1*
|
||||
fi
|
||||
|
||||
# documentation
|
||||
dodoc README.md
|
||||
use ndmp && dodoc README.NDMP
|
||||
use scsi-crypto && dodoc README.scsicrypto
|
||||
|
||||
# vim-files
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins scripts/bareos.vim
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
newins scripts/filetype.vim bareos_ft.vim
|
||||
fi
|
||||
|
||||
# setup init scripts
|
||||
myscripts="bareos-fd"
|
||||
if ! use clientonly; then
|
||||
if use director; then
|
||||
myscripts="${myscripts} bareos-dir"
|
||||
fi
|
||||
if use storage-daemon; then
|
||||
myscripts="${myscripts} bareos-sd"
|
||||
fi
|
||||
fi
|
||||
for script in ${myscripts}; do
|
||||
# copy over init script and config to a temporary location
|
||||
# so we can modify them as needed
|
||||
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
|
||||
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
|
||||
|
||||
# now set the database dependency for the director init script
|
||||
case "${script}" in
|
||||
bareos-dir)
|
||||
sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# install init script and config
|
||||
newinitd "${T}/${script}".initd "${script}"
|
||||
newconfd "${T}/${script}".confd "${script}"
|
||||
done
|
||||
|
||||
# make sure the working directory exists
|
||||
diropts -m0750
|
||||
keepdir /var/lib/bareos
|
||||
|
||||
# make sure bareos group can execute bareos libexec scripts
|
||||
fowners -R root:bareos /usr/libexec/bareos
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use clientonly; then
|
||||
fowners root:bareos /var/lib/bareos
|
||||
else
|
||||
fowners bareos:bareos /var/lib/bareos
|
||||
fi
|
||||
|
||||
if ! use clientonly && use director; then
|
||||
einfo
|
||||
einfo "If this is a new install, you must create the databases with:"
|
||||
if use postgres; then
|
||||
einfo
|
||||
einfo "For postgresql:"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
|
||||
einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
|
||||
fi
|
||||
if use mysql; then
|
||||
einfo
|
||||
einfo "For mysql:"
|
||||
einfo
|
||||
einfo " Make sure root has direct access to your mysql server. You may want to"
|
||||
einfo " create a /root/.my.cnf file with"
|
||||
einfo " [client]"
|
||||
einfo " user=root"
|
||||
einfo " password=YourPasswordForAccessingMysqlAsRoot"
|
||||
einfo " before running:"
|
||||
einfo " /usr/libexec/bareos/create_bareos_database mysql"
|
||||
einfo " /usr/libexec/bareos/make_bareos_tables mysql"
|
||||
einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
|
||||
fi
|
||||
einfo
|
||||
fi
|
||||
|
||||
if use sqlite; then
|
||||
einfo
|
||||
einfo "Be aware that Bareos does not officially support SQLite database."
|
||||
einfo "Best use it only for a client-only installation. See Bug #445540."
|
||||
einfo
|
||||
einfo "It is strongly recommended to use either postgresql or mysql as"
|
||||
einfo "catalog database backend."
|
||||
einfo
|
||||
fi
|
||||
|
||||
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
|
||||
einfo "you have to enable 'USE=qt4'."
|
||||
einfo
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for /etc/init.d/bareos-dir
|
||||
|
||||
# Bareos can use more than one catalog database and each one can
|
||||
# be of any supported type.
|
||||
# If a database server where you store a bareos catalog
|
||||
# is on a different machine, you might want to remove the corresponding
|
||||
# type from the rc_need variable.
|
||||
rc_need="%databasetypes%"
|
||||
|
||||
# Options for the director daemon.
|
||||
# The director can be run as a non-root user, however
|
||||
# please ensure that this user has proper permissions to
|
||||
# access your backup devices.
|
||||
DIR_OPTIONS="-u root -g bareos -c /etc/bareos/bareos-dir.conf"
|
@ -1,7 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for /etc/init.d/bareos-fd
|
||||
|
||||
# Options for the file daemon.
|
||||
FD_OPTIONS="-u root -g bareos -c /etc/bareos/bareos-fd.conf"
|
@ -1,10 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for /etc/init.d/bareos-sd
|
||||
|
||||
# Options for the storage daemon.
|
||||
# The storage daemon can be run as a non-root user, however
|
||||
# please ensure that this user has proper permissions to
|
||||
# access your backup devices.
|
||||
SD_OPTIONS="-u root -g bareos -c /etc/bareos/bareos-sd.conf"
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST pgpdump-0.30.tar.gz 63152 BLAKE2B 71381c5be016761100d0274753b20b27b361f45a40d9407706057523248c442fba3e36c55d57db2b66d7f0c252844c077ff99f45cffaef8b233c79af10386e91 SHA512 e250dc82bb890a7645a41f6ddbfad9155ddf70f2ea53b09e771e9b6851d05d3fba88e16b106681ab092174e79ad709ed860be25bfded1ca7f369b357e8c72730
|
||||
DIST pgpdump-0.31.tar.gz 63808 BLAKE2B 3c9b328bdbc503c82f8100f0d749cc08ea1eb9a27bce661bb7c1d85a125c047c0865a5c6f6af2deb0425f00f74bc3097c4f3e2797b0c2375fb0c56f6362a1e22 SHA512 10d138baf0e3c9a47f6c8549a94b14eaa8babf95a09265e3a5b91469598726d6ee94cc7c481688c2d2b63917d6daba1bb368923aaf75adac6b18694d9a2940c4
|
||||
DIST pgpdump-0.32.tar.gz 65444 BLAKE2B baa7d9077799f6295adf2927933f1ccb466dd7afedf496d5e4010d06f7111a2cf58ea4a48590d76bb166862c0315c333ae40f79d0946c5bb05092f6122f8a071 SHA512 3f28a301cce703e934eb8b6124af4db78801d444ce74f43f8511009ea0684f9e9c229ef2a18cc732fe0854f2e02c4bbfdee46ffee64a5f490ff06c060472e49d
|
||||
DIST pgpdump-0.33.tar.gz 65730 BLAKE2B 9941f55a070c219b1b6096939f1a8d775d85c8de60154f2ca93709b489605c8c3937bb4e250390fc71d152bf23c5a22f37226a64ff57036268cf49d793c215bd SHA512 976e2c185c9d72302c9c020dde1d2872b01fd9c2195be0d43441a03c3c6a4a70636f8ac2b35e3fde30e45ecc7fc1c23d7c92dcbd90fc503bbcdef73e3483e9c7
|
||||
|
Binary file not shown.
@ -0,0 +1,372 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
VIM_VERSION="8.0"
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
PYTHON_REQ_USE="threads"
|
||||
USE_RUBY="ruby22 ruby23 ruby24 ruby25"
|
||||
|
||||
inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 ruby-single
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GUI version of the Vim text editor"
|
||||
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
|
||||
|
||||
REQUIRED_USE="
|
||||
luajit? ( lua )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
~app-editors/vim-core-${PV}
|
||||
>=app-eselect/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2:0=
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
x11-libs/libXt
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
!aqua? (
|
||||
gtk3? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libXft
|
||||
)
|
||||
!gtk3? (
|
||||
gtk? (
|
||||
>=x11-libs/gtk+-2.6:2
|
||||
x11-libs/libXft
|
||||
)
|
||||
!gtk? (
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
!neXt? ( x11-libs/libXaw )
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
cscope? ( dev-util/cscope )
|
||||
lua? (
|
||||
luajit? ( dev-lang/luajit:2= )
|
||||
!luajit? ( dev-lang/lua:0[deprecated] )
|
||||
)
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
session? ( x11-libs/libSM )
|
||||
tcl? ( dev-lang/tcl:0= )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-util/ctags
|
||||
sys-devel/autoconf
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/vim-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug 82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
# Gnome sandbox silliness. bug #114475.
|
||||
mkdir -p "${T}"/home || die
|
||||
export HOME="${T}"/home
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]]; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
eapply "${WORKDIR}"/patches/
|
||||
fi
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i -e \
|
||||
'1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||
"${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
|
||||
>> "${S}"/src/feature.h || die "echo failed"
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
|
||||
>> "${S}"/src/feature.h || die "echo failed"
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
||||
sed -i -e \
|
||||
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
||||
sed -i -e \
|
||||
's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c; do
|
||||
echo >> "$c" || die "echo failed"
|
||||
done
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]]; then
|
||||
sed -i -e \
|
||||
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile || die
|
||||
fi
|
||||
|
||||
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||
|
||||
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||
sed -i -e \
|
||||
"s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i -e \
|
||||
's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm -v src/auto/configure || die "rm failed"
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
local file
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||
if [[ -e ${file} ]]; then
|
||||
addwrite $file
|
||||
fi
|
||||
done
|
||||
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
myconf=(
|
||||
--with-features=huge
|
||||
--disable-gpm
|
||||
--enable-multibyte
|
||||
$(use_enable acl)
|
||||
$(use_enable cscope)
|
||||
$(use_enable lua luainterp)
|
||||
$(use_with luajit)
|
||||
$(use_enable netbeans)
|
||||
$(use_enable nls)
|
||||
$(use_enable perl perlinterp)
|
||||
$(use_enable python pythoninterp)
|
||||
$(use_enable python python3interp)
|
||||
$(use_enable racket mzschemeinterp)
|
||||
$(use_enable ruby rubyinterp)
|
||||
$(use_enable selinux)
|
||||
$(use_enable session xsmp)
|
||||
$(use_enable tcl tclinterp)
|
||||
)
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope; then
|
||||
sed -i -e \
|
||||
'/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope"
|
||||
fi
|
||||
|
||||
# gvim's GUI preference order is as follows:
|
||||
# aqua CARBON (not tested)
|
||||
# -aqua gtk3 GTK3
|
||||
# -aqua -gtk3 gnome GNOME2
|
||||
# -aqua -gtk3 -gnome gtk GTK2
|
||||
# -aqua -gtk -gtk3 motif MOTIF
|
||||
# -aqua -gtk -gtk3 -motif neXt NEXTAW
|
||||
# -aqua -gtk -gtk3 -motif -neXt ATHENA
|
||||
echo ; echo
|
||||
if use aqua; then
|
||||
einfo "Building gvim with the Carbon GUI"
|
||||
myconf+=(
|
||||
--enable-darwin
|
||||
--enable-gui=carbon
|
||||
)
|
||||
elif use gtk3; then
|
||||
myconf+=( --enable-gtk3-check )
|
||||
einfo "Building gvim with the gtk+-3 GUI"
|
||||
myconf+=( --enable-gui=gtk3 )
|
||||
elif use gtk; then
|
||||
myconf+=( --enable-gtk2-check )
|
||||
if use gnome; then
|
||||
einfo "Building gvim with the Gnome 2 GUI"
|
||||
myconf+=( --enable-gui=gnome2 )
|
||||
else
|
||||
einfo "Building gvim with the gtk+-2 GUI"
|
||||
myconf+=( --enable-gui=gtk2 )
|
||||
fi
|
||||
elif use motif; then
|
||||
einfo "Building gvim with the MOTIF GUI"
|
||||
myconf+=( --enable-gui=motif )
|
||||
elif use neXt; then
|
||||
einfo "Building gvim with the neXtaw GUI"
|
||||
myconf+=( --enable-gui=nextaw )
|
||||
else
|
||||
einfo "Building gvim with the Athena GUI"
|
||||
myconf+=( --enable-gui=athena )
|
||||
fi
|
||||
echo ; echo
|
||||
|
||||
# let package manager strip binaries
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# keep prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=( --without-local-dir )
|
||||
|
||||
if [[ ${CHOST} == *-interix* ]]; then
|
||||
# avoid finding of this function, to avoid having to patch either
|
||||
# configure or the source, which would be much more hackish.
|
||||
# after all vim does it right, only interix is badly broken (again)
|
||||
export ac_cv_func_sigaction=no
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-modified-by=Gentoo-${PVR} \
|
||||
--with-vim-name=gvim \
|
||||
--with-x \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
echo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
echo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
# Make gvim not try to connect to X. See :help gui-x11-start in vim for how
|
||||
# this evil trickery works.
|
||||
ln -s "${S}"/src/gvim "${S}"/src/testvim || die
|
||||
|
||||
# Make sure our VIMPROG is used.
|
||||
sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
|
||||
|
||||
# Don't do additional GUI tests.
|
||||
emake -j1 VIMPROG=../testvim -C src/testdir nongui
|
||||
}
|
||||
|
||||
# Call eselect vi update with --if-unset
|
||||
# to respect user's choice (bug 187449)
|
||||
eselect_vi_update() {
|
||||
einfo "Calling eselect vi update..."
|
||||
eselect vi update --if-unset
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dobin src/gvim
|
||||
dosym gvim /usr/bin/gvimdiff
|
||||
dosym gvim /usr/bin/evim
|
||||
dosym gvim /usr/bin/eview
|
||||
dosym gvim /usr/bin/gview
|
||||
dosym gvim /usr/bin/rgvim
|
||||
dosym gvim /usr/bin/rgview
|
||||
|
||||
emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
|
||||
|
||||
dodir /usr/share/man/man1
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed"
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed"
|
||||
echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \
|
||||
die "echo failed"
|
||||
|
||||
insinto /etc/vim
|
||||
newins "${FILESDIR}"/gvimrc-r1 gvimrc
|
||||
eprefixify "${ED}"/etc/vim/gvimrc
|
||||
|
||||
doicon -s scalable "${FILESDIR}"/gvim.svg
|
||||
|
||||
# bash completion script, bug #79018.
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
|
||||
# don't install vim desktop file
|
||||
rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Update fdo mime stuff, bug #78394
|
||||
xdg_desktop_database_update
|
||||
|
||||
# Update icon cache
|
||||
gnome2_icon_cache_update
|
||||
|
||||
# Call eselect vi update
|
||||
eselect_vi_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Update fdo mime stuff, bug #78394
|
||||
xdg_desktop_database_update
|
||||
|
||||
# Update icon cache
|
||||
gnome2_icon_cache_update
|
||||
|
||||
# Call eselect vi update
|
||||
eselect_vi_update
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST kile-2.9.91_p20171209.tar.gz 3624273 BLAKE2B d6e4798869b8f5be7a2a6b00b1b067957245373f560a7485334ce1f3f932670a0cb8ef0b551fde2eea1d54a6114e8405025dbd3daea587a2d30b74fe614d332e SHA512 b7e4a6e434057cf04e8712f543cdd74a40659843b1e2777d0a031b5a665e1de34e36ec9b3f5d9bd3bf9202f9dca8595fcee9a81ab4875bc4b6da3a2fb449b2c6
|
||||
DIST kile-2.9.91_p20180419.tar.gz 3635059 BLAKE2B 1f7c20e8881bcdd20f3230e8a8608dd816a5f00435734941280c4da75ca6460514a1c3dc0f3962d684f3e0a458ae427772cdf1cafbbe8f44be7a9e804ffcec05 SHA512 bb50f169d6e9630cc463f4615af06826608b640a7e43d5d671477fad6a199fcdc02c38138c8a211ce563f4e1f82ddd7cceea29a3e60b43e35c52076958818721
|
||||
DIST kile-2.9.92.tar.bz2 8556142 BLAKE2B dd18ece7394439de3c0037fbea7c66316c5ee457bd4ad8c35f8519713f917e1c1641c806290303c26dd9e31e2f39346bc35091b211ca23a2d342332388d18c3f SHA512 e3af0c2cb1a0970428e2d772ef5025ead67aee94cdc03b6ec173de5628e8d4619f74296a1734eac8241939d40a05b805b8bd33bb4c27a1c19ad47fb35087cf7d
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,48 +0,0 @@
|
||||
diff -Nur json_simple-1.1-all/src/org/json/simple/JSONArray.java json_simple-1.1-all_patched//src/org/json/simple/JSONArray.java
|
||||
--- json_simple-1.1-all/src/org/json/simple/JSONArray.java 2009-02-01 12:45:34.000000000 +0200
|
||||
+++ json_simple-1.1-all_patched//src/org/json/simple/JSONArray.java 2011-09-25 11:23:37.398818358 +0300
|
||||
@@ -19,6 +19,18 @@
|
||||
public class JSONArray extends ArrayList implements List, JSONAware, JSONStreamAware {
|
||||
private static final long serialVersionUID = 3957988303675231981L;
|
||||
|
||||
+ public JSONArray() {
|
||||
+ super();
|
||||
+ }
|
||||
+
|
||||
+ public JSONArray(java.util.Collection arg0) {
|
||||
+ super(arg0);
|
||||
+ }
|
||||
+
|
||||
+ public JSONArray(int initialCapacity) {
|
||||
+ super(initialCapacity);
|
||||
+ }
|
||||
+
|
||||
/**
|
||||
* Encode a list into JSON text and write it to out.
|
||||
* If this list is also a JSONStreamAware or a JSONAware, JSONStreamAware and JSONAware specific behaviours will be ignored at this top level.
|
||||
diff -Nur json_simple-1.1-all/src/org/json/simple/JSONObject.java json_simple-1.1-all_patched//src/org/json/simple/JSONObject.java
|
||||
--- json_simple-1.1-all/src/org/json/simple/JSONObject.java 2009-02-01 12:45:34.000000000 +0200
|
||||
+++ json_simple-1.1-all_patched//src/org/json/simple/JSONObject.java 2011-09-25 11:24:34.815103065 +0300
|
||||
@@ -18,6 +18,22 @@
|
||||
public class JSONObject extends HashMap implements Map, JSONAware, JSONStreamAware{
|
||||
private static final long serialVersionUID = -503443796854799292L;
|
||||
|
||||
+ public JSONObject() {
|
||||
+ super();
|
||||
+ }
|
||||
+
|
||||
+ public JSONObject(int initialCapacity, float loadFactor) {
|
||||
+ super(initialCapacity, loadFactor);
|
||||
+ }
|
||||
+
|
||||
+ public JSONObject(int initialCapacity) {
|
||||
+ super(initialCapacity);
|
||||
+ }
|
||||
+
|
||||
+ public JSONObject(Map arg0) {
|
||||
+ super(arg0);
|
||||
+ }
|
||||
+
|
||||
/**
|
||||
* Encode a map into JSON text and write it to out.
|
||||
* If this map is also a JSONAware or JSONStreamAware, JSONAware or JSONStreamAware specific behaviours will be ignored at this top level.
|
Binary file not shown.
Binary file not shown.
@ -1,36 +0,0 @@
|
||||
|
||||
# HG changeset patch
|
||||
# User Daiki Ueno <dueno@redhat.com>
|
||||
# Date 1516710574 -3600
|
||||
# Node ID 74e679158d1bfe05c173e995ae7dc5a05ae02fe0
|
||||
# Parent b3feffd76f4714139f72369f82b28619a704dbd6
|
||||
Bug 1432455, Build Hacl_Poly1305_64.o on AArch64 even with make, r=fkiefer
|
||||
|
||||
diff --git a/lib/freebl/Makefile b/lib/freebl/Makefile
|
||||
--- a/lib/freebl/Makefile
|
||||
+++ b/lib/freebl/Makefile
|
||||
@@ -522,17 +522,22 @@ ifndef NSS_DISABLE_CHACHAPOLY
|
||||
|
||||
ifneq (1,$(CC_IS_GCC))
|
||||
EXTRA_SRCS += chacha20.c
|
||||
VERIFIED_SRCS += Hacl_Chacha20.c
|
||||
else
|
||||
EXTRA_SRCS += chacha20_vec.c
|
||||
endif
|
||||
else
|
||||
- EXTRA_SRCS += poly1305.c
|
||||
+ ifeq ($(CPU_ARCH),aarch64)
|
||||
+ EXTRA_SRCS += Hacl_Poly1305_64.c
|
||||
+ else
|
||||
+ EXTRA_SRCS += poly1305.c
|
||||
+ endif
|
||||
+
|
||||
EXTRA_SRCS += chacha20.c
|
||||
VERIFIED_SRCS += Hacl_Chacha20.c
|
||||
endif # x86_64
|
||||
endif # NSS_DISABLE_CHACHAPOLY
|
||||
|
||||
ifeq (,$(filter-out i386 x386 x86 x86_64 aarch64,$(CPU_ARCH)))
|
||||
# All intel architectures get the 64 bit version
|
||||
# With custom uint128 if necessary (faster than generic 32 bit version).
|
||||
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST composer-1.6.3.tar.gz 396955 BLAKE2B ee455c8ff7446fe2b51180c1c719a28a5efd30b24ba0f521ce07b02007bfaad15aea4d45b2a381d4a3abef123ce67077f8bf0bc3bee447752f3ab87bb6a5d46b SHA512 d373afe1bf8a5572f1d0bf3451d29ef1ea41f96a5fe54789e906601229d9366536ff0abdc7e0afa7cd14b22ccecf9ddf8b32fec14d4cd6fb308b878034af374c
|
||||
DIST composer-1.6.5.tar.gz 398169 BLAKE2B e89fb8805a58d031d4ba1e9694fb45eefa734d5ed79e1bd7c6aef02bf8a52ace19ed7fa109270d67af973f6892a45122017bc42bbd115245dc521e4720b5a549 SHA512 5f18a43af0b94006f4d553f03574347c7f279c409e3467ee65dfff12dad810d625a06452208e2024479faa0b1608ce122a293810e69b826667072171de7d905a
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Dependency Manager for PHP"
|
||||
HOMEPAGE="https://github.com/composer/composer"
|
||||
SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*[curl]
|
||||
>=dev-php/ca-bundle-1.0.0
|
||||
>=dev-php/cli-prompt-1.0.0
|
||||
>=dev-php/psr-log-1.0.2
|
||||
dev-php/fedora-autoloader
|
||||
>=dev-php/json-schema-3.0.0
|
||||
>=dev-php/jsonlint-1.4.0
|
||||
>=dev-php/phar-utils-1.0.0
|
||||
>=dev-php/semver-1.0.0
|
||||
>=dev-php/spdx-licenses-1.2.0
|
||||
>=dev-php/symfony-console-2.7.9
|
||||
>=dev-php/symfony-filesystem-2.7.20
|
||||
>=dev-php/symfony-finder-2.7.20
|
||||
>=dev-php/symfony-process-2.8.12"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
|
||||
# Composer expects the LICENSE file to be there, and the
|
||||
# easiest thing to do is to give it what it wants.
|
||||
doins -r src res LICENSE
|
||||
|
||||
insinto "/usr/share/${PN}/vendor"
|
||||
doins "${FILESDIR}"/autoload.php
|
||||
|
||||
exeinto "/usr/share/${PN}/bin"
|
||||
doexe "bin/${PN}"
|
||||
dosym "../share/${PN}/bin/${PN}" "/usr/bin/${PN}"
|
||||
|
||||
dodoc CHANGELOG.md README.md doc/*.md
|
||||
dodoc -r doc/articles doc/faqs
|
||||
}
|
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST boto3-1.4.7.tar.gz 217171 BLAKE2B 900c5c4249df9d0c3b5d157835f66be5e7cd3e2f4b934047340614ef729d30a5952f2996f1638626a10f9e5e55cb05d4792241b6f7da9c5157da9caeb464acac SHA512 db87ce873ba3d7d12c9e77ce329db3fab25328407ec5ba7fa1e7c94351285a84a3baf0f71721ee6858761743736497ec35b03e8d5e9a59da8daa176596f1a1a3
|
||||
DIST boto3-1.5.27.tar.gz 221841 BLAKE2B b604bb3f20f6ea5d6fd9de8ea63258cd4fdb36fb7cdbd6ca2e194f177dd37da3609928be47fc620ab42db6955aff373c757ea0f80896be947aa714bd6da487f8 SHA512 c38d11fc1e1d65cfaf9bbe00da210c4713fec9232320387efc11663470fc333a622877eddd1c60216496cb6fb399f0964cf51bed67209c4c7ec17af03972350f
|
||||
DIST boto3-1.5.6.tar.gz 218891 BLAKE2B e2f9b567d8c4daad21895a6e8eff7e004229d96715e648c0f62705d5b3db1520e98e1b93d88650e8be98517e971258c0fae92ba09622f86081bb1a1665937645 SHA512 15eacfdf059634ad86a5c41b0ca237e24a6602b0cf9c897fc3d89b02dbebc93043c338d0e1d89d47bb619521943807829f67a384f450987ad5c85b34d1c76d81
|
||||
DIST boto3-1.6.6.tar.gz 223075 BLAKE2B a865126d1a3ccb38794f2f65ab9ce1d9ea36555b13d48515d221c3d9245e89a3145d79b7eb405e9c74df9b73c49d38770caa1864f0cd610d533b61d8ff54e7f1 SHA512 a7ae94dd7fdd96214129e889a99e950a90edba23952eec7a45047cb1e6173a827dc45013a78c4fd083a5e6b4524f362b44a72f758b32f4e05e00215b38b7643c
|
||||
DIST boto3-1.7.19.tar.gz 226568 BLAKE2B 3f56b738d49cd8da02621b5f00160e8a6bc06fa785b870cf0a413c0c9ba2e04dd772f4246fe943dc9fd7dc14f1c587377e3ffba77c2b1a092247958dbc573fdb SHA512 80975e234caabb0f9c0166cc00a3bf88d61ff1df386fa4df83599245a04d323d10b770e1f4171e7f856ea91edd325d1207caf023a2f43e5dca23236fc48bcb6d
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
|
||||
|
||||
inherit distutils-r1 vcs-snapshot
|
||||
|
||||
DESCRIPTION="The AWS SDK for Python"
|
||||
HOMEPAGE="https://github.com/boto/boto3"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-1.8.20[${PYTHON_USEDEP}]
|
||||
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||
<dev-python/jmespath-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.1.10[${PYTHON_USEDEP}]
|
||||
<dev-python/s3transfer-0.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
>=dev-python/guzzle_sphinx_theme-0.7.10[${PYTHON_USEDEP}]
|
||||
<dev-python/guzzle_sphinx_theme-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.3[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.7[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
${RDEPEND}
|
||||
~dev-python/mock-1.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Low-level, data-driven core of boto 3."
|
||||
HOMEPAGE="https://github.com/boto/botocore"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/docutils-0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||
<dev-python/jmespath-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
|
||||
<dev-python/python-dateutil-3.0.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
>=dev-python/guzzle_sphinx_theme-0.7.10[${PYTHON_USEDEP}]
|
||||
<dev-python/guzzle_sphinx_theme-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.3[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.7[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
${RDEPEND}
|
||||
~dev-python/mock-1.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" )
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/unit || die "unit tests failed under ${EPYTHON}"
|
||||
PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/functional || die "functional tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
Binary file not shown.
@ -1,81 +0,0 @@
|
||||
From ca4d93d85ee446c5e30ec8e7814651e45cbf1218 Mon Sep 17 00:00:00 2001
|
||||
From: Thiago Macieira <thiago.macieira@intel.com>
|
||||
Date: Thu, 12 Nov 2015 10:14:51 -0800
|
||||
Subject: Stop unloading plugins in QPluginLoader and QFactoryLoader
|
||||
|
||||
QPluginLoader hasn't unloaded in its destructor since Qt 5.0, but we
|
||||
missed the equivalent code in QFactoryLoader (which bypasses
|
||||
QPluginLoader). Besides, QPluginLoader::unload() was still doing
|
||||
unloading, which it won't anymore.
|
||||
|
||||
Not unloading plugins is Qt's policy, as decided during the 5.0
|
||||
development process and reaffirmed now in 5.6. This is due to static
|
||||
data in plugins leaking out and remaining in use past the unloading of
|
||||
the plugin, causing crashes.
|
||||
|
||||
This does not affect QLibrary and QLibrary::unload(). Those are meant
|
||||
for non-Qt loadable modules, so unloading them may be safe.
|
||||
|
||||
Task-number: QTBUG-49061
|
||||
Discussed-on: http://lists.qt-project.org/pipermail/development/2015-November/023681.html
|
||||
Change-Id: I461e9fc7199748faa187ffff1416070f138df8db
|
||||
(cherry picked from commit 494376f980e96339b6f1eff7c41336ca4d853065)
|
||||
Discussed-again-on: http://lists.qt-project.org/pipermail/development/2016-October/027476.html
|
||||
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
|
||||
---
|
||||
src/corelib/plugin/qfactoryloader.cpp | 6 ++++--
|
||||
src/corelib/plugin/qpluginloader.cpp | 5 +++--
|
||||
2 files changed, 7 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/corelib/plugin/qfactoryloader.cpp b/src/corelib/plugin/qfactoryloader.cpp
|
||||
index dcf1b1a..b6558f5 100644
|
||||
--- a/src/corelib/plugin/qfactoryloader.cpp
|
||||
+++ b/src/corelib/plugin/qfactoryloader.cpp
|
||||
@@ -208,10 +208,12 @@ void QFactoryLoader::update()
|
||||
++keyUsageCount;
|
||||
}
|
||||
}
|
||||
- if (keyUsageCount || keys.isEmpty())
|
||||
+ if (keyUsageCount || keys.isEmpty()) {
|
||||
+ library->setLoadHints(QLibrary::PreventUnloadHint); // once loaded, don't unload
|
||||
d->libraryList += library;
|
||||
- else
|
||||
+ } else {
|
||||
library->release();
|
||||
+ }
|
||||
}
|
||||
}
|
||||
#else
|
||||
diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp
|
||||
index 37f2368..0ea8280 100644
|
||||
--- a/src/corelib/plugin/qpluginloader.cpp
|
||||
+++ b/src/corelib/plugin/qpluginloader.cpp
|
||||
@@ -148,6 +148,7 @@ QPluginLoader::QPluginLoader(const QString &fileName, QObject *parent)
|
||||
: QObject(parent), d(0), did_load(false)
|
||||
{
|
||||
setFileName(fileName);
|
||||
+ setLoadHints(QLibrary::PreventUnloadHint);
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -342,7 +343,7 @@ static QString locatePlugin(const QString& fileName)
|
||||
void QPluginLoader::setFileName(const QString &fileName)
|
||||
{
|
||||
#if defined(QT_SHARED)
|
||||
- QLibrary::LoadHints lh;
|
||||
+ QLibrary::LoadHints lh = QLibrary::PreventUnloadHint;
|
||||
if (d) {
|
||||
lh = d->loadHints();
|
||||
d->release();
|
||||
@@ -391,7 +392,7 @@ Q_GLOBAL_STATIC(StaticPluginList, staticPluginList)
|
||||
\brief Give the load() function some hints on how it should behave.
|
||||
|
||||
You can give hints on how the symbols in the plugin are
|
||||
- resolved. By default, none of the hints are set.
|
||||
+ resolved. By default since Qt 5.7, QLibrary::PreventUnloadHint is set.
|
||||
|
||||
See the documentation of QLibrary::loadHints for a complete
|
||||
description of how this property works.
|
||||
--
|
||||
cgit v1.0-4-g1e03
|
||||
|
@ -1,46 +0,0 @@
|
||||
--- qtwebengine-opensource-src-5.6.0-orig/src/3rdparty/chromium/v8/tools/gyp/v8.gyp 2016-03-04 01:48:36.000000000 +1100
|
||||
+++ qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/v8/tools/gyp/v8.gyp 2016-05-01 19:15:44.052770543 +1000
|
||||
@@ -33,6 +33,7 @@
|
||||
'embed_script%': "",
|
||||
'v8_extra_library_files%': [],
|
||||
'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
|
||||
+ 'mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot_u<(EXECUTABLE_SUFFIX)',
|
||||
'remove_v8base_debug_symbols%': 0,
|
||||
},
|
||||
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
|
||||
@@ -1913,7 +1914,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
- 'target_name': 'mksnapshot',
|
||||
+ 'target_name': 'mksnapshot_u',
|
||||
'type': 'executable',
|
||||
'dependencies': ['v8_base', 'v8_nosnapshot', 'v8_libplatform'],
|
||||
'include_dirs+': [
|
||||
@@ -1936,5 +1937,26 @@
|
||||
}],
|
||||
],
|
||||
},
|
||||
+ {
|
||||
+ 'target_name': 'mksnapshot',
|
||||
+ 'type': 'executable',
|
||||
+ 'dependencies': ['mksnapshot_u'],
|
||||
+ 'actions': [
|
||||
+ {
|
||||
+ 'action_name': 'paxmark_m_mksnapshot',
|
||||
+ 'inputs': [
|
||||
+ '<(mksnapshot_u_exec)',
|
||||
+ ],
|
||||
+ 'outputs': [
|
||||
+ '<(mksnapshot_exec)',
|
||||
+ ],
|
||||
+ 'action': [
|
||||
+ 'sh',
|
||||
+ '-c',
|
||||
+ 'cp <(mksnapshot_u_exec) <(mksnapshot_exec) && paxmark.sh m <(mksnapshot_exec)',
|
||||
+ ],
|
||||
+ },
|
||||
+ ],
|
||||
+ },
|
||||
],
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
--- a/Tools/qmake/mkspecs/features/features.prf 2014-03-19 18:35:47.795676444 +0000
|
||||
+++ b/Tools/qmake/mkspecs/features/features.prf 2014-03-19 18:36:38.602433220 +0000
|
||||
@@ -99,12 +99,6 @@
|
||||
|
||||
# HTML5 Media Support for builds with GStreamer
|
||||
unix:!mac:!contains(QT_CONFIG, no-pkg-config) {
|
||||
- packagesExist("glib-2.0 gio-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0") {
|
||||
- WEBKIT_CONFIG += video use_gstreamer
|
||||
- } else: packagesExist("glib-2.0 gio-2.0 \'gstreamer-0.10 >= 0.10.30\' \'gstreamer-plugins-base-0.10 >= 0.10.30\'") {
|
||||
- WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
|
||||
- }
|
||||
- use?(gstreamer): WEBKIT_CONFIG += use_native_fullscreen_video
|
||||
}
|
||||
|
||||
!enable?(video):qtHaveModule(multimediawidgets) {
|
@ -1,18 +0,0 @@
|
||||
--- a/Tools/qmake/mkspecs/features/features.prf 2014-09-27 11:09:50.010617142 +0100
|
||||
+++ b/Tools/qmake/mkspecs/features/features.prf 2014-09-27 11:17:10.741678989 +0100
|
||||
@@ -96,14 +96,8 @@
|
||||
use?(3d_graphics): WEBKIT_CONFIG += webgl
|
||||
|
||||
# HTML5 Media Support for builds with GStreamer
|
||||
- unix:!mac:!contains(QT_CONFIG, no-pkg-config) {
|
||||
- packagesExist("glib-2.0 gio-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0") {
|
||||
- WEBKIT_CONFIG += video use_gstreamer
|
||||
- } else: packagesExist("glib-2.0 gio-2.0 \'gstreamer-0.10 >= 0.10.30\' \'gstreamer-plugins-base-0.10 >= 0.10.30\'") {
|
||||
- WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
|
||||
- }
|
||||
+ WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
|
||||
use?(gstreamer): WEBKIT_CONFIG += use_native_fullscreen_video
|
||||
- }
|
||||
|
||||
!enable?(video):qtHaveModule(multimediawidgets) {
|
||||
WEBKIT_CONFIG += video use_qt_multimedia
|
@ -1,92 +0,0 @@
|
||||
From bf172ae289a1348842005a9421797970f9b72060 Mon Sep 17 00:00:00 2001
|
||||
From: Konstantin Tokarev <annulen@yandex.ru>
|
||||
Date: Thu, 4 May 2017 15:12:37 +0300
|
||||
Subject: [PATCH] Fix compilation with ICU 59
|
||||
|
||||
Upstream fix: https://bugs.webkit.org/show_bug.cgi?id=171612
|
||||
|
||||
Task-number: QTBUG-60532
|
||||
Change-Id: I6014feea213aa70ebe40b09d9d1a03fd1ed3c843
|
||||
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||||
---
|
||||
Source/JavaScriptCore/API/JSStringRef.cpp | 6 +++---
|
||||
Source/JavaScriptCore/runtime/DateConversion.cpp | 3 ++-
|
||||
Source/WTF/wtf/TypeTraits.h | 3 +++
|
||||
Source/WebKit2/Shared/API/c/WKString.cpp | 2 +-
|
||||
4 files changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Source/JavaScriptCore/API/JSStringRef.cpp b/Source/JavaScriptCore/API/JSStringRef.cpp
|
||||
index 812f3d413..77a3fd0f4 100644
|
||||
--- a/Source/JavaScriptCore/API/JSStringRef.cpp
|
||||
+++ b/Source/JavaScriptCore/API/JSStringRef.cpp
|
||||
@@ -37,7 +37,7 @@ using namespace WTF::Unicode;
|
||||
JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
|
||||
{
|
||||
initializeThreading();
|
||||
- return OpaqueJSString::create(chars, numChars).leakRef();
|
||||
+ return OpaqueJSString::create(reinterpret_cast<const UChar*>(chars), numChars).leakRef();
|
||||
}
|
||||
|
||||
JSStringRef JSStringCreateWithUTF8CString(const char* string)
|
||||
@@ -62,7 +62,7 @@ JSStringRef JSStringCreateWithUTF8CString(const char* string)
|
||||
JSStringRef JSStringCreateWithCharactersNoCopy(const JSChar* chars, size_t numChars)
|
||||
{
|
||||
initializeThreading();
|
||||
- return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
|
||||
+ return OpaqueJSString::create(StringImpl::createWithoutCopying(reinterpret_cast<const UChar*>(chars), numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
|
||||
}
|
||||
|
||||
JSStringRef JSStringRetain(JSStringRef string)
|
||||
@@ -83,7 +83,7 @@ size_t JSStringGetLength(JSStringRef string)
|
||||
|
||||
const JSChar* JSStringGetCharactersPtr(JSStringRef string)
|
||||
{
|
||||
- return string->characters();
|
||||
+ return reinterpret_cast<const JSChar*>(string->characters());
|
||||
}
|
||||
|
||||
size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string)
|
||||
diff --git a/Source/JavaScriptCore/runtime/DateConversion.cpp b/Source/JavaScriptCore/runtime/DateConversion.cpp
|
||||
index 0b57f012d..05e27338b 100644
|
||||
--- a/Source/JavaScriptCore/runtime/DateConversion.cpp
|
||||
+++ b/Source/JavaScriptCore/runtime/DateConversion.cpp
|
||||
@@ -107,7 +107,8 @@ String formatDateTime(const GregorianDateTime& t, DateTimeFormat format, bool as
|
||||
#if OS(WINDOWS)
|
||||
TIME_ZONE_INFORMATION timeZoneInformation;
|
||||
GetTimeZoneInformation(&timeZoneInformation);
|
||||
- const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
|
||||
+ const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
|
||||
+ String timeZoneName(reinterpret_cast<const UChar*>(winTimeZoneName));
|
||||
#else
|
||||
struct tm gtm = t;
|
||||
char timeZoneName[70];
|
||||
diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h
|
||||
index 9df2c95cf..f5d6121fd 100644
|
||||
--- a/Source/WTF/wtf/TypeTraits.h
|
||||
+++ b/Source/WTF/wtf/TypeTraits.h
|
||||
@@ -72,6 +72,9 @@ namespace WTF {
|
||||
template<> struct IsInteger<unsigned long> { static const bool value = true; };
|
||||
template<> struct IsInteger<long long> { static const bool value = true; };
|
||||
template<> struct IsInteger<unsigned long long> { static const bool value = true; };
|
||||
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_HAS_CHAR16_T_LANGUAGE_SUPPORT) && _HAS_CHAR16_T_LANGUAGE_SUPPORT)
|
||||
+ template<> struct IsInteger<char16_t> { static const bool value = true; };
|
||||
+#endif
|
||||
#if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED)
|
||||
template<> struct IsInteger<wchar_t> { static const bool value = true; };
|
||||
#endif
|
||||
diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp
|
||||
index cbac67dd8..23400a64e 100644
|
||||
--- a/Source/WebKit2/Shared/API/c/WKString.cpp
|
||||
+++ b/Source/WebKit2/Shared/API/c/WKString.cpp
|
||||
@@ -55,7 +55,7 @@ size_t WKStringGetLength(WKStringRef stringRef)
|
||||
size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t bufferLength)
|
||||
{
|
||||
COMPILE_ASSERT(sizeof(WKChar) == sizeof(UChar), WKStringGetCharacters_sizeof_WKChar_matches_UChar);
|
||||
- return (toImpl(stringRef)->getCharacters(static_cast<UChar*>(buffer), bufferLength));
|
||||
+ return (toImpl(stringRef)->getCharacters(reinterpret_cast<UChar*>(buffer), bufferLength));
|
||||
}
|
||||
|
||||
size_t WKStringGetMaximumUTF8CStringSize(WKStringRef stringRef)
|
||||
--
|
||||
2.13.1
|
||||
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST arel-helpers-2.5.0.gem 11776 BLAKE2B 1c5edb20d5c6029efa8b52ba1eb59b939b7209126a3961a77ebd92524b1da3998cf6497364cedeb0b3976cbe30b6e99e993280618d2ad88f021b8e88930742d8 SHA512 501d2820d69419c732edef1d9dbfa136d27f886a55a8d10f0dd351dfe7f0b06f0b338b665487afc87d6a34769b1ac2d55a70081529262bcc75d7cd73d98cce4e
|
||||
DIST arel-helpers-2.6.1.gem 12288 BLAKE2B 75958abc0f3c1ff61482cb576f650d230757d653972fe88496226f0462bb95f29f4b61395ee0b3ed68c13c7d3b4318eb46ac38485615790f8a4f3e8c07edfffc SHA512 99eda2da00a48000e9aa282688a1370e6d7606c399f72ec8edc54a236fa9c7ba4d37315b10b54eee54f59d44e0680cd398f4a1d2331e86138c48d6bd68530441
|
||||
DIST arel-helpers-2.7.0.gem 12288 BLAKE2B 623225b35205ff32bada46b1f2cc857f384938726fcec6137cc33cbb16903ec51731835bb1fa1a7b603d35d0f623eb59af7d0e5b163e28d0d6f7802f30e6a6b7 SHA512 48305acd4d40f60ced74c32c334ab6ca2b7f648cd2185f829f36f5c942ff53b1e0aa709ea08fcd2200c2b56dcd9c76fe0328408e6e84934f27fb0bbf6075873c
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Tools to help construct database queries"
|
||||
HOMEPAGE="https://github.com/camertron/arel-helpers"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "|| (
|
||||
dev-ruby/activerecord:5.2
|
||||
dev-ruby/activerecord:5.1
|
||||
dev-ruby/activerecord:5.0
|
||||
dev-ruby/activerecord:4.2 )"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/rr
|
||||
dev-ruby/activerecord[sqlite]
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/pry-/ s:^:#:' spec/spec_helper.rb || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST atomic-1.1.100.gem 17920 BLAKE2B 47c96c49a572a6d6705b952e419e1a07f3b06de4e0235a4d9d98e6ff546c96aa9af69c39864107c6bec1ba7b92ca2a9ceef2cb5d5938c1c82f40973376920d6e SHA512 64c374b69b7ea8b7fc6aa3e189cb6ae3d4a9a214d410a83fa0ef464a55624792055c5e3e61adda3eff039aba604a0c1b710ba5304d33f27ae9cc6e421e8e1892
|
||||
DIST atomic-1.1.101.gem 17920 BLAKE2B 50f4efc215293e931380b6307231279b3c5ca055aa8082fee8575963a68b3d54262449bf45fb1a514dab18f53a1dd9e0467a0f7ac67dea7a45fcce09155721dd SHA512 59c82fa5ec984b7ecd97964ea075ea327511fd4e71cc5ac72d3fb573b777c9fb289f462d022ea1e0256b38dc369c9f7fa7a61b7af877bd06ec94252237111e8d
|
||||
DIST atomic-1.1.99.gem 17920 BLAKE2B 814406dc3e38a3ec882eb47e20e6153da9f68c4dd6ba3bc3d3869c0542754ba38678512872b25379b12d902ad6f740b1da974680867d492d2c4620091c5a32c9 SHA512 9c7762f6c32d11b2c5b45be68954ca12c753d2b4683167158a037ce791d72b13d940beef5bf6dd445c8b12e358c62d2a9f43a609fb3b7c7357fea4f66316063c
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="An atomic reference implementation for JRuby, Rubinius, and MRI"
|
||||
HOMEPAGE="https://github.com/headius/ruby-atomic"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid compilation dependencies since we compile directly.
|
||||
sed -i -e '/:test => :compile/ s:^:#:' \
|
||||
-e '/extensiontask/,/end/ s:^:#:' Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} -Cext extconf.rb || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake V=1 -Cext
|
||||
cp ext/atomic_reference$(get_modname) lib/ || die
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
DIST capybara-2.14.4.gem 265728 BLAKE2B 7b61fc7424b5e5aeec50e0695ef7719d23b594d3fe233c04443c37a5f06b0f1e7c440135c50225813d9da954c2efa0563488668202e09a4e3877f28708f9624e SHA512 d3ebbd8d96e4d2026327b1c70ff723225ce052fff510a909111b8cc7e02b12fec9e00acddc0bc2565371cc5eb0b590abef43d42a99c3938a929ea25930fdefd1
|
||||
DIST capybara-2.16.1.gem 273408 BLAKE2B 1d1a68427fcfed9a8153e409e17fc043dd8d926c3ebbab3560ae12454f3010c8b4569348c231e807d993263940b703dc5380a235da438eb5ac2f9d0bd3a66309 SHA512 921e05111278b7bff93fe805a29e7b2e0e78b36510db5dff1189e34c3cdeada52504a8e06534238e578c32e8e0efa8d99a0ffc8516d94e60c06e7fd2c4ecb174
|
||||
DIST capybara-2.18.0.gem 274432 BLAKE2B 992799362025b81a0d074fb06fdafef4c4385ca18ea85a7095d9e58625df6a59a349b60b462c5c4f403a6af955466bc46d82be6cd91724fc2b12cbe15ed74a4c SHA512 3bb994e022593d485a07296193a16cae7b45e96e87dd10b2bd4807ad2bc990801044c0493360598d1626c3e367e8de87e407f65c2c6f42674d5f1b9c0b5c1933
|
||||
DIST capybara-3.0.2.gem 275456 BLAKE2B bcf2049193062b7d16e811807faf629379bc5a94bba771d442e9680e727d765703ad4c6cf8abd9d0bb22d1971f07d897f0fc8a572182302528961fcfe8b186fb SHA512 5f2611238a58184dcd57a5ca2fff786d4ecfdbb51815c3f6afdcabbb85087baf87fc601d1506a6b880d42af32e06a62e7757b1abf455325718258d3072616a49
|
||||
DIST capybara-3.0.3.gem 276480 BLAKE2B a1aa8e8ccc3846c87bdc989f456fdd0c09f41b2939cfe322faa6ae478bacdd1d6b4b13dba55fc74edd50fcfe28eb59eb8a2add8e3fc5ba948bcf8365c0ffbb96 SHA512 7af6c04304f3308322ec374d226b6cd874ba2068be5451da482a6bd2861e404b580e4c74604f0873cd91a52f1d95117efdf850cf19eb9c6265715cff5d503c47
|
||||
DIST capybara-3.1.0.gem 282112 BLAKE2B 71b275c548e3327dcbad779d48563b6784cbfcc0e5c3ba5fa478488ef90276bab1aeeaecd229255047cd23e01be6923c68c1f753b9d76d3428cc0ce75ff3ede3 SHA512 64c7a22eb8d566b245084e7b95d79dec2c72162e003418c0367a46e1072ad83569e97702f61f9a87f996160a62df3a653543d33878c6d3a46ebc2c286fcfbfd7
|
||||
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="History.md README.md"
|
||||
|
||||
# Rake tasks are not distributed in the gem.
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
inherit virtualx ruby-fakegem
|
||||
|
||||
DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications"
|
||||
HOMEPAGE="https://github.com/jnicklas/capybara"
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa"
|
||||
SLOT="2"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="${DEPEND} test? ( www-client/firefox )"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/rspec:3 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 dev-ruby/sinatra )"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/addressable
|
||||
>=dev-ruby/mime-types-1.16:*
|
||||
>=dev-ruby/nokogiri-1.3.3
|
||||
>=dev-ruby/rack-1.0.0:*
|
||||
>=dev-ruby/rack-test-0.5.4
|
||||
>=dev-ruby/xpath-2.0.0:2"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid window-manager specific tests (sizes are specific for fluxbox)
|
||||
sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die
|
||||
|
||||
# Avoid spec that requires unpackaged geckodriver
|
||||
sed -i -e '/register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
|
||||
|
||||
# Avoid test dependency on puma server for now
|
||||
sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed."
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST selenium-webdriver-2.53.4.gem 897536 BLAKE2B 630b5e8cd5ce53de7a689135ce80e364e33b783bd8493f79af01d79717d3d65541fe04c6c0e5016a85af8a559864ddcb641d06c99430599b21095b54ff40845a SHA512 ad7934a67c4415a81c2d0efae5f510d41784411076ea903724e1fa2be1b209382131aa1b05f3636deb1deca38db6e76805262f5037ab2e621e785e4eb3c2b90e
|
||||
DIST selenium-webdriver-3.10.0.gem 841728 BLAKE2B fb36121b835c7750595cd57c3217c234e12d9f78a29131a12148f464955b1bc3f5a9ef96b6bd8f8aaedd0fa9943bcc42c1f83a0d31ec6663664f6c4f0102b5a3 SHA512 ee1ccad5661f06b16c106b2515285f763baf2b66aefe4c20aed0521e602997af8b1b12640b1099ad0a64f18b01bcec7824dcdd20fe36d9176337f177b8417b2b
|
||||
DIST selenium-webdriver-3.11.0.gem 841728 BLAKE2B b3f069645fb166258aebb0f04c8d3f828413b2a1e2f818b7501118760ba79e812ce7d314b21076076f1e6c30590e0d38f026b32ede63ff08197c8f8fbaaefded SHA512 85488c257772a4628d19bd71e7993a82c2c5a9f6332d591b19507ca5e2a96c03fa5c351714a492915888510728f2e5eca28862c69e1ced43d8b56db128d7705e
|
||||
DIST selenium-webdriver-3.12.0.gem 843264 BLAKE2B f9a2e233658e071144f153f7710ec15cd58d8831793f7212d1d49a76d08d80c7110bcf1afc86e98210c6753d19ab2c63f169754f148db8a994fb777048c10b6d SHA512 1d5a510e3e7775c6b8c960de8a5f0ae2084f490c17084e8ba0894dc32021c9295c9301c6bf0ba07e0e9827a8d99ac9f9c5d29fbf57425a076825fe18e4a8f88f
|
||||
DIST selenium-webdriver-3.8.0.gem 840192 BLAKE2B 3f3871afed9734627757e58a211ad894fd45a49b73208b533fd39e0d99172536e7f2abdfbed1e0589c45aac6a26dd0c1ae0cf8f25053d44082957f7d07591d37 SHA512 c00c44786ecee4c02723b88c9ae5921d6a3f2d4c6c3bd043da1f524692c75a69357b752fc183c7881de0d0a6e6d6ddb03ca31e6a983afacdd06978bdd0797957
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
# NOTE: this package contains precompiled code. It appears that all
|
||||
# source code can be found at https://code.google.com/p/selenium/ but the
|
||||
# repository is not organized in a way so that we can easily rebuild the
|
||||
# suited shared object. We'll just try our luck with the precompiled
|
||||
# objects for now.
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGES README.md"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_QA_ALLOWED_LIBS="x_ignore_nofocus.so"
|
||||
QA_PREBUILT="*/x_ignore_nofocus.so"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="This gem provides Ruby bindings for WebDriver"
|
||||
HOMEPAGE="https://github.com/seleniumhq/selenium"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/childprocess-0.5.0
|
||||
>=dev-ruby/rubyzip-1.2:1"
|
@ -1,2 +1,3 @@
|
||||
DIST test-unit-3.1.9.gem 124416 BLAKE2B f1c88d9e7da576babaa979a57eb522a244856711d013f0bc38ffb3f04d2b290eeaa50fde14078cedf1d86e26ebf12061ed03b9b82a2d9365a0c61796ef25eb72 SHA512 ec3068db7faceb5c6a3f3a848512aa76ec2e360a2a1ca7ec45fd6c1b84f45f04fb1b4d77120dfde7b0a41e4a8435fa37ba6550e4242e3817d344b3ca8d7b4428
|
||||
DIST test-unit-3.2.7.gem 129024 BLAKE2B 31565510d5a16cf75706810a551dca40129edb0fc1528b9f55c862b23db1986640f42a72432028f47d052bb1aab3600c90c4ed19388ba11f2221a5d1e0619aaf SHA512 a55a5abee0d602b23af34ee8a9a7e26effc95ce9dd8ce98da28c49caf883d47c86bd2d0979176b0d1e239861ea73a4c5a9a280a1ceda7fbfbbd98c888ca6b01e
|
||||
DIST test-unit-3.2.8.gem 129536 BLAKE2B ee88fc653b0dc0cad7d88427391cd6a476d2d3c56c3e4bfa7e7cac28d6e9a35663c40e9c4ed29a1d5998255c434ab7884177354fd1e68b07f00fe1e0048506d6 SHA512 b7ed21744118036a997525251af2520158282ca19e99ebccaa7180361a112e0cdafaf570c36126a6b74b8480405c67aaa5394e06465145583964defb68abeb9c
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md doc-install/text/*.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="An xUnit family unit testing framework for Ruby"
|
||||
HOMEPAGE="https://rubygems.org/gems/test-unit"
|
||||
|
||||
LICENSE="|| ( Ruby GPL-2 ) PSF-2"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc test"
|
||||
|
||||
ruby_add_rdepend "dev-ruby/power_assert"
|
||||
|
||||
all_ruby_prepare() {
|
||||
mv doc doc-install || die "moving doc directory out of the way failed"
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} test/run-test.rb || die "testsuite failed"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
newbin "${FILESDIR}"/testrb-3 testrb-2
|
||||
}
|
Binary file not shown.
@ -1,5 +1,4 @@
|
||||
DIST jenkins-bin-2.107.1.war 74525235 BLAKE2B 0026335b4fb7e45cdd315dc2d161ef0cd9244feceaeb24639fbf8042ebc74b940b56c6ac9db8701592b7c79f78699b8284e07896b9ac289a4baff6938669f35d SHA512 3e9e5cd7933c46c42be5c36d55142272220da3516885e33086515f66cc6fe8a71f0c5442083917468d0aae3f4991d96546824d9c0b90e7d2bfb61ae86c8c4d9a
|
||||
DIST jenkins-bin-2.107.2.war 74568464 BLAKE2B b506199d2e56c3f88bdd295dd88b8644869c59e93689768376752b1bd54a5f5ccb8a56b32d9556a592b5567dc884cfa6d0049810f6a23304f5c1fa9026b31804 SHA512 c5abc515ac646904c44d06a31e253c5824096abb40af415357f47610354a793bd571310fed9e5596103c399a495a7b229a731509873a99795471459410db6411
|
||||
DIST jenkins-bin-2.107.war 74518540 BLAKE2B 13aaab2968afdc3d8e2f13086bb480f0a798b736f0b8ce2c80537858cbba5b62efe12806beb22342daad5500f4f81cdcdc00b14e29f9e2ca0e7b5fc1f1c2c406 SHA512 9739e7d63ac7996f731abf43ae91a248697771974fac2763cc8b3838ec52b2c25b609e73d6a58b650994576e7d27c856e30dfbe08b16f597c1be80a9a2579745
|
||||
DIST jenkins-bin-2.107.3.war 74576216 BLAKE2B 2791f6fce3c6c331c47e55b72777c90c2323e6c53629ee92ccd6987c4557a713759f1a2fe2f6e882cec5536c6e1783c1fb9b740174e1ab3f89d56e97460ad4ef SHA512 29209b7359439f55c27127a946dbfcdc318407ee21de447b8f4864209e2076f0a16083dd501e3ead054b086af78f319e25979b7fd25847135d76deeb10a99fad
|
||||
DIST jenkins-bin-2.116.war 74606954 BLAKE2B 15d1a665eeb35694bc03bc54c8b5b623fc3ad40c492c5e8541a271396fb48fe9a67eefaa25665a2658dff0f3ce1bea51de23902a3f7297dc0621750c7c7d5f8f SHA512 ab2a41f848dae9bfcb3fc3a8dea2da4957cb919aa1cf0609bea238ef6670a973226e5da817f582e8d718700cd8e57c05384f6ef6cf9ad80e94c87813a5199373
|
||||
DIST jenkins-bin-2.89.4.war 74297875 BLAKE2B 05e243ac84e6a9a377dff3962d3e2f4f729d390bac9d5de27a19641babb24ab95b5e8cbcf127df7170928a902e267b0d4e497ba08ea99080f610bb4d5c7b12d4 SHA512 eba6d7ee6f2cd452d805ef97c15fc794424039efb4f1d8b7c0cc463c21c856c02455187cc24360847fd7ac06e816f37964b9a4d99fd306def6c713ed0339e2f7
|
||||
DIST jenkins-bin-2.121.war 74737297 BLAKE2B 20d53c5869655331036ef5e18f94f71a0bda46f651b706bc61ae24083df72db285291478575662c52c661bc15c79e00e3f10e503f430aa5d23107f251f12d338 SHA512 4df05ad4abf0dd4fc40fbcb9dd8cdad985f6c3970ac4b777aeb5766a1ae45718b70929b71288e245f5e90541aa886c31c589dfdd006623759b7c6b5326e44118
|
||||
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit user systemd
|
||||
|
||||
DESCRIPTION="Extensible continuous integration server"
|
||||
HOMEPAGE="http://jenkins-ci.org/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="http://mirrors.jenkins-ci.org/war-stable/${PV}/${PN/-bin/}.war -> ${P}.war"
|
||||
RESTRICT="mirror"
|
||||
SLOT="lts"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-fonts/dejavu
|
||||
media-libs/freetype
|
||||
!dev-util/jenkins-bin:0
|
||||
>=virtual/jre-1.8.0"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
JENKINS_DIR=/var/lib/jenkins
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup jenkins
|
||||
enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
|
||||
|
||||
insinto /opt/jenkins
|
||||
newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init2 jenkins
|
||||
newconfd "${FILESDIR}"/${PN}.confd jenkins
|
||||
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
|
||||
|
||||
fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST qbs-src-1.10.1.tar.gz 4140847 BLAKE2B cbd9770d426fdf70645f5c40fbc8956309845980776b920a0e5e612d0cbf63a9a1352e5ab43a98afd9a5a9db396d0b7bbd840b4581787aaafabad0982c6edca8 SHA512 e2019f59124cf8409c12bc108982f1c4c99dcff9d6272c26bee9d690327dea28990c4081857b1b2bfec57e3b557d83e0b8085823dbd4d0988c483d971dc06bac
|
||||
DIST qbs-src-1.11.0.tar.gz 4299668 BLAKE2B b17e5d0e65fd0c29bf7837d53eb5c5470e6f3a243b4cbd215a528c6657e5c4831e49b369034133f784122e358cce723bd78b26df8bd580ed570a71590a73af7d SHA512 123319aca79c4816fcfd839a7c7f3029c55eac4dc2c2a2bae7df891c15ef81de22bb7f6ad04bbdb39401473a3df15e41b88adcd0d5d2462c2ef3e62bf5e0f80a
|
||||
DIST qbs-src-1.11.1.tar.gz 4299125 BLAKE2B a2b2670b47bb122ccc586fee0c61d941533dc2dbc5e59028a7ab765eb18fe4a71b85cbd7373f88231b9cd75178982a17dddab0ba965de84ca197c49b2c9eefdf SHA512 90833792cb29b7b886df491263b620d2933c398ad8b2f495d0e5ae6acdde3f816ecd25638ae2e74d3efbf517a762644f751b7c01633aed3369bd7bf85c033ff5
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
--- a/src/serial.c.old 2010-10-28 14:40:23.000000000 +0200
|
||||
+++ b/src/serial.c 2010-10-28 14:41:07.000000000 +0200
|
||||
@@ -302,11 +302,11 @@
|
||||
/* Gbserial_read: Read a byte on the serial
|
||||
This is a block function */
|
||||
Uint8 gbserial_read(void) {
|
||||
- Uint8 b;
|
||||
+ Uint8 b[2];
|
||||
|
||||
gbserial.ready2read=0;
|
||||
- if ((read(dest_socket,&b,2))<=0) return 0xFF;
|
||||
- return b;
|
||||
+ if ((read(dest_socket,b,2))<=0) return 0xFF;
|
||||
+ return b[0];
|
||||
}
|
||||
|
||||
/* Gbserial_write: Write a byte on the serial
|
@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -e $HOME/.config/ ] || mkdir $HOME/.config/
|
||||
|
||||
cp -ru "%GAMES_DATADIR%/higan" $HOME/.config/
|
||||
|
||||
exec ${0}.bin "$@"
|
Binary file not shown.
@ -1,6 +1,7 @@
|
||||
DIST duke3d_hrp_5.2.zip 709961560 BLAKE2B 3b436e729a04c0794c6f766bdadd2eaed6a046f8eae6a3bba03c56c7e3e5838f1d9e826d71a071142fc13042523d6513cabc3ba1fc648e827decb3195e8fc01b SHA512 6b80739082d01e879ee77c85d3702269a605bc5f5b9393ce2f391d50c2a14e8fd0cd274a7e3010636646c3b7725591f45f107503c04a84655621a197f5f3c69e
|
||||
DIST duke3d_mus_3.0.zip 129992841 BLAKE2B 93e8c30769ffb79a4831fccbab62c410338bb845b5f9b7967bd5c85eab24c09270bed811ec9f1fd637b8e3f0df014671cc5fdfc8c65b6b9341014fd4d91890b4 SHA512 9b782a2b6bb006a01e7ca2a8c395fcbe0884cc7648fce03f7760d67e67e4b03d73e31fff5964a604270ffddf09df69f306147dffd115efcd738de416939060cf
|
||||
DIST duke3d_musopl_2.0.zip 266444907 BLAKE2B 1f087851a9cdb1d4f3fc1cb78d49b8bcedf746248e7b623469cca803c49dc6a56ac578f5a38f8f4efd2ba194b1ae6ef90b6cb90a809de784d6152af48679a1ff SHA512 e9ae69727f84ff71bf9abffa283fda1fcaf56fd6ae6b865d12f138d64b0fca0d36fd9695b1e60a64716154055373eecd6499ebd8801a4ecb55ddc4722208eff7
|
||||
DIST duke3d_xxx_1.33.zip 26586453 BLAKE2B 7e3c46172d3db1b2eb49eb07f243a9ead4f260d6b1dcae9f8bd599b8e9ba3a19068032afeb4ec2cf61742b6216e3a06c24f2b7e8903f9636f9d00f4d57ada47f SHA512 4783d159610fc178e748446b7a5f9c13d90e1aca3cef34deb82e99655b7f4a254f1130e16dbcfad9013b95bc07161d5c5dccfcc552fbb7a88404b4b9cedbadbf
|
||||
DIST eduke32-icons.tar 102400 BLAKE2B d53d43ce2479e21db6d7771de875fac3fb631f35e3a00c70813ba3da4518c3bae61daf9db6df6def24b4066ec93f16ea9cbbced2345ebd7e6a0aa282d603f742 SHA512 797f76cfc0e253ce3364e80f70b616fc004811c08519020727871addc90c7780b475ee7769398e13859f93893ccbb916bd4229a39f4c119169a69231e6fd411c
|
||||
DIST eduke32_src_20131119-4169.tar.xz 12228040 BLAKE2B 6a0574689b5de921424802a32c4820987279f249afdcae2754b1de765085a025a9a8087709b88214d44304dce07667eddf6e395271bd4590d9e75e336305bb88 SHA512 6ab7babc18c80e111603b9b731f37963f3bfe2ee753a2e383d58a21e77ad5a561cf95f5392adcf76259e6ded2dcd5eb5d0fc484edf65ec6887a746c4f422f292
|
||||
DIST duke3d_hrp-5.4.zip 933440151 BLAKE2B 20749d6e1bdd07d0e5f28ac2f7e3aff60e8638223b934795320046922311533d6ecaefa3923650568aaa4e026927b53087032415d2d343fc4bd179c9e9ddd640 SHA512 fd5aba0a09193ccd49781d3f06a040000a134ad90f099ab7bf10a8abe474c3a742f922f8fa31522b8993828d516bdd0b5ded327e9c4615c2c101fe655d533f4d
|
||||
DIST duke3d_music-sc55-4.02.zip 155441427 BLAKE2B 7fa0c98927dd9a18411ad473269a795d1bc809fa8f9479deef06e12cd0dc97953680e7519c9d22e2d32b6ff79726682746820f78429ad11cb5edf1b64d2e4fe7 SHA512 70d3d7b4705e30cdb19ddc95e11a88afff1dc01dfc6495a488ea665f8097c1200695ec67246ac47a2480d0e68cd7d74e1d61c2120485f53bb93d9c0fb16ba9b2
|
||||
DIST duke3d_musopl-2.01.zip 266444823 BLAKE2B 5255c671782279c7723fb1f848a331645a89fdc8dd5336250d06e6eed5b63511c37bfbb07d22d7e7ce29707efe2c55406f2ee81522374de3633f2b448c7dbd6b SHA512 08308b672516a6f3a3b9b85fd836f2a29a24c8fa5f353953f5f55a281dea370046817ccfb8467b4ce25385277ced8afd83c00882e8a246b03afa5e0e349efd35
|
||||
DIST duke3d_psx-1.11.zip 7636016 BLAKE2B 63094c0eb2343e443f98844675ddc23a138d87c17b1163107e1f8c6eab4be2b5a2ed74f302604f5769d3bb71d3ce8355b69b75352dc470918ebd5c0c73d68665 SHA512 e98f3bbfb2055fa72c4376ebbdb64814b1bca7c66968ffea8ca4d980d432f59f6ae013c889a57a28b2961bbeca2cc80b83b573dc0cbc2550cd9f428cf9d2a625
|
||||
DIST duke3d_xxx-1.33.zip 26586453 BLAKE2B 7e3c46172d3db1b2eb49eb07f243a9ead4f260d6b1dcae9f8bd599b8e9ba3a19068032afeb4ec2cf61742b6216e3a06c24f2b7e8903f9636f9d00f4d57ada47f SHA512 4783d159610fc178e748446b7a5f9c13d90e1aca3cef34deb82e99655b7f4a254f1130e16dbcfad9013b95bc07161d5c5dccfcc552fbb7a88404b4b9cedbadbf
|
||||
DIST eduke32_classic.png 5129 BLAKE2B 332ad44b7f6b4f51362387aa6870e7db54423ca5a1f0586cb5019322fb72317d8e88e0bbf46ac89b56290db7e2e4a8442179a6eb87a615fd741b5f00ce96a1c8 SHA512 b41dece8f1ddcadde3367a83f6029ffdc5805811b40380e270169684fb3b368258bd8caeb55623dadffb6fb9d72faf9a3d75907722623f4fac94a4347f8ce833
|
||||
DIST eduke32_src_20180508-6885.tar.xz 14703224 BLAKE2B 8b90bf5771c2c27701316df8b9e738082d03552dddbd4d8be7e25195fd2da746afb2857e166ac6e6c0c78ad43e3c21f809538f0c54936ce82b5f2a3f93f80f94 SHA512 2b1be82a1bfbb0cf2a9b7bb0b73e69232bc2ce7adf343e25319b16c4240a6b3acf0fb8708e6ab8c7daa18f5a3039772472fd6542f6ea6dbe0530c8c3361c791c
|
||||
|
@ -1,218 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# TODO/FIXME:
|
||||
# lunatic broken
|
||||
# lunatic? ( >=dev-lang/luajit-2.0.0_beta10:2 )
|
||||
# $(usex lunatic "LUNATIC=1" "LUNATIC=0")
|
||||
#
|
||||
# extras? ( games-fps/${PN}-extras )
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils gnome2-utils games
|
||||
|
||||
MY_PV=${PV%.*}
|
||||
MY_BUILD=${PV#*.}
|
||||
|
||||
# extensions
|
||||
MY_HRP=5.2
|
||||
MY_SC55=3.0
|
||||
MY_OPL=2.0
|
||||
MY_XXX=1.33
|
||||
|
||||
DESCRIPTION="Port of Duke Nukem 3D for SDL"
|
||||
HOMEPAGE="http://www.eduke32.com/ http://hrp.duke4.net/"
|
||||
SRC_URI="http://dukeworld.duke4.net/eduke32/synthesis/${MY_PV}-${MY_BUILD}/${PN}_src_${MY_PV}-${MY_BUILD}.tar.xz
|
||||
https://dev.gentoo.org/~hasufell/distfiles/eduke32-icons.tar
|
||||
textures? ( http://www.duke4.org/files/nightfright/duke3d_hrp.zip -> duke3d_hrp_${MY_HRP}.zip )
|
||||
sc55-musicpack? ( http://www.duke4.org/files/nightfright/music/duke3d_mus.zip -> duke3d_mus_${MY_SC55}.zip )
|
||||
opl-musicpack? ( http://www.duke4.org/files/nightfright/music/duke3d_musopl.zip -> duke3d_musopl_${MY_OPL}.zip )
|
||||
offensive? ( http://www.duke4.org/files/nightfright/duke3d_xxx.zip -> duke3d_xxx_${MY_XXX}.zip )"
|
||||
|
||||
LICENSE="GPL-2 BUILDLIC textures? ( hrp_art )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cdinstall debug demo gtk offensive +opengl opl-musicpack +png samples sc55-musicpack +server textures tools +vpx"
|
||||
REQUIRED_USE="?? ( opl-musicpack sc55-musicpack )"
|
||||
|
||||
RDEPEND="media-libs/flac
|
||||
media-libs/libogg
|
||||
media-libs/libsdl[X,joystick,opengl?,video]
|
||||
media-libs/libvorbis
|
||||
media-libs/sdl-mixer[timidity]
|
||||
sys-libs/zlib
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
opengl? (
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
vpx? ( media-libs/libvpx )
|
||||
)
|
||||
png? ( media-libs/libpng:0=
|
||||
sys-libs/zlib )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
app-arch/xz-utils
|
||||
x86? ( dev-lang/nasm )"
|
||||
PDEPEND="cdinstall? ( games-fps/duke3d-data )
|
||||
demo? ( games-fps/duke3d-demodata )"
|
||||
|
||||
S=${WORKDIR}/${PN}_${MY_PV}-${MY_BUILD}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${PN}_src_${MY_PV}-${MY_BUILD}.tar.xz eduke32-icons.tar
|
||||
|
||||
if use textures; then
|
||||
unzip -q "${DISTDIR}"/duke3d_hrp_${MY_HRP}.zip "hrp_readme.txt" \
|
||||
|| die "unzip hrp readme"
|
||||
if use offensive; then
|
||||
unzip -q "${DISTDIR}"/duke3d_xxx_${MY_XXX}.zip "xxx_readme.txt" \
|
||||
|| die "unzip xxx readme"
|
||||
fi
|
||||
fi
|
||||
if use opl-musicpack; then
|
||||
unzip -q "${DISTDIR}"/duke3d_musopl_${MY_OPL}.zip "readme.txt" \
|
||||
|| die "unzip musopl readme"
|
||||
mv readme.txt musopl_readme.txt || die "mv musopl_readme"
|
||||
elif use sc55-musicpack; then
|
||||
unzip -q "${DISTDIR}"/duke3d_mus_${MY_SC55}.zip "music_readme.txt" \
|
||||
|| die "unzip mus readme"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-QA.patch
|
||||
|
||||
# Point eduke32 to data files in shared duke3d folder.
|
||||
# Multiple search paths can be defined, so that with the default configuration as of
|
||||
# the 20130128 release, this adds /usr/share/games/duke3d in ADDITION to
|
||||
# /usr/share/games/eduke32 so that eduke32 and duke3d's base data can be kept separate.
|
||||
# also redirect log file so it's not always written in $PWD
|
||||
sed -i \
|
||||
-e "s;/usr/local/share/games/${PN};${GAMES_DATADIR}/duke3d;" \
|
||||
source/common.c || die "sed common.c path update failed"
|
||||
sed -i \
|
||||
-e "/OSD_SetLogFile/s;mapster32.log;${GAMES_LOGDIR}/mapster32.log;" \
|
||||
source/astub.c || die "sed astub.c path update failed"
|
||||
sed -i \
|
||||
-e "/OSD_SetLogFile/s;${PN}.log;${GAMES_LOGDIR}/${PN}.log;" \
|
||||
source/game.c || die "sed game.c path update failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local MY_OPTS=(
|
||||
AS=$(type -P nasm)
|
||||
ARCH=
|
||||
SYSARCH=
|
||||
LTO=0
|
||||
PRETTY_OUTPUT=0
|
||||
RELEASE=1
|
||||
LUNATIC=0
|
||||
STRIP=touch
|
||||
LINKED_GTK=1
|
||||
CPLUSPLUS=0
|
||||
SDL_TARGET=1
|
||||
F_JUMP_TABLES=""
|
||||
$(usex gtk "WITHOUT_GTK=0" "WITHOUT_GTK=1")
|
||||
$(usex debug "DEBUGANYWAY=1" "DEBUGANYWAY=0")
|
||||
$(usex x86 "NOASM=0" "NOASM=1")
|
||||
$(usex server "NETCODE=1" "NETCODE=0")
|
||||
$(usex opengl "USE_OPENGL=1 POLYMER=1" "USE_OPENGL=0 POLYMER=0")
|
||||
$(usex png "USE_LIBPNG=1" "USE_LIBPNG=0")
|
||||
$(usex opengl "$(usex vpx "USE_LIBVPX=1" "USE_LIBVPX=0")" "USE_LIBVPX=0")
|
||||
)
|
||||
|
||||
emake ${MY_OPTS[@]}
|
||||
|
||||
if use tools; then
|
||||
emake -C build ${MY_OPTS[@]}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local ARGS
|
||||
|
||||
newgamesbin ${PN} ${PN}.bin
|
||||
dogamesbin mapster32
|
||||
|
||||
if use tools; then
|
||||
dobin build/{arttool,bsuite,cacheinfo,generateicon,givedepth,kextract,kgroup,kmd2tool,md2tool,mkpalette,transpal,unpackssi,wad2art,wad2map}
|
||||
dodoc build/doc/*.txt
|
||||
fi
|
||||
|
||||
insinto "${GAMES_DATADIR}/${PN}"
|
||||
# Install optional components
|
||||
if use textures; then
|
||||
newins "${DISTDIR}"/duke3d_hrp_${MY_HRP}.zip duke3d_hrp.zip
|
||||
dodoc "${WORKDIR}"/hrp_readme.txt
|
||||
ARGS+=" -g duke3d_hrp.zip"
|
||||
|
||||
if use offensive; then
|
||||
newins "${DISTDIR}"/duke3d_xxx_${MY_XXX}.zip duke3d_xxx.zip
|
||||
dodoc "${WORKDIR}"/xxx_readme.txt
|
||||
ARGS+=" -g duke3d_xxx.zip"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use opl-musicpack; then
|
||||
newins "${DISTDIR}"/duke3d_musopl_${MY_OPL}.zip duke3d_musopl.zip
|
||||
dodoc "${WORKDIR}"/musopl_readme.txt
|
||||
ARGS+=" -g duke3d_musopl.zip"
|
||||
elif use sc55-musicpack; then
|
||||
newins "${DISTDIR}"/duke3d_mus_${MY_SC55}.zip duke3d_mus.zip
|
||||
dodoc "${WORKDIR}"/music_readme.txt
|
||||
ARGS+=" -g duke3d_mus.zip"
|
||||
fi
|
||||
|
||||
# Install game data
|
||||
doins package/sdk/{SEHELP.HLP,STHELP.HLP,m32help.hlp,names.h,tiles.cfg}
|
||||
use samples && doins -r package/samples
|
||||
|
||||
local i
|
||||
for i in 16 32 128 256 ; do
|
||||
newicon -s ${i} "${WORKDIR}"/${PN}_${i}x${i}x32.png ${PN}.png
|
||||
newicon -s ${i} "${WORKDIR}"/mapster32_${i}x${i}x32.png mapster32.png
|
||||
done
|
||||
|
||||
games_make_wrapper "${PN}" "${GAMES_BINDIR}/${PN}.bin ${ARGS}"
|
||||
make_desktop_entry ${PN} EDuke32 ${PN}
|
||||
make_desktop_entry mapster32 Mapster32 mapster32
|
||||
|
||||
dodoc build/buildlic.txt
|
||||
|
||||
keepdir "${GAMES_LOGDIR}"
|
||||
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
|
||||
use cdinstall || use demo || {
|
||||
elog "Note: You must also install the game data files, either manually or with"
|
||||
elog "games-fps/duke3d-demodata or games-fps/duke3d-data before playing."
|
||||
}
|
||||
|
||||
einfo
|
||||
elog "${PN} reads data files from ${GAMES_DATADIR}/duke3d"
|
||||
einfo
|
||||
|
||||
[[ -e ${ROOT}/${GAMES_LOGDIR} ]] || mkdir -p "${ROOT}/${GAMES_LOGDIR}"
|
||||
touch "${ROOT}/${GAMES_LOGDIR}"/${PN}.log
|
||||
touch "${ROOT}/${GAMES_LOGDIR}"/mapster32.log
|
||||
chown ${GAMES_USER}:${GAMES_GROUP} "${ROOT}/${GAMES_LOGDIR}"/${PN}.log
|
||||
chown ${GAMES_USER}:${GAMES_GROUP} "${ROOT}/${GAMES_LOGDIR}"/mapster32.log
|
||||
chmod g+w "${ROOT}/${GAMES_LOGDIR}"/${PN}.log
|
||||
chmod g+w "${ROOT}/${GAMES_LOGDIR}"/mapster32.log
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,233 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit desktop eapi7-ver gnome2-utils toolchain-funcs
|
||||
|
||||
MY_BUILD="$(ver_cut 2)"
|
||||
MY_DATE="$(ver_cut 1)"
|
||||
|
||||
MY_PN_HRP="duke3d_hrp"
|
||||
MY_PN_OPL="duke3d_musopl"
|
||||
MY_PN_PSX="duke3d_psx"
|
||||
MY_PN_SC55="duke3d_music-sc55"
|
||||
MY_PN_XXX="duke3d_xxx"
|
||||
|
||||
MY_PV_HRP="5.4"
|
||||
MY_PV_OPL="2.01"
|
||||
MY_PV_PSX="1.11"
|
||||
MY_PV_SC55="4.02"
|
||||
MY_PV_XXX="1.33"
|
||||
|
||||
DESCRIPTION="An open source engine port of the classic PC first person shooter Duke Nukem 3D"
|
||||
HOMEPAGE="http://www.eduke32.com/"
|
||||
SRC_URI="http://dukeworld.com/eduke32/synthesis/${MY_DATE}-${MY_BUILD}/${PN}_src_${MY_DATE}-${MY_BUILD}.tar.xz
|
||||
http://www.eduke32.com/images/eduke32_classic.png
|
||||
hrp? ( http://www.duke4.org/files/nightfright/hrp/duke3d_hrp.zip -> ${MY_PN_HRP}-${MY_PV_HRP}.zip )
|
||||
offensive? ( http://www.duke4.org/files/nightfright/related/${MY_PN_XXX}.zip -> ${MY_PN_XXX}-${MY_PV_XXX}.zip )
|
||||
opl? ( http://www.moddb.com/downloads/mirror/95750/102/ce9e8f422c6cccdb297852426e96740a -> ${MY_PN_OPL}-${MY_PV_OPL}.zip )
|
||||
psx? ( http://www.duke4.org/files/nightfright/related/duke3d_psx.zip -> ${MY_PN_PSX}-${MY_PV_PSX}.zip )
|
||||
sc-55? ( http://www.duke4.org/files/nightfright/music/${MY_PN_SC55}.zip -> ${MY_PN_SC55}-${MY_PV_SC55}.zip )"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="BUILDLIC GPL-2 HRP"
|
||||
SLOT="0"
|
||||
IUSE="cdinstall demo flac fluidsynth gtk hrp offensive opengl opl png psx sc-55 server sdk timidity tools vorbis vpx xmp"
|
||||
REQUIRED_USE="cdinstall? ( !demo )
|
||||
demo? ( !cdinstall )
|
||||
hrp? ( ^^ ( demo cdinstall ) )
|
||||
offensive? ( ^^ ( demo cdinstall ) )
|
||||
opl? ( ^^ ( demo cdinstall )
|
||||
!sc-55 )
|
||||
psx? ( ^^ ( demo cdinstall ) )
|
||||
sc-55? ( ^^ ( demo cdinstall )
|
||||
!opl )
|
||||
vpx? ( opengl )"
|
||||
|
||||
S="${WORKDIR}/${PN}_${MY_DATE}-${MY_BUILD}"
|
||||
|
||||
MY_DEPEND_RDEPEND="media-libs/libsdl2[joystick,opengl?,sound,video,X]
|
||||
media-libs/sdl2-mixer[flac?,fluidsynth?,midi,timidity?,vorbis?]
|
||||
sys-libs/zlib:=
|
||||
flac? ( media-libs/flac )
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
opengl? ( virtual/glu
|
||||
virtual/opengl )
|
||||
png? ( media-libs/libpng:0= )
|
||||
timidity? ( media-sound/timidity-freepats )
|
||||
vpx? ( media-libs/libvpx:= )
|
||||
vorbis? ( media-libs/libogg
|
||||
media-libs/libvorbis )
|
||||
xmp? ( media-libs/exempi:= )"
|
||||
|
||||
RDEPEND="${MY_DEPEND_RDEPEND}
|
||||
cdinstall? ( games-fps/duke3d-data )
|
||||
demo? ( games-fps/duke3d-demodata )"
|
||||
|
||||
DEPEND="${MY_DEPEND_RDEPEND}
|
||||
app-arch/unzip
|
||||
x86? ( dev-lang/nasm )"
|
||||
|
||||
PATCHES=( "${FILESDIR}/fix-build-transpal.patch" "${FILESDIR}/log-to-tmpdir.patch" "${FILESDIR}/search-duke3d-path.patch" )
|
||||
|
||||
src_unpack() {
|
||||
# Extract only the eduke32 archive
|
||||
unpack ${PN}_src_${MY_DATE}-${MY_BUILD}.tar.xz
|
||||
|
||||
# Unpack only the documentation
|
||||
if use hrp; then
|
||||
unzip -q "${DISTDIR}"/${MY_PN_HRP}-${MY_PV_HRP}.zip hrp_readme.txt hrp_todo.txt || die
|
||||
fi
|
||||
if use offensive; then
|
||||
unzip -q "${DISTDIR}"/${MY_PN_XXX}-${MY_PV_XXX}.zip xxx_readme.txt || die
|
||||
fi
|
||||
if use opl; then
|
||||
unzip -q "${DISTDIR}"/${MY_PN_OPL}-${MY_PV_OPL}.zip readme.txt || die
|
||||
fi
|
||||
if use sc-55; then
|
||||
unzip -q "${DISTDIR}"/${MY_PN_SC55}-${MY_PV_SC55}.zip readme/music_readme.txt || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myemakeopts=(
|
||||
ALLOCACHE_AS_MALLOC=0
|
||||
AS=$(tc-getAS)
|
||||
CC=$(tc-getCC)
|
||||
CXX=$(tc-getCXX)
|
||||
CLANG=0
|
||||
CPLUSPLUS=1
|
||||
CUSTOMOPT=""
|
||||
DEBUGANYWAY=0
|
||||
F_JUMP_TABLES=""
|
||||
FORCEDEBUG=0
|
||||
HAVE_FLAC=$(usex flac 1 0)
|
||||
HAVE_GTK2=$(usex gtk 1 0)
|
||||
HAVE_VORBIS=$(usex vorbis 1 0)
|
||||
HAVE_XMP=$(usex xmp 1 0)
|
||||
LINKED_GTK=$(usex gtk 1 0)
|
||||
LTO=1
|
||||
LUNATIC=0
|
||||
KRANDDEBUG=0
|
||||
MEMMAP=0
|
||||
MIXERTYPE=SDL
|
||||
NETCODE=$(usex server 1 0)
|
||||
NOASM=0
|
||||
OPTLEVEL=0
|
||||
OPTOPT=""
|
||||
PACKAGE_REPOSITORY=1
|
||||
POLYMER=$(usex opengl 1 0)
|
||||
PRETTY_OUTPUT=0
|
||||
PROFILER=0
|
||||
RELEASE=1
|
||||
RENDERTYPE=SDL
|
||||
SDL_TARGET=2
|
||||
SIMPLE_MENU=0
|
||||
STRIP=""
|
||||
TANDALONE=0
|
||||
STARTUP_WINDOW=$(usex gtk 1 0)
|
||||
USE_OPENGL=$(usex opengl 1 0)
|
||||
USE_LIBVPX=$(usex vpx 1 0)
|
||||
USE_LIBPNG=$(usex png 1 0)
|
||||
USE_LUAJIT_2_1=0
|
||||
WITHOUT_GTK=$(usex gtk 0 1)
|
||||
)
|
||||
|
||||
emake "${myemakeopts[@]}"
|
||||
|
||||
if use tools; then
|
||||
emake utils "${myemakeopts[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local binary
|
||||
local binaries=(
|
||||
eduke32
|
||||
mapster32
|
||||
"${FILESDIR}"/eduke32-bin
|
||||
)
|
||||
for binary in "${binaries[@]}"; do
|
||||
dobin "${binary}"
|
||||
done
|
||||
|
||||
if use tools; then
|
||||
local tool
|
||||
local tools=(
|
||||
arttool
|
||||
bsuite
|
||||
cacheinfo
|
||||
generateicon
|
||||
givedepth
|
||||
ivfrate
|
||||
kextract
|
||||
kgroup
|
||||
kmd2tool
|
||||
makesdlkeytrans
|
||||
map2stl
|
||||
md2tool
|
||||
mkpalette
|
||||
transpal
|
||||
unpackssi
|
||||
wad2art
|
||||
wad2map
|
||||
)
|
||||
for tool in "${tools[@]}"; do
|
||||
dobin ${tool}
|
||||
done
|
||||
fi
|
||||
|
||||
keepdir /usr/share/games/eduke32
|
||||
insinto /usr/share/games/eduke32
|
||||
if use hrp; then
|
||||
doins "${DISTDIR}"/${MY_PN_HRP}-${MY_PV_HRP}.zip
|
||||
fi
|
||||
if use offensive; then
|
||||
doins "${DISTDIR}"/${MY_PN_XXX}-${MY_PV_XXX}.zip
|
||||
fi
|
||||
if use opl; then
|
||||
doins "${DISTDIR}"/${MY_PN_OPL}-${MY_PV_OPL}.zip
|
||||
fi
|
||||
if use psx; then
|
||||
doins "${DISTDIR}"/${MY_PN_PSX}-${MY_PV_PSX}.zip
|
||||
fi
|
||||
if use sc-55; then
|
||||
doins "${DISTDIR}"/${MY_PN_SC55}-${MY_PV_SC55}.zip
|
||||
fi
|
||||
if use sdk; then
|
||||
doins -r package/sdk
|
||||
fi
|
||||
|
||||
newicon "${DISTDIR}"/eduke32_classic.png eduke32.png
|
||||
|
||||
make_desktop_entry eduke32-bin EDuke32 eduke32 Game
|
||||
make_desktop_entry mapster32 Mapster32 eduke32 Game
|
||||
|
||||
local DOCS=( package/sdk/samples/*.txt source/build/doc/*.txt source/duke3d/src/lunatic/doc/*.txt )
|
||||
if use hrp; then
|
||||
DOCS+=( "${WORKDIR}"/hrp_readme.txt "${WORKDIR}"/hrp_todo.txt )
|
||||
fi
|
||||
if use offensive; then
|
||||
DOCS+=( "${WORKDIR}"/xxx_readme.txt )
|
||||
fi
|
||||
if use opl; then
|
||||
DOCS+=( "${WORKDIR}"/readme.txt )
|
||||
fi
|
||||
if use sc-55; then
|
||||
DOCS+=( "${WORKDIR}"/readme/music_readme.txt )
|
||||
fi
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Sat Feb 2 01:16:21 UTC 2013
|
||||
Subject: build system
|
||||
|
||||
respect CC/CXX etc and CFLAGS/CXXFLAGS/LDFLAGS
|
||||
|
||||
--- eduke32_20130201-3453/Makefile
|
||||
+++ eduke32_20130201-3453/Makefile
|
||||
@@ -311,10 +311,10 @@
|
||||
endif
|
||||
|
||||
COMPILER=$(CC) $(OURCONLYFLAGS)
|
||||
-LINKER=$(L_CC)
|
||||
+LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS)
|
||||
ifneq ($(CPLUSPLUS),0)
|
||||
COMPILER=$(CXX) $(OURCXXFLAGS)
|
||||
- LINKER=$(L_CXX)
|
||||
+ LINKER=$(L_CXX) $(OURCXXFLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(PRETTY_OUTPUT),1)
|
||||
--- eduke32_20130201-3453/Makefile.common
|
||||
+++ eduke32_20130201-3453/Makefile.common
|
||||
@@ -10,13 +10,14 @@
|
||||
|
||||
# Tools
|
||||
CROSS=
|
||||
-CC=$(CROSS)gcc
|
||||
-CXX=$(CROSS)g++
|
||||
-AS=$(CROSS)nasm
|
||||
-AR=$(CROSS)ar
|
||||
-RC=$(CROSS)windres
|
||||
-RANLIB=$(CROSS)ranlib
|
||||
-STRIP=$(CROSS)strip
|
||||
+CC ?= $(CROSS)gcc
|
||||
+CXX ?= $(CROSS)g++
|
||||
+AS ?= $(CROSS)nasm
|
||||
+AR ?= $(CROSS)ar
|
||||
+RC ?= $(CROSS)windres
|
||||
+RANLIB ?= $(CROSS)ranlib
|
||||
+STRIP ?= $(CROSS)strip
|
||||
+PKG_CONFIG ?= pkgconfig
|
||||
|
||||
L_CC=$(CC)
|
||||
L_CXX=$(CXX)
|
||||
@@ -164,7 +165,6 @@
|
||||
# FORCEWARNINGS - 1 = do not disable any compiler warnings within the source
|
||||
# KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system
|
||||
# EFENCE - 1 = compile with Electric Fence for malloc() debugging
|
||||
-# OPTLEVEL - 0..3 = GCC optimization strategy
|
||||
# LTO - 1 = enable link-time optimization, for GCC 4.5 and up
|
||||
#
|
||||
CPLUSPLUS?=0
|
||||
@@ -178,13 +178,6 @@
|
||||
PROFILER?=0
|
||||
MUDFLAP?=0
|
||||
|
||||
-# Select the default optimization level for release and debug builds.
|
||||
-ifeq ($(RELEASE),0)
|
||||
- OPTLEVEL?=0
|
||||
-else
|
||||
- OPTLEVEL?=2
|
||||
-endif
|
||||
-
|
||||
ifeq ($(RELEASE),0)
|
||||
override STRIP=
|
||||
endif
|
||||
@@ -293,10 +286,9 @@
|
||||
|
||||
# compiler flags etc.
|
||||
BASECFLAGS=
|
||||
-BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
|
||||
-BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings
|
||||
-BASEASFLAGS=-s #-g
|
||||
-BASELDFLAGS=
|
||||
+BASECONLYFLAGS = $(CFLAGS) -std=gnu89 -Wimplicit -Wdeclaration-after-statement
|
||||
+BASECXXFLAGS = $(CXXFLAGS) -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing
|
||||
+BASELDFLAGS = $(LDFLAGS)
|
||||
|
||||
|
||||
ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
|
||||
@@ -330,19 +322,6 @@
|
||||
endif
|
||||
|
||||
|
||||
-ifneq ($(RELEASE)$(DEBUGANYWAY),10)
|
||||
- # debug build or DEBUGANYWAY=1 --> -g flag
|
||||
- ifneq (0,$(CLANG))
|
||||
- debug=-g
|
||||
- else ifeq ($(PLATFORM), WII)
|
||||
- debug=-g
|
||||
- else
|
||||
- debug=-ggdb
|
||||
- endif
|
||||
-endif
|
||||
-
|
||||
-debug+= -O$(OPTLEVEL)
|
||||
-
|
||||
# See http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation
|
||||
# for a list of possible UBSan options.
|
||||
# Clang 3.2 does only supports -fsanitize=address for the AddressSanitizer
|
||||
@@ -458,7 +437,7 @@
|
||||
|
||||
#### Lunatic development
|
||||
# LuaJIT standalone interpreter executable:
|
||||
-LUAJIT:=luajit
|
||||
+LUAJIT:=$(shell command -v luajit || command -v luajit-2 || command -v luajit-2.0)
|
||||
# Options to "luajit -b" for synthesis. Since it runs on Linux, we need to tell
|
||||
# the native LuaJIT to emit PE object files.
|
||||
ifneq ($(SYNTHESIS),0)
|
||||
@@ -487,7 +466,8 @@
|
||||
ifeq ($(PLATFORM),WINDOWS)
|
||||
BASELIBS+= -lluajit
|
||||
else
|
||||
- BASELIBS+= -lluajit-5.1
|
||||
+ BASECOMMONFLAGS+= $(shell $(PKG_CONFIG) --cflags luajit 2>/dev/null || $(PKG_CONFIG) --cflags luajit-2.0)
|
||||
+ BASELIBS+= $(shell $(PKG_CONFIG) --libs luajit 2>/dev/null || $(PKG_CONFIG) --libs luajit-2.0)
|
||||
endif
|
||||
endif
|
||||
|
||||
--- eduke32_20130201-3453/build/Makefile
|
||||
+++ eduke32_20130201-3453/build/Makefile
|
||||
@@ -167,13 +167,15 @@
|
||||
OURCOMMONFLAGS+= $(BUILDCOMMONFLAGS)
|
||||
|
||||
COMPILER=$(CC) $(OURCONLYFLAGS)
|
||||
-LINKER=$(L_CC)
|
||||
+LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS)
|
||||
ifneq ($(CPLUSPLUS),0)
|
||||
COMPILER=$(CXX) $(OURCXXFLAGS)
|
||||
- LINKER=$(L_CXX)
|
||||
+ LINKER=$(L_CXX) $(OURCXXFLAGS)
|
||||
endif
|
||||
|
||||
-.SILENT:
|
||||
+ifeq ($(PRETTY_OUTPUT),1)
|
||||
+ .SILENT:
|
||||
+endif
|
||||
.PHONY: clean cleanutils veryclean all utils dxutils sdlutils printutils printsdlutils printdxutils enginelib editorlib
|
||||
|
||||
# TARGETS
|
||||
@@ -266,7 +268,7 @@
|
||||
if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS) -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL; then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
|
||||
arttool$(EXESUFFIX): $(OBJ)/arttool.$o $(UTILADDOBJS)
|
||||
$(ONESTEP_STATUS)
|
||||
- if $(L_CXX) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
|
||||
+ if $(L_CXX) $(OURCXXFLAGS) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
|
||||
givedepth$(EXESUFFIX): $(OBJ)/givedepth.$o $(UTILADDOBJS)
|
||||
$(ONESTEP_STATUS)
|
||||
if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
|
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get all installed zip files
|
||||
zips=$(ls /usr/share/games/eduke32/*.zip)
|
||||
|
||||
# Create opts for eduke32
|
||||
for zip in ${zips[@]}; do
|
||||
opts+="-g ${zip} "
|
||||
done
|
||||
|
||||
# Switch to /tmp, for writing there the log file and run eduke32 with set opts
|
||||
cd /tmp && eduke32 ${opts}
|
@ -0,0 +1,20 @@
|
||||
--- a/source/tools/src/transpal.cpp 2017-02-01 11:01:11.000000000 +0100
|
||||
+++ b/source/tools/src/transpal.cpp 2018-05-11 00:06:37.329712454 +0200
|
||||
@@ -26,7 +26,7 @@
|
||||
r = ((ptr[0]*t+32768)>>16);
|
||||
g = ((ptr[1]*t+32768)>>16);
|
||||
b = ((ptr[2]*t+32768)>>16);
|
||||
- return(getclosestcol(r,g,b));
|
||||
+ return(paletteGetClosestColor(r,g,b));
|
||||
}
|
||||
|
||||
static char gettrans(char dat1, char dat2, int datransratio)
|
||||
@@ -39,7 +39,7 @@
|
||||
r = ptr[0]; r += (((ptr2[0]-r)*datransratio+128)>>8);
|
||||
g = ptr[1]; g += (((ptr2[1]-g)*datransratio+128)>>8);
|
||||
b = ptr[2]; b += (((ptr2[2]-b)*datransratio+128)>>8);
|
||||
- return(getclosestcol(r,g,b));
|
||||
+ return(paletteGetClosestColor(r,g,b));
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
@ -0,0 +1,11 @@
|
||||
--- a/source/duke3d/src/game.cpp 2018-05-08 19:32:19.000000000 +0200
|
||||
+++ b/source/duke3d/src/game.cpp 2018-05-10 23:46:21.540213019 +0200
|
||||
@@ -6234,7 +6234,7 @@
|
||||
}
|
||||
else
|
||||
#endif
|
||||
- OSD_SetLogFile(APPBASENAME ".log");
|
||||
+ OSD_SetLogFile("/tmp/" APPBASENAME ".log");
|
||||
|
||||
OSD_SetFunctions(GAME_drawosdchar,
|
||||
GAME_drawosdstr,
|
@ -0,0 +1,11 @@
|
||||
--- a/source/duke3d/src/common.cpp 2018-04-12 23:03:47.000000000 +0200
|
||||
+++ b/source/duke3d/src/common.cpp 2018-05-11 00:04:36.590712915 +0200
|
||||
@@ -794,6 +794,8 @@
|
||||
|
||||
addsearchpath("/usr/share/games/jfduke3d");
|
||||
addsearchpath("/usr/local/share/games/jfduke3d");
|
||||
+ addsearchpath("/usr/share/games/duke3d");
|
||||
+ addsearchpath("/usr/share/duke3d");
|
||||
addsearchpath("/usr/share/games/eduke32");
|
||||
addsearchpath("/usr/local/share/games/eduke32");
|
||||
#elif defined EDUKE32_OSX
|
@ -1,27 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>ck+gentoo@bl4ckb0x.de</email>
|
||||
<name>Conrad Kostecki</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>games@gentoo.org</email>
|
||||
<name>Gentoo Games Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
EDuke32 is an awesome, free homebrew game engine and source port
|
||||
of the classic PC first person shooter Duke Nukem 3D - Duke3D
|
||||
for short to Windows, Linux, Mac OS X, FreeBSD and several handhelds.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="demo">Install <pkg>games-fps/duke3d-demodata</pkg>
|
||||
as well</flag>
|
||||
<flag name="gtk">Compile with gtk launcher</flag>
|
||||
<flag name="offensive">Include optional XXX texture pack
|
||||
(needs USE 'textures')</flag>
|
||||
<flag name="opl-musicpack">Include optional OPL (AdLib)
|
||||
music pack</flag>
|
||||
<flag name="samples">Install samples</flag>
|
||||
<flag name="sc55-musicpack">Include optional Roland SC-55
|
||||
music pack</flag>
|
||||
<flag name="server">Compile with server support</flag>
|
||||
<flag name="textures">Include optional high-resolution
|
||||
textures (needs USE 'opengl')</flag>
|
||||
<flag name="tools">Build several tools for modding and
|
||||
development</flag>
|
||||
<flag name="vpx">Enable support for WebM VP8 Codecs
|
||||
(needs USE 'opengl')</flag>
|
||||
<flag name="demo">Install the Duke Nukem 3D demo files, provided by <pkg>games-fps/duke3d-demodata</pkg>.</flag>
|
||||
<flag name="fluidsynth">Install <pkg>media-libs/sdl2-mixer</pkg> with fluidsynth support.</flag>
|
||||
<flag name="hrp">Install the Duke Nukem 3D High Resolution Pack.</flag>
|
||||
<flag name="offensive">Install the Duke Nukem 3D XXX Pack.</flag>
|
||||
<flag name="opl">Install the Duke Nukem 3D OPL music files.</flag>
|
||||
<flag name="psx">Install the Duke Nukem 3D PSX high resolution voice files.</flag>
|
||||
<flag name="sc-55">Install the Duke Nukem 3D Roland SC-55 music files.</flag>
|
||||
<flag name="server">Enable support for multiplayer.</flag>
|
||||
<flag name="sdk">Install the SDK files.</flag>
|
||||
<flag name="tools">Install the support tools for mapster32.</flag>
|
||||
<flag name="vpx">Enable support for <pkg>media-libs/libvpx</pkg>.</flag>
|
||||
<flag name="xmp">Enable support for <pkg>media-libs/exempi</pkg>.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
@ -1,220 +0,0 @@
|
||||
Index: konstruktor.c
|
||||
===================================================================
|
||||
--- a/konstruktor.c (Revision 412)
|
||||
+++ b/konstruktor.c (Arbeitskopie)
|
||||
@@ -247,7 +247,7 @@
|
||||
else if (level.w == 32 && level.h == 31)
|
||||
gsize = 1;
|
||||
inforedraw = 1;
|
||||
- sprintf(infostring, txt_konstruktor_Welcome_to_GNU_Robbo_Designer);
|
||||
+ strcpy(infostring, txt_konstruktor_Welcome_to_GNU_Robbo_Designer);
|
||||
robbo.keys = k_count_obj(KEY); /* count keys on a map */
|
||||
robbo.bullets = k_count_obj(BULLET) * 9; /* count bullets */
|
||||
game_area.redraw = REDRAW_EVERYTHING;
|
||||
@@ -688,7 +688,7 @@
|
||||
create_object(nx, ny, BOMB2);
|
||||
switch (K_icons[selected].game_obj) {
|
||||
case GROUND:
|
||||
- sprintf(infostring, txt_konstruktor_Ground);
|
||||
+ strcpy(infostring, txt_konstruktor_Ground);
|
||||
break;
|
||||
case STOP:
|
||||
sprintf(infostring, "%s (%d %s)",
|
||||
@@ -745,7 +745,7 @@
|
||||
txt_konstruktor_on_map);
|
||||
break;
|
||||
case EMPTY_FIELD:
|
||||
- sprintf(infostring, txt_konstruktor_Empty_Field);
|
||||
+ strcpy(infostring, txt_konstruktor_Empty_Field);
|
||||
break;
|
||||
case BUTTERFLY:
|
||||
sprintf(infostring, "%s (%d %s)",
|
||||
@@ -783,9 +783,9 @@
|
||||
case WALL:
|
||||
board[nx][ny].state = wallnumber;
|
||||
if (wallnumber != 3)
|
||||
- sprintf(infostring, txt_konstruktor_Wall);
|
||||
+ strcpy(infostring, txt_konstruktor_Wall);
|
||||
else
|
||||
- sprintf(infostring, txt_konstruktor_Black_Wall);
|
||||
+ strcpy(infostring, txt_konstruktor_Black_Wall);
|
||||
// game_area.redraw=REDRAW_EVERYTHING;
|
||||
break;
|
||||
case TELEPORT:
|
||||
@@ -905,7 +905,7 @@
|
||||
break;
|
||||
case K_RELOAD:
|
||||
if (cnt == lastselected) {
|
||||
- sprintf(infostring, txt_konstruktor_Level_reloaded);
|
||||
+ strcpy(infostring, txt_konstruktor_Level_reloaded);
|
||||
clear_screen();
|
||||
level_init();
|
||||
konstruktor_viewport_init();
|
||||
@@ -923,7 +923,7 @@
|
||||
k_redraw_all();
|
||||
cnt = -1;
|
||||
} else {
|
||||
- sprintf(infostring,
|
||||
+ strcpy(infostring,
|
||||
txt_konstruktor_Reload_level_select_again_to_reload);
|
||||
lastclick = 50;
|
||||
};
|
||||
@@ -1048,7 +1048,7 @@
|
||||
inforedraw = 1;
|
||||
break;
|
||||
case EMPTY_FIELD:
|
||||
- sprintf(infostring, txt_konstruktor_Empty_Field);
|
||||
+ strcpy(infostring, txt_konstruktor_Empty_Field);
|
||||
inforedraw = 1;
|
||||
break;
|
||||
case WALL:
|
||||
@@ -1055,9 +1055,9 @@
|
||||
if (cnt == selected)
|
||||
wallnumber = (wallnumber + 1) % 10;
|
||||
if (wallnumber != 3)
|
||||
- sprintf(infostring, txt_konstruktor_Wall);
|
||||
+ strcpy(infostring, txt_konstruktor_Wall);
|
||||
else
|
||||
- sprintf(infostring, txt_konstruktor_Black_Wall);
|
||||
+ strcpy(infostring, txt_konstruktor_Black_Wall);
|
||||
inforedraw = 1;
|
||||
break;
|
||||
case K_LASER:
|
||||
@@ -1078,7 +1078,7 @@
|
||||
teleportnr = (teleportnr % 11) + 1;
|
||||
break;
|
||||
case GROUND:
|
||||
- sprintf(infostring, txt_konstruktor_Ground);
|
||||
+ strcpy(infostring, txt_konstruktor_Ground);
|
||||
inforedraw = 1;
|
||||
break;
|
||||
case BIRD:
|
||||
@@ -1101,16 +1101,16 @@
|
||||
direction = (direction + 1) % 4;
|
||||
switch (direction) {
|
||||
case 0:
|
||||
- sprintf(infostring, txt_konstruktor_Direction_right);
|
||||
+ strcpy(infostring, txt_konstruktor_Direction_right);
|
||||
break;
|
||||
case 1:
|
||||
- sprintf(infostring, txt_konstruktor_Direction_down);
|
||||
+ strcpy(infostring, txt_konstruktor_Direction_down);
|
||||
break;
|
||||
case 2:
|
||||
- sprintf(infostring, txt_konstruktor_Direction_left);
|
||||
+ strcpy(infostring, txt_konstruktor_Direction_left);
|
||||
break;
|
||||
case 3:
|
||||
- sprintf(infostring, txt_konstruktor_Direction_up);
|
||||
+ strcpy(infostring, txt_konstruktor_Direction_up);
|
||||
break;
|
||||
}
|
||||
inforedraw = 1;
|
||||
@@ -1119,13 +1119,13 @@
|
||||
ltype = (ltype + 1) % 3;
|
||||
switch (ltype) {
|
||||
case 0:
|
||||
- sprintf(infostring, txt_konstruktor_Laser_Gun);
|
||||
+ strcpy(infostring, txt_konstruktor_Laser_Gun);
|
||||
break;
|
||||
case 1:
|
||||
- sprintf(infostring, txt_konstruktor_Blaster_Gun);
|
||||
+ strcpy(infostring, txt_konstruktor_Blaster_Gun);
|
||||
break;
|
||||
case 2:
|
||||
- sprintf(infostring, txt_konstruktor_Regular_Gun);
|
||||
+ strcpy(infostring, txt_konstruktor_Regular_Gun);
|
||||
break;
|
||||
}
|
||||
inforedraw = 1;
|
||||
@@ -1136,16 +1136,16 @@
|
||||
movable = (rmstate & 1);
|
||||
switch (rmstate) {
|
||||
case 0:
|
||||
- sprintf(infostring, txt_konstruktor_Fixed);
|
||||
+ strcpy(infostring, txt_konstruktor_Fixed);
|
||||
break;
|
||||
case 1:
|
||||
- sprintf(infostring, txt_konstruktor_Moveable);
|
||||
+ strcpy(infostring, txt_konstruktor_Moveable);
|
||||
break;
|
||||
case 2:
|
||||
- sprintf(infostring, txt_konstruktor_Rotating);
|
||||
+ strcpy(infostring, txt_konstruktor_Rotating);
|
||||
break;
|
||||
case 3:
|
||||
- sprintf(infostring, txt_konstruktor_Moveable_Rotating);
|
||||
+ strcpy(infostring, txt_konstruktor_Moveable_Rotating);
|
||||
break;
|
||||
}
|
||||
inforedraw = 1;
|
||||
@@ -1152,7 +1152,7 @@
|
||||
break;
|
||||
case K_INSERT:
|
||||
if (lastselected == cnt) {
|
||||
- sprintf(infostring, txt_konstruktor_Level_created);
|
||||
+ strcpy(infostring, txt_konstruktor_Level_created);
|
||||
insert = 1;
|
||||
/*
|
||||
* Clear board
|
||||
@@ -1176,7 +1176,7 @@
|
||||
cnt = -1;
|
||||
|
||||
} else {
|
||||
- sprintf(infostring,
|
||||
+ strcpy(infostring,
|
||||
txt_konstruktor_New_level_select_again_to_create);
|
||||
lastclick = 50;
|
||||
}
|
||||
@@ -1187,7 +1187,7 @@
|
||||
* Clear board
|
||||
*/
|
||||
if (lastselected == cnt) {
|
||||
- sprintf(infostring, txt_konstruktor_Level_cleared);
|
||||
+ strcpy(infostring, txt_konstruktor_Level_cleared);
|
||||
robbo.screws = 0;
|
||||
robbo.keys = 0;
|
||||
robbo.bullets = 0; /* Thunor: I added this as it was missing */
|
||||
@@ -1206,7 +1206,7 @@
|
||||
clear_entire_board();
|
||||
cnt = -1;
|
||||
} else {
|
||||
- sprintf(infostring,
|
||||
+ strcpy(infostring,
|
||||
txt_konstruktor_Clear_level_select_again_to_clear);
|
||||
lastclick = 50;
|
||||
}
|
||||
@@ -1215,9 +1215,9 @@
|
||||
case K_SAVE:
|
||||
if (lastselected == cnt) {
|
||||
if (insert == 1)
|
||||
- sprintf(infostring, txt_konstruktor_New_level_appended_to_pack);
|
||||
+ strcpy(infostring, txt_konstruktor_New_level_appended_to_pack);
|
||||
else
|
||||
- sprintf(infostring, txt_konstruktor_Changes_saved);
|
||||
+ strcpy(infostring, txt_konstruktor_Changes_saved);
|
||||
cnt = -1;
|
||||
|
||||
k_save_map();
|
||||
@@ -1228,10 +1228,10 @@
|
||||
lastclick = 50;
|
||||
|
||||
if (insert == 1)
|
||||
- sprintf(infostring,
|
||||
+ strcpy(infostring,
|
||||
txt_konstruktor_Save_select_again_to_save_new_level);
|
||||
else
|
||||
- sprintf(infostring,
|
||||
+ strcpy(infostring,
|
||||
txt_konstruktor_Save_select_again_to_save_changes);
|
||||
}
|
||||
inforedraw = 1;
|
||||
@@ -1297,7 +1297,7 @@
|
||||
konstruktor_end();
|
||||
cnt = -1;
|
||||
} else {
|
||||
- sprintf(infostring,
|
||||
+ strcpy(infostring,
|
||||
txt_konstruktor_Exit_designer_select_again_to_exit);
|
||||
lastclick = 50; /* very long click is used as
|
||||
* another click */
|
Binary file not shown.
@ -1,76 +1,76 @@
|
||||
High Resolution Pack Art License
|
||||
|
||||
This Work is provided under the terms of this License.
|
||||
The Work is protected by copyright and/or other applicable law. Any use of the
|
||||
Work other than as authorized under this license is prohibited by law.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE
|
||||
BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED
|
||||
TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN
|
||||
CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
|
||||
|
||||
|
||||
Definitions:
|
||||
------------
|
||||
|
||||
"Adaptation" means a work based upon the Work, or upon the Work and other
|
||||
pre-existing works, such as a translation, modification, derivative work,
|
||||
arrangement or other alterations of an artistic work, or phonogram or
|
||||
performance and includes cinematographic adaptations or any other form in
|
||||
which the Work may be recast, transformed, or adapted including in any form
|
||||
recognizably derived from the original.
|
||||
|
||||
"Distribute" means to make available to the public the original and copies of
|
||||
the Work or Adaptation, as appropriate, through any transfer of ownership.
|
||||
|
||||
"Licensor" means the individual, individuals, entity or entities that offer(s)
|
||||
the Work under the terms of this License.
|
||||
|
||||
"Author" means, in the case of a literary or artistic work, the individual,
|
||||
individuals, entity or entities who created the Work or if no individual or
|
||||
entity can be identified, the publisher.
|
||||
|
||||
"Work" means the artistic and/or musical content offered under the terms of
|
||||
this License including without limitation any production in the literary,
|
||||
scientific and artistic domain, whatever may be the mode or form of its
|
||||
expression including digital form.
|
||||
|
||||
"You" means an individual or entity exercising rights under this License who
|
||||
has not previously violated the terms of this License with respect to the Work,
|
||||
or who has received express permission from the Licensor to exercise rights
|
||||
under this License despite a previous violation.
|
||||
|
||||
"Reproduce" means to make copies of the Work by any means.
|
||||
|
||||
|
||||
Terms:
|
||||
------
|
||||
|
||||
You are free to copy, alter, distribute, reproduce and transmit this Work,
|
||||
subject to the following conditions:
|
||||
|
||||
1. You may not use this Work or anything contained in this Work for commercial
|
||||
purposes.
|
||||
|
||||
2. You must attribute this Work in the manner specified by the authors or
|
||||
licensor.
|
||||
|
||||
3. Any likenesses, characters, sounds, phrases or references specific to
|
||||
Duke Nukem, 3D Realms Entertainment, or Apogee Software Ltd. appear in this
|
||||
Work courtesy of 3D Realms Entertainment and are the exclusive property of
|
||||
3D Realms Entertainment, and are provided only to be used with a legally
|
||||
acquired copy of Duke Nukem 3D. You may not alter, transform, build upon or
|
||||
adapt any portion of this Work specifically related to or derived from the
|
||||
Duke Nukem intellectual property, including likenesses, characters, sounds,
|
||||
phrases or references for any purpose other than use with a legally acquired
|
||||
copy of Duke Nukem 3D.
|
||||
|
||||
4. Any works based upon altered, transformed, or copied parts of this Work must
|
||||
be distributed under a license identical or similar to this one.
|
||||
|
||||
5. For any reuse or distribution of this Work, you must make clear to others
|
||||
the license terms of this Work.
|
||||
|
||||
6. The producers and/or authors of this Work explicity reject any liability for
|
||||
any damages resulting from use or misuse of this Work by any Licensee or
|
||||
other third party.
|
||||
High Resolution Pack Art License
|
||||
|
||||
This Work is provided under the terms of this License.
|
||||
The Work is protected by copyright and/or other applicable law. Any use of the
|
||||
Work other than as authorized under this license is prohibited by law.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE
|
||||
BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED
|
||||
TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN
|
||||
CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
|
||||
|
||||
|
||||
Definitions:
|
||||
------------
|
||||
|
||||
"Adaptation" means a work based upon the Work, or upon the Work and other
|
||||
pre-existing works, such as a translation, modification, derivative work,
|
||||
arrangement or other alterations of an artistic work, or phonogram or
|
||||
performance and includes cinematographic adaptations or any other form in
|
||||
which the Work may be recast, transformed, or adapted including in any form
|
||||
recognizably derived from the original.
|
||||
|
||||
"Distribute" means to make available to the public the original and copies of
|
||||
the Work or Adaptation, as appropriate, through any transfer of ownership.
|
||||
|
||||
"Licensor" means the individual, individuals, entity or entities that offer(s)
|
||||
the Work under the terms of this License.
|
||||
|
||||
"Author" means, in the case of a literary or artistic work, the individual,
|
||||
individuals, entity or entities who created the Work or if no individual or
|
||||
entity can be identified, the publisher.
|
||||
|
||||
"Work" means the artistic and/or musical content offered under the terms of
|
||||
this License including without limitation any production in the literary,
|
||||
scientific and artistic domain, whatever may be the mode or form of its
|
||||
expression including digital form.
|
||||
|
||||
"You" means an individual or entity exercising rights under this License who
|
||||
has not previously violated the terms of this License with respect to the Work,
|
||||
or who has received express permission from the Licensor to exercise rights
|
||||
under this License despite a previous violation.
|
||||
|
||||
"Reproduce" means to make copies of the Work by any means.
|
||||
|
||||
|
||||
Terms:
|
||||
------
|
||||
|
||||
You are free to copy, alter, distribute, reproduce and transmit this Work,
|
||||
subject to the following conditions:
|
||||
|
||||
1. You may not use this Work or anything contained in this Work for commercial
|
||||
purposes.
|
||||
|
||||
2. You must attribute this Work in the manner specified by the authors or
|
||||
licensor.
|
||||
|
||||
3. Any likenesses, characters, sounds, phrases or references specific to
|
||||
Duke Nukem, 3D Realms Entertainment, or Apogee Software Ltd. appear in this
|
||||
Work courtesy of 3D Realms Entertainment and are the exclusive property of
|
||||
3D Realms Entertainment, and are provided only to be used with a legally
|
||||
acquired copy of Duke Nukem 3D. You may not alter, transform, build upon or
|
||||
adapt any portion of this Work specifically related to or derived from the
|
||||
Duke Nukem intellectual property, including likenesses, characters, sounds,
|
||||
phrases or references for any purpose other than use with a legally acquired
|
||||
copy of Duke Nukem 3D.
|
||||
|
||||
4. Any works based upon altered, transformed, or copied parts of this Work must
|
||||
be distributed under a license identical or similar to this one.
|
||||
|
||||
5. For any reuse or distribution of this Work, you must make clear to others
|
||||
the license terms of this Work.
|
||||
|
||||
6. The producers and/or authors of this Work explicity reject any liability for
|
||||
any damages resulting from use or misuse of this Work by any Licensee or
|
||||
other third party.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue