Various updates and additions
This commit is contained in:
parent
1d13f81020
commit
a0fdce9f18
196
app-misc/lcdproc/lcdproc-0.5.9.ebuild
Normal file
196
app-misc/lcdproc/lcdproc-0.5.9.ebuild
Normal file
@ -0,0 +1,196 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit multilib versionator systemd
|
||||
|
||||
DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
|
||||
HOMEPAGE="http://lcdproc.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="debug doc ftdi hid irman joystick lirc nfs png samba systemd truetype usb"
|
||||
|
||||
# The following array holds the USE_EXPANDed keywords
|
||||
IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontzpacket
|
||||
cwlinux eyeboxone g15 graphlcd glk
|
||||
hd44780 icpa106 imon imonlcd iowarrior
|
||||
lb216 lcdm001 lcterm
|
||||
md8800 mdm166a ms6931 mtcs16209x mtxorb noritakevfd
|
||||
pyramid sdeclcd sed1330 sed1520 serialvfd sli
|
||||
stv5730 SureElec svga t6963 text tyan
|
||||
ula200 vlsys_m428 xosd ea65 picolcd serialpos
|
||||
i2500vfd irtrans lis shuttlevfd )
|
||||
|
||||
# Iterate through the array and add the lcd_devices_* that we support
|
||||
NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
|
||||
index=0
|
||||
while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
|
||||
IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[${index}]}"
|
||||
let "index = ${index} + 1"
|
||||
done
|
||||
|
||||
REQUIRED_USE="lcd_devices_mdm166a? ( hid )"
|
||||
|
||||
RDEPEND="
|
||||
ftdi? ( dev-embedded/libftdi:0 )
|
||||
hid? ( >=dev-libs/libhid-0.2.16 )
|
||||
irman? ( media-libs/libirman )
|
||||
lirc? ( app-misc/lirc )
|
||||
png? ( media-libs/libpng:0 )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
usb? ( virtual/libusb:0 )
|
||||
|
||||
lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver dev-libs/serdisplib )
|
||||
lcd_devices_g15? ( dev-libs/libg15 dev-libs/libg15render )
|
||||
lcd_devices_ncurses? ( sys-libs/ncurses:= )
|
||||
lcd_devices_svga? ( media-libs/svgalib )
|
||||
lcd_devices_ula200? ( dev-embedded/libftdi:0 )
|
||||
lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext )
|
||||
lcd_devices_cfontzpacket? ( virtual/libusb:0 )
|
||||
lcd_devices_cwlinux? ( virtual/libusb:0 )
|
||||
lcd_devices_pyramid? ( virtual/libusb:0 )
|
||||
lcd_devices_picolcd? ( virtual/libusb:0 )
|
||||
lcd_devices_i2500vfd? ( dev-embedded/libftdi:0 )
|
||||
lcd_devices_lis? ( dev-embedded/libftdi:0 virtual/libusb:0 )
|
||||
lcd_devices_shuttlevfd? ( virtual/libusb:0 )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-text/xmlto
|
||||
app-text/docbook-xml-dtd:4.5 )"
|
||||
RDEPEND="${RDEPEND}
|
||||
lcd_devices_g15? ( app-misc/g15daemon )"
|
||||
|
||||
pkg_setup() {
|
||||
if [ -n "${LCDPROC_DRIVERS}" ] ; then
|
||||
ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore."
|
||||
ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i "37s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf || die
|
||||
einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/"
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# This array contains the driver names required by configure --with-drivers=
|
||||
# The positions must be the same as the corresponding use_expand flags
|
||||
local DEVICE_DRIVERS=(curses bayrad CFontz CFontzPacket
|
||||
CwLnx EyeboxOne g15 glcd,glcdlib glk
|
||||
hd44780 icp_a106 imon imonlcd IOWarrior
|
||||
lb216 lcdm001 lcterm
|
||||
MD8800 mdm166a ms6931 mtc_s16209x MtxOrb NoritakeVFD
|
||||
pyramid sdeclcd sed1330 sed1520 serialVFD sli
|
||||
stv5730 SureElec svga t6963 text tyan
|
||||
ula200 vlsys_m428 xosd ea65 picolcd serialPOS
|
||||
i2500vfd irtrans lis shuttleVFD )
|
||||
|
||||
# Generate comma separated list of drivers
|
||||
COMMA_DRIVERS=""
|
||||
FIRST_DRIVER=""
|
||||
local index=0
|
||||
|
||||
while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
|
||||
if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then
|
||||
append-driver "${DEVICE_DRIVERS[${index}]}"
|
||||
fi
|
||||
let "index = ${index} + 1"
|
||||
done
|
||||
|
||||
# Append the not-lcd-drivers (input)
|
||||
use lirc && append-driver "lirc"
|
||||
use irman && append-driver "irman"
|
||||
use joystick && append-driver "joy"
|
||||
|
||||
if [ -z "${COMMA_DRIVERS}" ] ; then
|
||||
ewarn "You are compiling LCDd without support for any LCD drivers at all."
|
||||
else
|
||||
# Patch the config to contain a driver that is actually installed instead of the default
|
||||
elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}"
|
||||
elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf"
|
||||
sed -i "53s:curses:${FIRST_DRIVER}:" LCDd.conf || die
|
||||
fi
|
||||
|
||||
local EXTRA_CONF
|
||||
if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid || \
|
||||
use lcd_devices_picolcd || use lcd_devices_lis || use lcd_devices_shuttlevfd ; then
|
||||
EXTRA_CONF="--enable-libusb"
|
||||
else
|
||||
EXTRA_CONF="$(use_enable usb libusb)"
|
||||
fi
|
||||
|
||||
if use lcd_devices_ula200 || use lcd_devices_i2500vfd || use lcd_devices_lis ; then
|
||||
EXTRA_CONF="${EXTRA_CONF} --enable-libftdi"
|
||||
else
|
||||
EXTRA_CONF="${EXTRA_CONF} $(use_enable ftdi libftdi)"
|
||||
fi
|
||||
|
||||
econf --enable-extra-charmaps \
|
||||
$(use_enable debug) \
|
||||
$(use_enable nfs stat-nfs) \
|
||||
$(use_enable png libpng) \
|
||||
$(use_enable samba stat-smbfs ) \
|
||||
$(use_enable truetype freetype) \
|
||||
${EXTRA_CONF} \
|
||||
"--enable-drivers=${COMMA_DRIVERS}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
ebegin "Creating user documentation"
|
||||
cd "${S}"/docs/lcdproc-user
|
||||
xmlto html --skip-validation lcdproc-user.docbook
|
||||
eend $?
|
||||
|
||||
ebegin "Creating dev documentation"
|
||||
cd "${S}"/docs/lcdproc-dev
|
||||
xmlto html --skip-validation lcdproc-dev.docbook
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
append-driver() {
|
||||
[[ -z $* ]] && return 0
|
||||
if [ -z "${COMMA_DRIVERS}" ] ; then
|
||||
# First in the list
|
||||
COMMA_DRIVERS="$*"
|
||||
FIRST_DRIVER="$*"
|
||||
else
|
||||
# Second, third, ... include a comma at the front
|
||||
COMMA_DRIVERS="${COMMA_DRIVERS},$*"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# move example clients installed to /usr/bin
|
||||
rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl
|
||||
insinto /usr/share/lcdproc/clients
|
||||
doins clients/examples/*.pl
|
||||
doins clients/metar/*.pl
|
||||
|
||||
newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd
|
||||
newinitd "${FILESDIR}/0.5.2-r2-lcdproc.initd" lcdproc
|
||||
|
||||
if use systemd; then
|
||||
systemd_dounit "${FILESDIR}"/LCDd.service
|
||||
systemd_dounit "${FILESDIR}"/lcdproc.service
|
||||
fi
|
||||
|
||||
dodoc CREDITS.md TODO
|
||||
|
||||
if use doc; then
|
||||
insinto /usr/share/doc/${PF}/lcdproc-user
|
||||
doins docs/lcdproc-user/*.html
|
||||
insinto /usr/share/doc/${PF}/lcdproc-dev
|
||||
doins docs/lcdproc-dev/*.html
|
||||
fi
|
||||
}
|
2
dev-db/pgadmin4/Manifest
Normal file
2
dev-db/pgadmin4/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST pgadmin4-3.0.tar.gz 28915010 BLAKE2B 7e6dccd91f082f7b5514f5d3abdf4653a9961b4efc706e10ce58d817785d514508233e25068762fe0e4bca4c1a3cf10a2515afa38e6f9ba3c99b4af3fa32f3d2 SHA512 5921340176e6748ef13112d906061f195d4bb2f73917d762371bbaeb44ef66cf8e0edcd1cd241eb78dae46ed0b3af014c749468a930fb0c0983b38b2c54dfc3a
|
||||
EBUILD pgadmin4-3.0.ebuild 3485 BLAKE2B ab5d5fe5a325d0d6cfdc3c9d8c6f87d3f4abc9c638f18251d0dfc031b9600fba8b66d087e729b1c83e742cce8713f6047ca74f70dc7f5363f7619aa436762676 SHA512 ca243a82ffcf510fb305310757d8d436a5ab0df3eb8362edf5b6fce9f4e4672f87c90ffdbe7143e2ff0b3aa09ddc6932f8a4b6e134437240366ccc73103507ef
|
123
dev-db/pgadmin4/pgadmin4-3.0.ebuild
Normal file
123
dev-db/pgadmin4/pgadmin4-3.0.ebuild
Normal file
@ -0,0 +1,123 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit python-single-r1 qmake-utils
|
||||
|
||||
DESCRIPTION="GUI administration and development platform for PostgreSQL"
|
||||
HOMEPAGE="https://www.pgadmin.org/"
|
||||
SRC_URI="mirror://postgresql/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="POSTGRESQL"
|
||||
KEYWORDS="amd64 x86"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtwebkit:5
|
||||
dev-qt/qtwebengine:5[widgets]
|
||||
"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/beautifulsoup-4.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/blinker-1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-6.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/extras-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-0.12.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-babel-0.11.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-gravatar-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-htmlmin-1.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-login-0.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-migrate-2.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-paranoid-0.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-security-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/itsdangerous-0.24[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.7.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/linecache2-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/markupsafe-0.23[${PYTHON_USEDEP}]
|
||||
>=dev-python/mimeparse-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/passlib-1.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-3.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2.7.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycryptodome-3.4.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyrsistent-0.14.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-sqlparse-0.2.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2018.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/simplejson-3.13.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.11.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/speaklater-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.2.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/werkzeug-0.9.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/wtforms-2.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S="${WORKDIR}"/${P}/runtime
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}"/${P} || die
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use doc; then
|
||||
cd "${WORKDIR}"/${P} || die
|
||||
emake docs
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin pgAdmin4
|
||||
|
||||
cd "${WORKDIR}"/${P} || die
|
||||
|
||||
local APP_DIR=/usr/share/${PN}/web
|
||||
insinto "${APP_DIR}"
|
||||
doins -r web/*
|
||||
cat > "${D}${APP_DIR}"/config_local.py <<-EOF
|
||||
SERVER_MODE = False
|
||||
UPGRADE_CHECK_ENABLED = False
|
||||
EOF
|
||||
python_optimize "${D}${APP_DIR}"
|
||||
|
||||
local CONFIG_DIR="/etc/xdg/pgadmin"
|
||||
dodir "${CONFIG_DIR}"
|
||||
cat > "${D}${CONFIG_DIR}"/pgadmin4.conf <<-EOF
|
||||
[General]
|
||||
ApplicationPath=${APP_DIR}
|
||||
PythonPath=$(python_get_sitedir)
|
||||
EOF
|
||||
|
||||
if use doc; then
|
||||
rm -r docs/en_US/_build/html/_sources || die
|
||||
insinto /usr/share/${PN}/docs/en_US/_build
|
||||
doins -r docs/en_US/_build/html
|
||||
fi
|
||||
}
|
3
dev-python/flask-security/Manifest
Normal file
3
dev-python/flask-security/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST Flask-Security-3.0.0.tar.gz 160367 BLAKE2B c2e1449dc2807c2c40519fa3afb894157e17ecc9ff3f6dcf5ef0d02839a5988f827afd26c1d31af86d5e240e0ea8bfb8ed86354bb6a83535436b08721cac8f26 SHA512 09b94f0850372513add5c054c07aa465ecb95e8d1c414647e3ebee571ec08c94a29f0c138d092c02a55e242c422bc53f929ca066d671c082dcb29834ac753984
|
||||
EBUILD flask-security-3.0.0.ebuild 1382 BLAKE2B fe05660f00e6b25547661792951278b5bd3a6e9a15742674a4684caf853f8dcad4a31b009880e2dea8e9f97a68f56121b0d57bf1935ab197d058f43819df2001 SHA512 5cb6470b5dc376236a62652ed7695fb327362a8607ce9182e1c50e196f2ee34f30348eec497dd36688e4abb6f9ff575eb2456ddaa8e8fc79a468f3ebc8817282
|
||||
MISC metadata.xml 317 BLAKE2B 4889668ab37b857d0e46000d1663eb953b8f54b20e9ea16979d9db73b6d96b3fa8317bbb5cb10d9e4b4cf0268b966531e33b1bc4a9ab9758768120466999e9cd SHA512 4e5d572e3b4c865bd75763af3bf90a1aeae9a74865ed3da3aa8d00956158cf842a7fb8f2ec837bd53fda5e2a3266777c41bc109d64f31fe75a5d219f1dba1ed2
|
46
dev-python/flask-security/flask-security-3.0.0.ebuild
Normal file
46
dev-python/flask-security/flask-security-3.0.0.ebuild
Normal file
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="Flask-Security"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Simple security for Flask apps"
|
||||
HOMEPAGE="http://pythonhosted.org/Flask-Security/ https://pypi.python.org/pypi/Flask-Security"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="test"
|
||||
# tests are foobar
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=dev-python/flask-0.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}]
|
||||
>=dev-python/passlib-1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-login-0.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-mail-0.7.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-wtf-0.13.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-principal-0.3.3[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/flask-mongoengine[${PYTHON_USEDEP}]
|
||||
dev-python/bcrypt[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/flask-peewee[${PYTHON_USEDEP}]' 'python2*')
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_test() {
|
||||
nosetests -v || die "Testing failed with ${EPYTHON}"
|
||||
}
|
11
dev-python/flask-security/metadata.xml
Normal file
11
dev-python/flask-security/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?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">Flask-Security</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
77
dev-python/sqlalchemy/sqlalchemy-1.2.6.ebuild
Normal file
77
dev-python/sqlalchemy/sqlalchemy-1.2.6.ebuild
Normal file
@ -0,0 +1,77 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 eutils flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||
IUSE="doc examples +sqlite test"
|
||||
|
||||
REQUIRED_USE="test? ( sqlite )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
<dev-python/pluggy-0.7s[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -r test/aaa_profiling || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create copies of necessary files in BUILD_DIR.
|
||||
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
|
||||
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3 --no-diffs -w test || die
|
||||
fi
|
||||
# Recently upstream elected to make the testsuite also pytest capable
|
||||
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
|
||||
py.test --verbose test || die "Testsuite failed under ${EPYTHON}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/. )
|
||||
use examples && dodoc -r examples
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python
|
||||
optfeature "mssql support" dev-python/pymssql
|
||||
optfeature "postgresql support" dev-python/psycopg:2
|
||||
}
|
110
net-misc/flexget/flexget-2.13.15.ebuild
Normal file
110
net-misc/flexget/flexget-2.13.15.ebuild
Normal file
@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 eutils systemd user
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_P="FlexGet-${PV}"
|
||||
SRC_URI="mirror://pypi/F/FlexGet/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/Flexget/Flexget.git
|
||||
https://github.com/Flexget/Flexget.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Multipurpose automation tool for content like torrents, nzbs, podcasts, comics"
|
||||
HOMEPAGE="http://flexget.com/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="systemd test transmission"
|
||||
|
||||
RESTRICT="nomirror"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
=dev-python/APScheduler-3.5.0[${PYTHON_USEDEP}]
|
||||
=dev-python/beautifulsoup-4.6.0:4[${PYTHON_USEDEP}]
|
||||
>=dev-python/cherrypy-10.2.2[${PYTHON_USEDEP}]
|
||||
=dev-python/colorclass-2.2.0[${PYTHON_USEDEP}]
|
||||
=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-0.12.2[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-compress-1.4.0[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-cors-3.0.2[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-login-0.4.0[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-restful-0.3.6[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-restplus-0.10.1[${PYTHON_USEDEP}]
|
||||
=dev-python/future-0.16.0[${PYTHON_USEDEP}]
|
||||
=dev-python/guessit-2.1.4[${PYTHON_USEDEP}]
|
||||
=dev-python/html5lib-0.999999999[${PYTHON_USEDEP}]
|
||||
=dev-python/jinja-2.9.6[${PYTHON_USEDEP}]
|
||||
=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
|
||||
=dev-python/path-py-10.3.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pathlib-1.0.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pynzb-0.1.0[${PYTHON_USEDEP}]
|
||||
=dev-python/pyparsing-2.2.0[${PYTHON_USEDEP}]
|
||||
=dev-python/PyRSS2Gen-1.1[${PYTHON_USEDEP}]
|
||||
=dev-python/python-dateutil-2.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2017.2[${PYTHON_USEDEP}]
|
||||
=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
|
||||
=dev-python/rebulk-0.9.0[${PYTHON_USEDEP}]
|
||||
=dev-python/requests-2.16.5[${PYTHON_USEDEP}]
|
||||
=dev-python/rpyc-3.3.0[${PYTHON_USEDEP}]
|
||||
=dev-python/sqlalchemy-1.2.6[${PYTHON_USEDEP}]
|
||||
=dev-python/tempora-1.8[${PYTHON_USEDEP}]
|
||||
=dev-python/terminaltables-3.1.0[${PYTHON_USEDEP}]
|
||||
=dev-python/tzlocal-1.4[${PYTHON_USEDEP}]
|
||||
=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
|
||||
=dev-python/zxcvbn-python-4.4.15[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
transmission? ( dev-python/transmissionrpc[${PYTHON_USEDEP}] )
|
||||
"
|
||||
DEPEND+=" test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" dev-python/paver[${PYTHON_USEDEP}]"
|
||||
else
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
python_test() {
|
||||
cp -lr tests setup.cfg "${BUILD_DIR}" || die
|
||||
run_in_build_dir nosetests -v --attr=!online > "${T}/tests-${EPYTHON}.log" \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
sed -i -e "s/^chardet==3.0.3/chardet==3.0.4/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^cheroot==5.5.0/cheroot==6.0.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^cherrypy==10.2.2/cherrypy==13.1.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^portend==1.8/portend==2.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^plumbum==1.6.3/plumbum==1.6.4/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^pytz==2017.2/pytz>=2017.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^six==1.10.0/six==1.11.0/" ${S}/requirements.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
fperms 755 /var/log/${PN}
|
||||
|
||||
if use systemd; then
|
||||
systemd_dounit "${FILESDIR}"/flexget.service
|
||||
fi
|
||||
}
|
||||
|
122
net-misc/flexget/flexget-2.14.15.ebuild
Normal file
122
net-misc/flexget/flexget-2.14.15.ebuild
Normal file
@ -0,0 +1,122 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 eutils systemd user
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_P="FlexGet-${PV}"
|
||||
SRC_URI="mirror://pypi/F/FlexGet/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/Flexget/Flexget.git
|
||||
https://github.com/Flexget/Flexget.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Multipurpose automation tool for content like torrents, nzbs, podcasts, comics"
|
||||
HOMEPAGE="http://flexget.com/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="systemd test transmission"
|
||||
|
||||
RESTRICT="nomirror"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
=dev-python/APScheduler-3.5.0[${PYTHON_USEDEP}]
|
||||
=dev-python/beautifulsoup-4.6.0:4[${PYTHON_USEDEP}]
|
||||
>=dev-python/cherrypy-10.2.2[${PYTHON_USEDEP}]
|
||||
=dev-python/colorclass-2.2.0[${PYTHON_USEDEP}]
|
||||
=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-0.12.2[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-compress-1.4.0[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-cors-3.0.2[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-restful-0.3.6[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-restplus-0.10.1[${PYTHON_USEDEP}]
|
||||
=dev-python/future-0.16.0[${PYTHON_USEDEP}]
|
||||
=dev-python/guessit-2.1.4[${PYTHON_USEDEP}]
|
||||
=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
|
||||
=dev-python/jinja-2.10[${PYTHON_USEDEP}]
|
||||
=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
|
||||
=dev-python/path-py-10.3.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pathlib-1.0.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pynzb-0.1.0[${PYTHON_USEDEP}]
|
||||
=dev-python/pyparsing-2.2.0[${PYTHON_USEDEP}]
|
||||
=dev-python/PyRSS2Gen-1.1[${PYTHON_USEDEP}]
|
||||
~dev-python/python-dateutil-2.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2017.2[${PYTHON_USEDEP}]
|
||||
=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
|
||||
=dev-python/rebulk-0.9.0[${PYTHON_USEDEP}]
|
||||
~dev-python/requests-2.19.1[${PYTHON_USEDEP}]
|
||||
=dev-python/rpyc-3.3.0[${PYTHON_USEDEP}]
|
||||
=dev-python/sqlalchemy-1.2.9[${PYTHON_USEDEP}]
|
||||
=dev-python/tempora-1.8[${PYTHON_USEDEP}]
|
||||
=dev-python/terminaltables-3.1.0[${PYTHON_USEDEP}]
|
||||
=dev-python/tzlocal-1.4[${PYTHON_USEDEP}]
|
||||
=dev-python/urllib3-1.23[${PYTHON_USEDEP}]
|
||||
=dev-python/zxcvbn-python-4.4.15[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
transmission? ( dev-python/transmissionrpc[${PYTHON_USEDEP}] )
|
||||
"
|
||||
DEPEND+=" test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" dev-python/paver[${PYTHON_USEDEP}]"
|
||||
else
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
python_test() {
|
||||
cp -lr tests setup.cfg "${BUILD_DIR}" || die
|
||||
run_in_build_dir nosetests -v --attr=!online > "${T}/tests-${EPYTHON}.log" \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
sed -i -e "s/^aniso8601==1.2.1/aniso8601==3.0.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^certifi==2017.4.17/certifi==2018.4.16/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^chardet==3.0.3/chardet==3.0.4/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^cheroot==5.5.0/cheroot==6.0.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^cherrypy==10.2.2/cherrypy==13.1.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^flask-login==0.4.0/flask-login==0.4.1/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^html5lib==0.999999999/html5lib==1.0.1/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^idna==2.5/idna==2.7/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^jinja2==2.9.6/jinja2==2.10/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^portend==1.8/portend==2.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^plumbum==1.6.3/plumbum==1.6.4/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^python-dateutil==2.6.1/python-dateutil==2.7.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^pytz==2017.2/pytz>=2017.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^pyyaml==3.12/pyyaml==3.13/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^requests==2.16.5/requests==2.19.1/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^six==1.10.0/six==1.11.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^sqlalchemy==1.2.6/sqlalchemy==1.2.9/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^urllib3==1.21.1/urllib3==1.23/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^werkzeug==0.12.2/werkzeug==0.14.1/" ${S}/requirements.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
fperms 755 /var/log/${PN}
|
||||
|
||||
if use systemd; then
|
||||
systemd_dounit "${FILESDIR}"/flexget.service
|
||||
fi
|
||||
}
|
||||
|
110
net-misc/flexget/flexget-2.14.9.ebuild
Normal file
110
net-misc/flexget/flexget-2.14.9.ebuild
Normal file
@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 eutils systemd user
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_P="FlexGet-${PV}"
|
||||
SRC_URI="mirror://pypi/F/FlexGet/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/Flexget/Flexget.git
|
||||
https://github.com/Flexget/Flexget.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Multipurpose automation tool for content like torrents, nzbs, podcasts, comics"
|
||||
HOMEPAGE="http://flexget.com/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="systemd test transmission"
|
||||
|
||||
RESTRICT="nomirror"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
=dev-python/APScheduler-3.5.0[${PYTHON_USEDEP}]
|
||||
=dev-python/beautifulsoup-4.6.0:4[${PYTHON_USEDEP}]
|
||||
>=dev-python/cherrypy-10.2.2[${PYTHON_USEDEP}]
|
||||
=dev-python/colorclass-2.2.0[${PYTHON_USEDEP}]
|
||||
=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-0.12.2[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-compress-1.4.0[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-cors-3.0.2[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-restful-0.3.6[${PYTHON_USEDEP}]
|
||||
=dev-python/flask-restplus-0.10.1[${PYTHON_USEDEP}]
|
||||
=dev-python/future-0.16.0[${PYTHON_USEDEP}]
|
||||
=dev-python/guessit-2.1.4[${PYTHON_USEDEP}]
|
||||
=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
|
||||
=dev-python/jinja-2.10[${PYTHON_USEDEP}]
|
||||
=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
|
||||
=dev-python/path-py-10.3.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pathlib-1.0.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pynzb-0.1.0[${PYTHON_USEDEP}]
|
||||
=dev-python/pyparsing-2.2.0[${PYTHON_USEDEP}]
|
||||
=dev-python/PyRSS2Gen-1.1[${PYTHON_USEDEP}]
|
||||
~dev-python/python-dateutil-2.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2017.2[${PYTHON_USEDEP}]
|
||||
=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
|
||||
=dev-python/rebulk-0.9.0[${PYTHON_USEDEP}]
|
||||
~dev-python/requests-2.19.1[${PYTHON_USEDEP}]
|
||||
=dev-python/rpyc-3.3.0[${PYTHON_USEDEP}]
|
||||
=dev-python/sqlalchemy-1.2.9[${PYTHON_USEDEP}]
|
||||
=dev-python/tempora-1.8[${PYTHON_USEDEP}]
|
||||
=dev-python/terminaltables-3.1.0[${PYTHON_USEDEP}]
|
||||
=dev-python/tzlocal-1.4[${PYTHON_USEDEP}]
|
||||
=dev-python/urllib3-1.23[${PYTHON_USEDEP}]
|
||||
=dev-python/zxcvbn-python-4.4.15[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
transmission? ( dev-python/transmissionrpc[${PYTHON_USEDEP}] )
|
||||
"
|
||||
DEPEND+=" test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" dev-python/paver[${PYTHON_USEDEP}]"
|
||||
else
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
python_test() {
|
||||
cp -lr tests setup.cfg "${BUILD_DIR}" || die
|
||||
run_in_build_dir nosetests -v --attr=!online > "${T}/tests-${EPYTHON}.log" \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
sed -i -e "s/^chardet==3.0.3/chardet==3.0.4/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^cheroot==5.5.0/cheroot==6.0.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^cherrypy==10.2.2/cherrypy==13.1.0/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^portend==1.8/portend==2.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^plumbum==1.6.3/plumbum==1.6.4/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^pytz==2017.2/pytz>=2017.2/" ${S}/requirements.txt || die
|
||||
sed -i -e "s/^six==1.10.0/six==1.11.0/" ${S}/requirements.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
fperms 755 /var/log/${PN}
|
||||
|
||||
if use systemd; then
|
||||
systemd_dounit "${FILESDIR}"/flexget.service
|
||||
fi
|
||||
}
|
||||
|
3
net-misc/ymarks-server/Manifest
Normal file
3
net-misc/ymarks-server/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX ymarks-server-constants.patch 649 BLAKE2B a726cd9df461df441b84923f2477af8b25e0df85fe0aa91131b495b9bca3e9119448b68bf7775666d8bfa18eae5e8fb707fdfbe49fab6cd271dbed0863063df1 SHA512 7bdb5cbcd07595c43281a9d67ff6186e0de6816a36921a696b05e2c760934a70f44331c1f048720dd2dcf855c2432e90dff791ed831f161ea81303477222cf19
|
||||
AUX ymarks.service 228 BLAKE2B 1d36be15f494f63ec04a9d5041cf417fb12901277044c07ea031650e0341980619b382dc646c05a9624d59f9bdc1ffe8b723554017cb8f73a1fbf8746b6ea389 SHA512 81e3ae34e97a64851751aa0e2d5edbed8e8bc3040abdc9cf2f8a239a017680f134de52287086d96fcb8581c2e7ef6ea87fd760a027b47bc205b740fe623216d5
|
||||
EBUILD ymarks-server-9999.ebuild 897 BLAKE2B e2b5cb56e8ef2ef0980b579bcbd08eac114b05a7b796dc5806401110f8b82a7ed5b41e52d841a306c5459a57ccc816478eda2249c3f59ad07b2b8bddb41532d8 SHA512 91a5582a0fd30cdfd16329a050a39c25f0968473e6d8b74b388a4bb7ec68c82e6579a5121be9ebb5227e82b68538a12faf42ce982f3946f80b8403e1656c59be
|
16
net-misc/ymarks-server/files/ymarks-server-constants.patch
Normal file
16
net-misc/ymarks-server/files/ymarks-server-constants.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff -ur ymarks-server-9999.orig/src/constants.h ymarks-server-9999/src/constants.h
|
||||
--- ymarks-server-9999.orig/src/constants.h 2018-05-21 22:35:56.623271162 +0200
|
||||
+++ ymarks-server-9999/src/constants.h 2018-05-21 22:37:02.882961737 +0200
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
|
||||
/* The port ymarks will bind its server component to: */
|
||||
-static const int SERVERPORT = 8888;
|
||||
+static const int SERVERPORT = 9999;
|
||||
|
||||
/* The folder in which backups will be created (if enabled): */
|
||||
-static const char* BACKUPFOLDER = ".";
|
||||
+static const char* BACKUPFOLDER = "/etc/ymarks";
|
||||
|
||||
/* The name of your database file: */
|
||||
static const char* SQLFILE = "ymarks.db";
|
15
net-misc/ymarks-server/files/ymarks.service
Normal file
15
net-misc/ymarks-server/files/ymarks.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=ymarks-server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ymarks
|
||||
Group=ymarks
|
||||
WorkingDirectory=/etc/ymarks
|
||||
ExecStart=/etc/ymarks/ymarks &
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
44
net-misc/ymarks-server/ymarks-server-9999.ebuild
Normal file
44
net-misc/ymarks-server/ymarks-server-9999.ebuild
Normal file
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils user systemd
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EHG_REPO_URI="https://bitbucket.org/ymarks/${PN}"
|
||||
inherit mercurial
|
||||
fi
|
||||
|
||||
DESCRIPTION="Simple KISS bookmark sync server"
|
||||
HOMEPAGE="https://www.ymarks.org"
|
||||
|
||||
LICENSE="WTFPL"
|
||||
SLOT="0"
|
||||
IUSE="systemd"
|
||||
|
||||
RDEPEND="dev-db/sqlite:3"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ymarks
|
||||
enewuser ymarks -1 /bin/bash /etc/ymarks ymarks
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eapply "${FILESDIR}/ymarks-server-constants.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cc -I . -I /usr/include -o ymarks 3rdparty/cJSON.c src/backup.c src/main.c -lsqlite3
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /etc/ymarks
|
||||
doexe ${S}/ymarks
|
||||
echo "12345" > "${D}"/etc/ymarks/PIN.txt
|
||||
fowners -R ymarks:ymarks /etc/ymarks
|
||||
|
||||
use systemd &&
|
||||
systemd_dounit "${FILESDIR}"/ymarks.service
|
||||
}
|
Loading…
Reference in New Issue
Block a user