mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/mwlib: Remove last-rited pkg
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST mwlib-0.15.15.tar.gz 1705073 SHA256 06ce351df76fb4605913cda6c9702f8e5ea99147921921c2f8462c60791e4946 SHA512 e1c04c0cd86b8fd31f54033387426dcad343d4b5ef03f2f51b3689c0894f2cfa85c9246401f713836d76435c42c380ecf94c3000b4f38d1f1b2789780d93c5ca WHIRLPOOL b854d06f8b5450b519d0aa6e9232b8480839ecf867d111fc9f189e9c70fd7b857152cd40548132a1ac8fd3313c0ab5c79e244f4434ab752ac0ea4cc56bee5d53
|
||||
@@ -1,14 +0,0 @@
|
||||
# The port to listen to
|
||||
MW_QSERVE_PORT=14311
|
||||
|
||||
# The interface to listen to (for example: 127.0.0.1)
|
||||
MW_QSERVE_INTERFACE="127.0.0.1"
|
||||
|
||||
# The user running the mw-qserve service, defaults to 'mwlib'
|
||||
# MW_QSERVE_USER="mwlib"
|
||||
|
||||
# The group running the mq-qserve service, defaults to 'mwlib'
|
||||
# MW_QSERVE_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
MW_QSERVE_LOGFILE="/var/log/mwlib/mw-qserve.log"
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="mw-qserve is a job queue server used to distribute and manage jobs"
|
||||
|
||||
command="/usr/bin/mw-qserve"
|
||||
command_args="--interface=${MW_QSERVE_INTERFACE} --port=${MW_QSERVE_PORT}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${MW_QSERVE_USER:-mwlib} \
|
||||
--group ${MW_QSERVE_GROUP:-mwlib} \
|
||||
${MW_QSERVE_LOGFILE:+--stderr ${MW_QSERVE_LOGFILE}} \
|
||||
${MW_QSERVE_LOGFILE:+--stdout ${MW_QSERVE_LOGFILE}}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/var/log/mwlib/mw-qserve.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/mw-qserve restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
# purge mw-serve cache directory
|
||||
# --cache-dir=DIR: the NSLAVE_CACHEDIR directory specified in /etc/conf.d/nslave
|
||||
# --purge-cache=HOURS: remove cache files that have not been touched for at east HOURS hours
|
||||
00 23 * * * sudo -u mwlib mw-serve-ctl --cache-dir=/var/cache/mwlib --purge-cache=24
|
||||
@@ -1,20 +0,0 @@
|
||||
# The port on which the mw-qserve service is listening
|
||||
MW_QSERVE_PORT=14311
|
||||
|
||||
# The interface on which the mw-qserve is listening (for example: 127.0.0.1)
|
||||
MW_QSERVE_INTERFACE="127.0.0.1"
|
||||
|
||||
# The port to listen to
|
||||
NSERVE_PORT=8899
|
||||
|
||||
# The interface to listen to (for example: 127.0.0.1)
|
||||
NSERVE_INTERFACE="127.0.0.1"
|
||||
|
||||
# The user running the nserve service, defaults to 'mwlib'
|
||||
# NSERVE_USER="mwlib"
|
||||
|
||||
# The group running the nserve service, defaults to 'mwlib'
|
||||
# NSERVE_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
NSERVE_LOGFILE="/var/log/mwlib/nserve.log"
|
||||
@@ -1,23 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="nserve is a HTTP server which distributes received jobs to a mw-qserve instance"
|
||||
|
||||
command="/usr/bin/nserve"
|
||||
command_args="--port=${NSERVE_PORT} \
|
||||
--interface=${NSERVE_INTERFACE} \
|
||||
--qserve=${MW_QSERVE_INTERFACE}:${MW_QSERVE_PORT}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${NSERVE_USER:-mwlib} \
|
||||
--group ${NSERVE_GROUP:-mwlib} \
|
||||
${NSERVE_LOGFILE:+--stderr ${NSERVE_LOGFILE}} \
|
||||
${NSERVE_LOGFILE:+--stdout ${NSERVE_LOGFILE}}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
use mw-qserve
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/var/log/mwlib/nserve.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/nserve restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
# The address to serve the rendered files to the wiki
|
||||
NSLAVE_ADDRESS="localhost"
|
||||
|
||||
# The port to serve the rendered files to the wiki
|
||||
NSLAVE_PORT=8898
|
||||
|
||||
# The url to serve the rendered files to the wiki
|
||||
NSLAVE_URL="http://${NSLAVE_ADDRESS}:${NSLAVE_PORT}/cache"
|
||||
|
||||
# The directory to save the rendered PDFs to
|
||||
NSLAVE_CACHEDIR="/var/cache/mwlib/"
|
||||
|
||||
# The umask to create files in NSLAVE_CACHEDIR
|
||||
NSLAVE_UMASK=027
|
||||
|
||||
# How many greenlets are allowed to run in parallel
|
||||
NSLAVE_NUMPROCS=10
|
||||
|
||||
# The user running the nserve service, defaults to 'mwlib'
|
||||
# NSLAVE_USER="mwlib"
|
||||
|
||||
# The group running the nserve service, defaults to 'mwlib'
|
||||
# NSLAVE_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
NSLAVE_LOGFILE="/var/log/mwlib/nslave.log"
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="nslave pulls new jobs from a mw-qserve instance"
|
||||
|
||||
command="/usr/bin/nslave"
|
||||
command_args="--cachedir=${NSLAVE_CACHEDIR} \
|
||||
--serve-files-address=${NSLAVE_ADDRESS} \
|
||||
--serve-files-port=${NSLAVE_PORT} \
|
||||
--url=${NSLAVE_URL} \
|
||||
--numprocs=${NSLAVE_NUMPROCS}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${NSLAVE_USER:-mwlib} \
|
||||
--group ${NSLAVE_GROUP:-mwlib} \
|
||||
${NSLAVE_LOGFILE:+--stderr ${NSLAVE_LOGFILE}} \
|
||||
${NSLAVE_LOGFILE:+--stdout ${NSLAVE_LOGFILE}} \
|
||||
--umask ${NSLAVE_UMASK}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
use mw-qserve
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/var/log/mwlib/nslave.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/nslave restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
# The cache-directory to which the collections are saved, make sure you enter
|
||||
# the same directory as in /etc/conf.d/nslave
|
||||
POSTMAN_CACHEDIR="/var/cache/mwlib/"
|
||||
|
||||
# The user running the postman service, defaults to 'mwlib'
|
||||
# POSTMAN_USER="mwlib"
|
||||
|
||||
# The group running the postman service, defaults to 'mwlib'
|
||||
# POSTMAN_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
POSTMAN_LOGFILE="/var/log/mwlib/postman.log"
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="postman uploads zip collections to pediapress in case someone likes to order printed books"
|
||||
|
||||
command="/usr/bin/postman"
|
||||
command_args="--cachedir=${POSTMAN_CACHEDIR}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${POSTMAN_USER:-mwlib} \
|
||||
--group ${POSTMAN_GROUP:-mwlib} \
|
||||
${POSTMAN_LOGFILE:+--stderr ${POSTMAN_LOGFILE}} \
|
||||
${POSTMAN_LOGFILE:+--stdout ${POSTMAN_LOGFILE}}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/var/log/mwlib/postman.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/postman restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">mwlib</remote-id>
|
||||
<remote-id type="github">pediapress/mwlib</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="server">Install the daemons required when using mwlib for generating PDFs on a MediaWiki instance.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,131 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 user
|
||||
|
||||
DESCRIPTION="Tools for parsing Mediawiki content to other formats"
|
||||
HOMEPAGE="http://code.pediapress.com/code/ https://pypi.python.org/pypi/mwlib https://github.com/pediapress/mwlib/"
|
||||
SRC_URI="https://github.com/pediapress/mwlib/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc server test"
|
||||
|
||||
RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
|
||||
>=dev-python/odfpy-0.9[${PYTHON_USEDEP}]
|
||||
<dev-python/odfpy-0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyPdf-1.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyparsing-1.5.5[${PYTHON_USEDEP}]
|
||||
<dev-python/pyparsing-1.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/timelib-0.2[${PYTHON_USEDEP}]
|
||||
virtual/latex-base
|
||||
>=dev-python/simplejson-2.3[${PYTHON_USEDEP}]
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
>=dev-python/bottle-0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/apipkg-1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/qserve-0.2.7[${PYTHON_USEDEP}]
|
||||
dev-python/roman[${PYTHON_USEDEP}]
|
||||
>=dev-python/py-1.4[${PYTHON_USEDEP}]
|
||||
dev-python/sqlite3dbm[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
server? ( app-admin/sudo )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
app-arch/unzip
|
||||
dev-util/re2c
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( >=dev-python/wsgiintercept-0.6[${PYTHON_USEDEP}] )"
|
||||
|
||||
# TODO: requires ploticus to generate timelines
|
||||
|
||||
DOCS=(changelog.rst)
|
||||
|
||||
pkg_setup() {
|
||||
if use server ; then
|
||||
enewgroup mwlib
|
||||
enewuser mwlib -1 -1 -1 mwlib
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# mwlib.apipkg is actually used.
|
||||
sed -e 's/, "apipkg"//' -i setup.py || die
|
||||
|
||||
# Execute odflint script.
|
||||
sed \
|
||||
-e "/def _get_odflint_module():/,/odflint = _get_odflint_module()/d" \
|
||||
-e "s/odflint.lint(path)/os.system('odflint %s' % path)/" \
|
||||
-i tests/test_odfwriter.py || die
|
||||
|
||||
# Disable test which requires installed mw-zip or mw-render script
|
||||
# which don't get generated in distutils_install_for_testing for some reason
|
||||
rm -f tests/test_{nuwiki,redirect,render,zipwiki}.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2* ]] ; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
PATH="${TEST_DIR}/scripts:${PATH}" py.test || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use server ; then
|
||||
keepdir /var/log/mwlib
|
||||
keepdir /var/cache/mwlib
|
||||
|
||||
fowners mwlib:mwlib /var/log/mwlib /var/cache/mwlib
|
||||
fperms 0750 /var/log/mwlib /var/cache/mwlib
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
for d in mw-qserve nserve ; do
|
||||
newins "${FILESDIR}/${d}.logrotate" "${d}"
|
||||
newinitd "${FILESDIR}/${d}.initd" "${d}"
|
||||
newconfd "${FILESDIR}/${d}.confd" "${d}"
|
||||
done
|
||||
|
||||
newins "${FILESDIR}/nslave.logrotate" "nslave"
|
||||
newinitd "${FILESDIR}/nslave.initd-r1" "nslave"
|
||||
newconfd "${FILESDIR}/nslave.confd-r1" "nslave"
|
||||
|
||||
newins "${FILESDIR}/postman.logrotate" "postman"
|
||||
newinitd "${FILESDIR}/postman.initd-r1" "postman"
|
||||
newconfd "${FILESDIR}/postman.confd" "postman"
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins "${FILESDIR}/mwlib-purge-cache.cron-r1" "mwlib-purge-cache"
|
||||
else
|
||||
rm "${D}"/usr/bin/{mw-qserve,nserve,nslave,postman}* || die "removing binaries failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Please enable required image formats for dev-python/pillow"
|
||||
if use server ; then
|
||||
elog "A cronjob to cleanup the cache files got installed to"
|
||||
elog " /etc/cron.d/mwlib-purge-cache"
|
||||
elog "Default parameters are to clean every 24h, adjust it to your needs."
|
||||
fi
|
||||
}
|
||||
@@ -399,11 +399,6 @@ dev-libs/xxl
|
||||
# [5] https://bugs.gentoo.org/show_bug.cgi?id=596832
|
||||
app-crypt/cryptkeeper
|
||||
|
||||
# Mike Gilbert <floppym@gentoo.org> (31 Jan 2017)
|
||||
# Depends on old version of dev-python/pyparsing.
|
||||
# Removal in 30 days.
|
||||
dev-python/mwlib
|
||||
|
||||
# Bernard Cafarelli <voyageur@gentoo.org> (30 Jan 2017)
|
||||
# Alpha release with new features, masked for testing
|
||||
=app-text/tesseract-4.00.00_alpha*
|
||||
|
||||
Reference in New Issue
Block a user