remove old packages: dev-lang/v, games-strategy/0ad, www-apps/facette, www-apps/grafana-bin

This commit is contained in:
Martin Sekera 2022-01-05 21:11:27 +01:00
parent 1e84f1386a
commit f1ad49119b
10 changed files with 0 additions and 559 deletions

View file

@ -1,63 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
# download once per week
WEEK=$(printf "%(%Y-week-%W)T")
DESCRIPTION="Simple, fast, safe, compiled. For developing maintainable software."
HOMEPAGE="https://vlang.io"
SRC_URI="
https://github.com/vlang/v/archive/master.tar.gz -> v-${WEEK}.tar.gz
https://github.com/vlang/vc/archive/master.tar.gz -> vc-${WEEK}.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
# FIXME v build-tools pulls a number of modules
RESTRICT="network-sandbox"
S="${WORKDIR}/v-master"
src_compile() {
CC=$(tc-getCC)
# bootstrap the compiler using its C translation and then rebuild from V
${CC} ${CFLAGS} -g -std=gnu11 -o v ${WORKDIR}/vc-master/v.c ${LDFLAGS} -lm -lpthread || die
./v -prod self || die
# build tools
./v build-tools || die
# tell V it is managed by a package manager
touch cmd/tools/.disable_autorecompilation
}
src_install() {
# compiler entry point
exeinto /usr/lib/vlang
doexe v
dosym /usr/lib/vlang/v /usr/bin/v
# v subcommands
exeinto /usr/lib/vlang/cmd/tools
doexe cmd/tools/{check_os_api_parity,fast_job,map_fuzz,missdoc,oldv,performance_compare,repeat,test_if_v_test_system_works,test_os_process,vbin2v,vbuild-examples,vbuild-tools,vbuild-vbinaries,vcheck-md,vcomplete,vcreate,vfmt,vpm,vrepl,vself,vsetup-freetype,vsymlink,vtest,vtest-all,vtest-cleancode,vtest-fmt,vtest-parser,vtest-self,vtracev,vup,vwipe-cache}
# standard library
insinto /usr/lib/vlang
doins -r vlib
# docs
insinto /usr/lib/vlang/cmd/v
doins -r cmd/v/help
insinto /usr/share/vlang
doins -r examples
dodoc -r doc
einstalldocs
}

View file

@ -1,222 +0,0 @@
# Copyright 2014-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
WX_GTK_VER="3.0-gtk3"
PYTHON_COMPAT=( python3_{7..9} )
inherit desktop toolchain-funcs multiprocessing python-any-r1 wxwidgets xdg
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/0ad/0ad"
S="${WORKDIR}/${P}"
elif [[ ${PV} == *_pre* ]]; then
ZEROAD_GIT_REVISION="c7d07d3979f969b969211a5e5748fa775f6768a7"
SRC_URI="https://github.com/0ad/0ad/archive/${ZEROAD_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${ZEROAD_GIT_REVISION}"
else
MY_P="0ad-${PV/_/-}"
SRC_URI="
http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz
https://releases.wildfiregames.com/${MY_P}-unix-data.tar.xz
"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="A free, real-time strategy game"
HOMEPAGE="https://play0ad.com/"
LICENSE="BitstreamVera CC-BY-SA-3.0 GPL-2 LGPL-2.1 LPPL-1.3c MIT ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="editor +lobby nvtt pch test"
RESTRICT="test"
CHECKREQS_DISK_BUILD="9000M" # 8779624 KiB (8.3 GiB)
CHECKREQS_DISK_USR="3500M" # 3545840 KiB (3.3 GiB)
# Premake adds '-s' to some LDFLAGS. Simply sed'ing it out leads to
# build and/or startup issues.
QA_PRESTRIPPED="/usr/lib64/0ad/libCollada.so /usr/bin/0ad"
# virtual/rust is for bundled SpiderMonkey
# Build-time Python dependency is for SM, too.
# TODO: Unbundle premake5
# See bug #773472 which may help (bump for it)
BDEPEND="
${PYTHON_DEPS}
>=dev-util/premake-5.0.0_alpha12:5
virtual/pkgconfig
virtual/rust
test? ( dev-lang/perl )
"
# Removed dependency on nvtt as we use the bundled one
# bug #768930
DEPEND="
dev-libs/boost:=
dev-libs/icu:=
dev-libs/libfmt:0=
dev-libs/libsodium
dev-libs/libxml2
media-libs/libpng:0
media-libs/libsdl2[X,opengl,video]
media-libs/libvorbis
media-libs/openal
net-libs/enet:1.3
net-libs/miniupnpc:=
net-misc/curl
sys-libs/zlib
virtual/opengl
x11-libs/libX11
editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
lobby? ( net-libs/gloox )
"
RDEPEND="
${DEPEND}
!games-strategy/0ad-data
"
PATCHES=(
"${FILESDIR}"/${PN}-0.0.24b_alpha-respect-tc.patch
)
pkg_setup() {
use editor && setup-wxwidgets
}
src_prepare() {
default
# SpiderMonkey's configure no longer recognises --build for
# the build tuple
sed -i -e "/--build/d" libraries/source/spidermonkey/build.sh || die
# Originally from 0ad-data
rm binaries/data/tools/fontbuilder/fonts/*.txt || die
}
src_configure() {
# 0AD uses premake:5 to generate the Makefiles, so let's
# 1. configure the configure args,
# 2. export some toolchain args,
# 3. configure premake args,
# 4. run premake5.
local myconf=(
--minimal-flags
$(usex nvtt "" "--without-nvtt")
$(usex pch "" "--without-pch")
$(usex test "" "--without-tests")
$(usex editor "--atlas" "")
$(usex lobby "" "--without-lobby")
--bindir="/usr/bin"
--libdir="/usr/$(get_libdir)"/${PN}
--datadir="/usr/share/${PN}"
)
tc-export AR CC CXX RANLIB
local mypremakeargs=(
--outpath="../workspace/gcc"
--os=linux
--verbose
)
cd "${S}/build/premake" || die "Could not enter premake directory"
/usr/bin/premake5 "${mypremakeargs[@]}" "${myconf[@]}" gmake2 \
|| die "Premake failed"
}
src_compile() {
# Build 3rd party fcollada
einfo "Building bundled fcollada"
emake -C libraries/source/fcollada/src
# Build bundled NVTT
# nvtt is abandoned upstream and 0ad has forked it and added fixes.
# Use their copy. bug #768930
if use nvtt ; then
cd libraries/source/nvtt || die
elog "Building bundled NVTT (bug #768930)"
JOBS="-j$(makeopts_jobs)" ./build.sh || die "Failed to build bundled NVTT"
cd "${S}" || die
fi
# Build bundled SpiderMonkey
# We really can't use the system SpiderMonkey right now.
# Breakages occur even on minor bumps in upstream SM,
# e.g. bug #768840.
cd libraries/source/spidermonkey || die
elog "Building bundled SpiderMonkey (bug #768840)"
XARGS="${EPREFIX}/usr/bin/xargs" \
JOBS="-j$(makeopts_jobs)" \
./build.sh \
|| die "Failed to build bundled SpiderMonkey"
cd "${S}" || die
# Build 0ad itself!
elog "Building 0ad"
JOBS="-j$(makeopts_jobs)" emake -C build/workspace/gcc verbose=1
# Build assets
# (We only do this if we're using a snapshot/non-release)
# See bug #771147 (comment 3) and the old 0ad-data ebuild
# Warning: fragile!
if [[ ${PV} == 9999 || ${PV} == *_pre* ]]; then
# source/lib/sysdep/os/linux/ldbg.cpp:debug_SetThreadName() tries to open /proc/self/task/${TID}/comm for writing.
addpredict /proc/self/task
# Based on source/tools/dist/build-archives.sh used by source/tools/dist/build.sh.
local archivebuild_input archivebuild_output mod_name
for archivebuild_input in binaries/data/mods/[A-Za-z0-9]*; do
mod_name="${archivebuild_input##*/}"
archivebuild_output="archives/${mod_name}"
mkdir -p "${archivebuild_output}" || die
einfo pyrogenesis -archivebuild="${archivebuild_input}" -archivebuild-output="${archivebuild_output}/${mod_name}.zip"
LD_LIBRARY_PATH="binaries/system" binaries/system/pyrogenesis \
-archivebuild="${archivebuild_input}" \
-archivebuild-output="${archivebuild_output}/${mod_name}.zip" \
|| die "Failed to build assets"
if [[ -f "${archivebuild_input}/mod.json" ]]; then
cp "${archivebuild_input}/mod.json" "${archivebuild_output}" || die
fi
rm -r "${archivebuild_input}" || die
mv "${archivebuild_output}" "${archivebuild_input}" || die
done
# Based on source/tools/dist/build-unix-win32.sh used by source/tools/dist/build.sh.
rm binaries/data/config/dev.cfg || die
rm -r binaries/data/mods/_test.* || die
fi
}
src_test() {
cd binaries/system || die
./test -libdir "${S}/binaries/system" || die "Failed tests"
}
src_install() {
newbin binaries/system/pyrogenesis 0ad
use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor
# Merged from 0ad-data
# bug #771147 (comment 3)
insinto /usr/share/${PN}
doins -r binaries/data/{l10n,config,mods,tools}
# Install bundled SpiderMonkey and nvtt
# bug #771147 (comment 1)
exeinto /usr/$(get_libdir)/${PN}
doexe binaries/system/{libCollada,libmozjs78-ps-release}.so
use nvtt && doexe binaries/system/{libnvtt,libnvcore,libnvimage,libnvmath}.so
use editor && doexe binaries/system/libAtlasUI.so
dodoc binaries/system/readme.txt
doicon -s 128 build/resources/${PN}.png
make_desktop_entry ${PN}
}

View file

@ -1,32 +0,0 @@
--- a/libraries/source/fcollada/src/Makefile
+++ b/libraries/source/fcollada/src/Makefile
@@ -7,6 +7,7 @@
PIC_FLAGS ?= -fpic
endif
+AR? ?= ar
CXX ?= g++
CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS)
CXXFLAGS_DEBUG := -D_DEBUG -DRETAIL
@@ -16,6 +17,7 @@
LIBS += `pkg-config libxml-2.0 --libs`
INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags`
INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES)
+RANLIB ?= ranlib
# FCollada is not aliasing-safe, so disallow dangerous optimisations
# (TODO: It'd be nice to fix FCollada, but that looks hard)
@@ -246,11 +248,11 @@
output/libFColladaSD.a: $(OBJECTS_DEBUG) | output_dirs
@echo "$@"
- @ar -cr $@ $(OBJECTS_DEBUG); ranlib $@
+ @$(AR) -cr $@ $(OBJECTS_DEBUG); $(RANLIB) $@
output/libFColladaSR.a: $(OBJECTS_RELEASE) | output_dirs
@echo "$@"
- @ar -cr $@ $(OBJECTS_RELEASE); ranlib $@
+ @$(AR) -cr $@ $(OBJECTS_RELEASE); $(RANLIB) $@
output/FColladaTest: $(OBJECTS_TEST) | output_dirs
$(CXX) -o $@ $(OBJECTS_TEST) $(LIBS) $(LDFLAGS_TEST)

View file

@ -1,46 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION=""
HOMEPAGE=""
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${PN}_${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~arm64"
RDEPEND="
acct-user/facette
net-libs/nodejs
dev-lang/go
"
src_unpack() {
mkdir "${P}"
cd "${P}"
unpack "${A}"
}
src_install() {
insinto /usr/share/${PN}
doins -r assets data node_modules server package.json
insinto /etc/${PN}
mv config.sample.yml config.yml.example
doins config.yml.example
dosym /etc/${PN}/config.yml /usr/share/${PN}/config.yml
systemd_dounit ${FILESDIR}/${PN}.service
}
pkg_postinst() {
elog "Before enabling ${PN}.service, create a configuration file:"
elog "# cp /etc/${PN}/config.yml.example /etc/${PN}/config.yml"
elog "and edit its contents to match your needs."
}

View file

@ -1,27 +0,0 @@
# Config file for /etc/init.d/grafana
# The user to run your application as
#GRAFANA_USER=grafana
# The group to run your application as
#GRAFANA_GROUP=grafana
# Configuration file
#GRAFANA_CONFIGFILE="/etc/grafana/${RC_SVCNAME}.ini"
# PID file
#GRAFANA_PIDFILE="/run/${RC_SVCNAME}.pid"
# The grafana datadir
#GRAFANA_DATADIR=/var/lib/grafana
# You can use this configuration option to pass additional options to the
# start-stop-daemon, see start-stop-daemon(8) for more details.
# Per default we wait 1000ms after we have started the service to ensure
# that the daemon is really up and running.
#GRAFANA_SSDARGS="--wait 1000"
# The termination timeout (start-stop-daemon parameter "retry") ensures
# that the service will be terminated within a given time (60 + 5 seconds
# per default) when you are stopping the service.
#GRAFANA_TERMTIMEOUT="TERM/60/KILL/5"

View file

@ -1,7 +0,0 @@
# Config file for /etc/init.d/grafana
# The user to run your application as.
GRAFANA_USER=grafana
# The group to run your application as.
GRAFANA_GROUP=grafana

View file

@ -1,36 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
GRAFANA_USER="${GRAFANA_USER:-"grafana"}"
GRAFANA_GROUP="${GRAFANA_GROUP:-"grafana"}"
GRAFANA_CONFIGFILE="${GRAFANA_CONFIGFILE:-"/etc/grafana/${RC_SVCNAME}.ini"}"
GRAFANA_DATADIR="${GRAFANA_DATADIR:-"/var/lib/grafana"}"
GRAFANA_LOGDIR="${GRAFANA_LOGDIR:-"/var/log/grafana"}"
GRAFANA_PIDFILE="${GRAFANA_PIDFILE:-"/run/${RC_SVCNAME}.pid"}"
GRAFANA_SSDARGS=${GRAFANA_SSDARGS:-"--wait 1000"}
GRAFANA_TERMTIMEOUT=${GRFANA_TERMTIMEOUT:-"TERM/60/KILL/5"}
command="/usr/bin/grafana-server"
command_args="-homepath=/usr/share/grafana"
command_args="${command_args} -config=\"${GRAFANA_CONFIGFILE}\""
command_args="${command_args} cfg:default.paths.data=\"${GRAFANA_DATADIR}\""
command_args="${command_args} cfg:default.paths.logs=\"${GRAFANA_LOGDIR}\""
command_background="yes"
pidfile="${GRAFANA_PIDFILE}"
retry="${GRAFANA_TERMTIMEOUT}"
start_stop_daemon_args="--user ${GRAFANA_USER}:${GRAFANA_GROUP} ${GRAFANA_SSDARGS}"
description="Grafana server, feature rich metrics dashboard and graph editor."
required_files="${GRAFANA_CONFIGFILE}"
depend() {
need localmount
}
start_pre() {
checkpath -d -o "${GRAFANA_USER}:${GRAFANA_GROUP}" -m750 "${GRAFANA_DATADIR}" || return 1
checkpath -d -o "${GRAFANA_USER}:${GRAFANA_GROUP}" -m750 "${GRAFANA_DATADIR}/dashboards" || return 1
checkpath -d -o "${GRAFANA_USER}:${GRAFANA_GROUP}" -m750 "${GRAFANA_DATADIR}/plugins" || return 1
}

View file

@ -1,38 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need localmount
}
start() {
ebegin "Starting grafana server"
checkpath -d -o "${GRAFANA_USER}:${GRAFANA_GROUP}" -m750 "/var/lib/grafana/dashboards"
checkpath -d -o "${GRAFANA_USER}:${GRAFANA_GROUP}" -m750 "/var/lib/grafana/plugins"
checkpath -d -o "${GRAFANA_USER}:${GRAFANA_GROUP}" -m750 "/var/lib/grafana/sessions"
start-stop-daemon --start -b \
--make-pidfile \
--pidfile /run/grafana.pid \
--chdir /usr/share/grafana \
--user ${GRAFANA_USER}:${GRAFANA_GROUP} \
--exec /usr/bin/grafana-server -- \
-config=/etc/grafana/grafana.ini \
cfg:default.paths.data=/var/lib/grafana \
cfg:default.paths.logs=/var/log/grafana
eend $?
}
stop() {
ebegin "Stopping grafana server"
start-stop-daemon --stop \
--pidfile /run/grafana.pid \
--user "${GRAFANA_USER}" \
--retry=TERM/20/KILL/5
eend $?
}

View file

@ -1,25 +0,0 @@
[Unit]
Description=Grafana
Documentation=http://docs.grafana.org
Wants=network-online.target
After=network-online.target
[Service]
User=grafana
Group=grafana
Type=simple
Restart=on-failure
RuntimeDirectory=grafana
WorkingDirectory=/usr/share/grafana
ExecStart=/usr/bin/grafana-server \
--config=/etc/grafana/grafana.ini \
--pidfile=/run/grafana/grafana.pid \
cfg:default.paths.logs=/var/log/grafana \
cfg:default.paths.data=/var/lib/grafana \
cfg:default.paths.plugins=/var/lib/grafana/plugins
LimitNOFILE=10000
TimeoutStopSec=20
UMask=0027
[Install]
WantedBy=multi-user.target

View file

@ -1,63 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
MY_PN=${PN/-bin/}
MY_PV=${PV/_beta/-beta}
S=${WORKDIR}/${MY_PN}-${MY_PV}
DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB"
HOMEPAGE="https://grafana.org"
SRC_URI="https://dl.grafana.com/oss/release/grafana-${PV}.linux-${ARCH}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
DEPEND="acct-group/grafana
acct-user/grafana"
RDEPEND="${DEPEND}
media-libs/fontconfig"
QA_PREBUILT="usr/bin/grafana-*"
QA_PRESTRIPPED=${QA_PREBUILT}
src_install() {
keepdir /etc/grafana
insinto /etc/grafana
newins "${S}"/conf/sample.ini grafana.ini
rm "${S}"/conf/sample.ini || die
# Frontend assets
insinto /usr/share/${MY_PN}
doins -r public conf
dobin bin/grafana-cli
dobin bin/grafana-server
newconfd "${FILESDIR}"/grafana-r1.confd grafana
newinitd "${FILESDIR}"/grafana.initd grafana
systemd_newunit "${FILESDIR}"/grafana.service grafana.service
keepdir /var/{lib,log}/grafana
keepdir /var/lib/grafana/{dashboards,plugins}
fowners grafana:grafana /var/{lib,log}/grafana
fowners grafana:grafana /var/lib/grafana/{dashboards,plugins}
fperms 0750 /var/{lib,log}/grafana
fperms 0750 /var/lib/grafana/{dashboards,plugins}
}
postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
# This is a new installation
elog "${PN} has built-in log rotation. Please see [log.file] section of"
elog "/etc/grafana/grafana.ini for related settings."
elog
elog "You may add your own custom configuration for app-admin/logrotate if you"
elog "wish to use external rotation of logs. In this case, you also need to make"
elog "sure the built-in rotation is turned off."
fi
}