parent
36ee727e31
commit
e00f8ba50c
@ -1,3 +1,4 @@
|
||||
DIST snappy-1.0.3.tar.gz 1716787 SHA256 2201cb724923d1d490698d19e0ce295f46d87b302ca9590aff2302051fc90a5e SHA512 5b98c0afecfd99176a36d009d15f13920ef1678485886031d09b58b89eefe5d54997a8320d322d88b6c6fe2ac7eb9f1124bcae3bf333c30bf56e60ee7eeeec0b WHIRLPOOL dcc606d334f5a0f58c736f4ffd96ba758ac7a1b5e73fda46250fa8d17ae7c894791e22333949ff487bf0396d716ad27fb69116cfff0aad13399aea37d813e535
|
||||
DIST snappy-1.0.4.tar.gz 1676541 SHA256 4ad91adb1592b6de67ecaad2ade6c34b9cf98a0bbc74ac8786b520b529b3bf61 SHA512 34e70dc35af9e8d7601618c2521be0cd0ba74907b8e67362d02c515c06c7bf2a2f58dac3dfed75270b7d9c9a1d6ec408c76e3665dc70bbeda8f87584cb4f01b0 WHIRLPOOL 8bd9213060f2de46699515c869d7d4574059a463296208ff7720be9378bdfd03d0d44e50e47d0a95c143696465eaf4b3140bee1c9158af8b72197b26d335a539
|
||||
DIST snappy-1.0.5.tar.gz 1731382 SHA256 6a2d4afc3752d78996f7a881e4f3648c6358654c5ff618f5d1b6b253984fd607 SHA512 4f772673dd1bf482f13db0f09299b46d0ee47b7052c43e69c2c5361d352031152f3132c25faf86ffcf1bfbe0e68625d7eef8fa669be873b568adfc160a82f25b WHIRLPOOL b392f358e494ad2490f15ea5a37cf0d8b7540d541fc41103e977ed62c7d6288cb389a9297b80a433c73888e3d10b9d2ce85d8caf743cdc0d8edd1957cf0be104
|
||||
DIST snappy-1.1.0.tar.gz 1719945 SHA256 1fa82bc588bb93fa74dfc0e2e9b7d63b6e2a20ede323ef42bf0af0f947676160 SHA512 47b37cb0f226f80aff889a8804956d7c1f4b49b5b05ec186aa113f04abcb6092ffaa7d80b54fbcb935464eebc9fbe4c9137aeb50f65e4628ac419f058514301b WHIRLPOOL 8fdc5416bb45a85566f24c211db89847c434cd39dc9ab2cccb6e9db38b38d12178a040f3e737b90053e8c1a86307409072d2e5e3b0df82bc152c7c27f03d46d7
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/snappy/snappy-1.1.0.ebuild,v 1.2 2013/03/26 09:08:11 pinkbyte Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A high-speed compression/decompression library by Google"
|
||||
HOMEPAGE="https://code.google.com/p/snappy/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
DOCS="AUTHORS ChangeLog README NEWS format_description.txt"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Avoid automagic lzop and gzip by not checking for it
|
||||
sed -i -e '/^CHECK_EXT_COMPRESSION_LIB/d' "${S}/configure.ac" || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--without-gflags \
|
||||
--disable-gtest \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Remove docs installed by snappy itself
|
||||
rm -rf "${ED}/usr/share/doc/snappy" || die
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,5 +1 @@
|
||||
DIST anki-1.2.11.tgz 1886062 SHA256 ca075fd0c0d6851d22046de8f6fa90d7c442cdd4a6783f7c6ffad7fbc46f5089 SHA512 f04ba85afb146c912c77fa047a74dfae34b2900bc4a0c5ab86d2c0787fa69339bd354d1def7083e74ac16da3e8e03efcf49808d817bc502ebb69944cd2ad4d9c WHIRLPOOL dbd445cc4439b6b582a11ae62b813f1773c15b90412d12aa3f06db07a778137d9c0aa06710354a2ab88055887f6d2e44db0f260ebaa4e6042012012a7ee3ee55
|
||||
DIST anki-2.0.5.tgz 2901830 SHA256 afc03aeac239d4b01cf34601d975924e828d4c29f5c2150ed286c09633df6cd5 SHA512 b9287996555985c25f465b5d582e2579400f592c8d985c8ca073afe80762bd9977144196b92dbb89d81df19d474062696e6aa7ad9dc4e566b82adbea5f2d4839 WHIRLPOOL 9abb55a93d9f415b209cf98bd637abeeb725689cc0953b042a31075f16ba85d9b8aa945f9ce8cee6f80b1e74d7679d6350cd22d16f9a4c00596732cde404da28
|
||||
DIST anki-2.0.6.tgz 2913286 SHA256 53af617fa3ba5429c5a798fae9a29d48b9115e41993cded3f6e7a3c0fc2af904 SHA512 705558b6967d2f0f6b19369979e2f77669587457f9613e060b2373dd010ab30f636c15411d2f40db62e25203d77870ed4bb43d484043822f8b046add61b65d4c WHIRLPOOL 0a36ab017380ab272f2d2aa0c8868ec3bd5ea5d36760d878e2fbfdf1e8a12a8b1653999149a5f9dc66a5819c62aeae2b554bf2f335ab53cb4bf77395528d68d6
|
||||
DIST anki-2.0.7.tgz 2918816 SHA256 64af49fd0be82d2664bca6879f74b54b186270379c4012344141903b7be0fe28 SHA512 3ee9f6b3eb88acde2049b28cc1209dfcd600af91b569b53ff463c55a91819133fe92d4a023efb7b000ccb120d18a37a69d394a2ddabec5e6ba0bac6746d09774 WHIRLPOOL 9beefd13923d33e3bdf85f19cfb1fda2303be69f84e3056da0fd8d7ba3b3a09f39448f27d87a4630540d3f5d0bf9318148b514a1091fe6330227642312adb901
|
||||
DIST anki-2.0.8.tgz 2924821 SHA256 dd670b02bf6b5c98dcfa9e1606ac00f6e1046f8debb5812e0f383ffe4778b868 SHA512 b7408c0dbdd5da40e70a39d0305e0ac336737f7b579db9188eeaa0e26c4efe92d0028869e6e18d18066cdfd7b526815e8c931351e32e9815e844cb3656033e58 WHIRLPOOL 3165b3f36cc7d804386682d2d86fbb650c57938aa4157d216ff376e694cb7fffeeaf3d0ce73fd9ec2d9731ce4a10b802242dcdc925b0816f92d61b58cda12b6a
|
||||
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-1.2.11.ebuild,v 1.4 2012/06/20 15:06:38 tomka Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="http://ichi2.net/anki/"
|
||||
SRC_URI="http://anki.googlecode.com/files/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="furigana +graph latex recording +sound"
|
||||
|
||||
# beautifulsoup-4 is not supported in 1.2.11
|
||||
RDEPEND="
|
||||
<dev-python/beautifulsoup-4
|
||||
>=dev-python/PyQt4-4.7[X,svg,webkit]
|
||||
>=dev-python/sqlalchemy-0.5.3
|
||||
>=dev-python/simplejson-1.7.3
|
||||
|| ( >=dev-python/pysqlite-2.3.0 >=dev-lang/python-2.5[sqlite] )
|
||||
latex? ( app-text/dvipng )
|
||||
furigana? (
|
||||
dev-python/mecab-python
|
||||
app-i18n/kakasi
|
||||
)
|
||||
graph? (
|
||||
dev-python/numpy
|
||||
>=dev-python/matplotlib-0.91.2
|
||||
)
|
||||
recording? (
|
||||
media-sound/sox
|
||||
dev-python/pyaudio
|
||||
media-sound/lame
|
||||
)
|
||||
sound? ( media-video/mplayer )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
PYTHON_MODNAME="anki ankiqt"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
cd libanki
|
||||
distutils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
cd libanki
|
||||
distutils_src_install
|
||||
cd ..
|
||||
|
||||
doicon icons/${PN}.png || die
|
||||
make_desktop_entry ${PN} ${PN} ${PN} "Education"
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-2.0.5.ebuild,v 1.1 2013/01/22 07:50:59 patrick Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="http://ichi2.net/anki/"
|
||||
SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound"
|
||||
|
||||
RDEPEND="dev-python/PyQt4[X,svg,webkit]
|
||||
>=dev-python/httplib2-0.7.4
|
||||
dev-python/beautifulsoup:python-2
|
||||
recording? ( media-sound/lame
|
||||
>=dev-python/pyaudio-0.2.4 )
|
||||
sound? ( media-video/mplayer )
|
||||
latex? ( app-text/texlive
|
||||
app-text/dvipng )"
|
||||
DEPEND=""
|
||||
|
||||
pkg_setup(){
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -r thirdparty || die
|
||||
python_convert_shebangs -r 2 .
|
||||
}
|
||||
|
||||
# Nothing to configure or compile
|
||||
src_configure() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin/
|
||||
doexe anki/anki
|
||||
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README README.development
|
||||
insinto "$(python_get_sitedir)"
|
||||
doins -r aqt anki
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<app-misc/anki-2" ; then
|
||||
elog "Anki 2 is a rewrite of Anki with many new features and"
|
||||
elog "a new database format. On the first run your decks are"
|
||||
elog "converted to the new format and a backup of your Anki-1"
|
||||
elog "decks is created. Please read the following:"
|
||||
elog "http://ankisrs.net/anki2.html"
|
||||
elog "The mobile clients for Anki 2 are still under development."
|
||||
fi
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-2.0.6.ebuild,v 1.1 2013/01/25 13:18:04 tomka Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="http://ichi2.net/anki/"
|
||||
SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound"
|
||||
|
||||
RDEPEND="dev-python/PyQt4[X,svg,webkit]
|
||||
>=dev-python/httplib2-0.7.4
|
||||
dev-python/beautifulsoup:python-2
|
||||
recording? ( media-sound/lame
|
||||
>=dev-python/pyaudio-0.2.4 )
|
||||
sound? ( media-video/mplayer )
|
||||
latex? ( app-text/texlive
|
||||
app-text/dvipng )"
|
||||
DEPEND=""
|
||||
|
||||
pkg_setup(){
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -r thirdparty || die
|
||||
python_convert_shebangs -r 2 .
|
||||
}
|
||||
|
||||
# Nothing to configure or compile
|
||||
src_configure() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin/
|
||||
doexe anki/anki
|
||||
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README README.development
|
||||
insinto "$(python_get_sitedir)"
|
||||
doins -r aqt anki
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<app-misc/anki-2" ; then
|
||||
elog "Anki 2 is a rewrite of Anki with many new features and"
|
||||
elog "a new database format. On the first run your decks are"
|
||||
elog "converted to the new format and a backup of your Anki-1"
|
||||
elog "decks is created. Please read the following:"
|
||||
elog "http://ankisrs.net/anki2.html"
|
||||
elog "The mobile clients for Anki 2 are still under development."
|
||||
fi
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-2.0.7.ebuild,v 1.1 2013/02/06 08:52:06 patrick Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit eutils python
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="http://ichi2.net/anki/"
|
||||
SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound"
|
||||
|
||||
RDEPEND="dev-python/PyQt4[X,svg,webkit]
|
||||
>=dev-python/httplib2-0.7.4
|
||||
dev-python/beautifulsoup:python-2
|
||||
recording? ( media-sound/lame
|
||||
>=dev-python/pyaudio-0.2.4 )
|
||||
sound? ( media-video/mplayer )
|
||||
latex? ( app-text/texlive
|
||||
app-text/dvipng )"
|
||||
DEPEND=""
|
||||
|
||||
pkg_setup(){
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -r thirdparty || die
|
||||
python_convert_shebangs -r 2 .
|
||||
}
|
||||
|
||||
# Nothing to configure or compile
|
||||
src_configure() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin/
|
||||
doexe anki/anki
|
||||
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README README.development
|
||||
insinto "$(python_get_sitedir)"
|
||||
doins -r aqt anki
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<app-misc/anki-2" ; then
|
||||
elog "Anki 2 is a rewrite of Anki with many new features and"
|
||||
elog "a new database format. On the first run your decks are"
|
||||
elog "converted to the new format and a backup of your Anki-1"
|
||||
elog "decks is created. Please read the following:"
|
||||
elog "http://ankisrs.net/anki2.html"
|
||||
elog "The mobile clients for Anki 2 are still under development."
|
||||
fi
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
https://github.com/dae/anki/issues/1
|
||||
|
||||
--- libanki/anki/sync.py
|
||||
+++ libanki/anki/sync.py
|
||||
@@ -16,6 +16,15 @@
|
||||
HTTP_TIMEOUT = 30
|
||||
HTTP_PROXY = None
|
||||
|
||||
+try:
|
||||
+ # httplib2 >=0.7.7
|
||||
+ _proxy_info_from_environment = httplib2.proxy_info_from_environment
|
||||
+ _proxy_info_from_url = httplib2.proxy_info_from_url
|
||||
+except AttributeError:
|
||||
+ # httplib2 <0.7.7
|
||||
+ _proxy_info_from_environment = httplib2.ProxyInfo.from_environment
|
||||
+ _proxy_info_from_url = httplib2.ProxyInfo.from_url
|
||||
+
|
||||
# Httplib2 connection object
|
||||
######################################################################
|
||||
|
||||
@@ -42,7 +51,7 @@
|
||||
def _setupProxy():
|
||||
global HTTP_PROXY
|
||||
# set in env?
|
||||
- p = httplib2.ProxyInfo.from_environment()
|
||||
+ p = _proxy_info_from_environment()
|
||||
if not p:
|
||||
# platform-specific fetch
|
||||
url = None
|
||||
@@ -59,7 +68,7 @@
|
||||
elif 'http' in r:
|
||||
url = r['http']
|
||||
if url:
|
||||
- p = httplib2.ProxyInfo.from_url(url, _proxyMethod(url))
|
||||
+ p = _proxy_info_from_url(url, _proxyMethod(url))
|
||||
HTTP_PROXY = p
|
||||
|
||||
def _proxyMethod(url):
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/leveldb/leveldb-1.9.0-r1.ebuild,v 1.2 2013/02/19 12:41:49 blueness Exp $
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="A fast key-value storage library written at Google"
|
||||
|
||||
HOMEPAGE="http://code.google.com/p/leveldb/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
emake all || die
|
||||
emake libmemenv.a || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${D}/usr/include"
|
||||
cp -r include/* "${D}/usr/include" || die
|
||||
dolib.so libleveldb.so.${PV/.0} || die
|
||||
dosym libleveldb$(get_libname ).1.9 /usr/$(get_libdir)/libleveldb$(get_libname ) || die
|
||||
dosym libleveldb$(get_libname ).1.9 /usr/$(get_libdir)/libleveldb$(get_libname ).1 || die
|
||||
dolib.a libleveldb.a || die
|
||||
dolib.a libmemenv.a || die
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/markdown-2.3.1.ebuild,v 1.1 2013/03/26 06:19:27 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
# python3.3 because of dev-python/pygments
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="Markdown"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Python implementation of the markdown markup language"
|
||||
HOMEPAGE="http://www.freewisdom.org/projects/python-markdown http://pypi.python.org/pypi/Markdown"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( BSD GPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~ppc-macos ~x86-macos"
|
||||
IUSE="doc test pygments"
|
||||
|
||||
DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="pygments? ( dev-python/pygments[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# do not build docs over and over again
|
||||
sed -i -e "/'build':/s:md_build:build:" setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && esetup.py build_docs
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use doc; then
|
||||
local DOCS=( docs/. )
|
||||
|
||||
# templates which we don't want in docdir
|
||||
rm -f docs/*.{html,css,png}
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l run-tests.py tests "${BUILD_DIR}"/ || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
# don't use -n: it causes writes to hardlinked files
|
||||
2to3 -w --no-diffs tests || die
|
||||
fi
|
||||
|
||||
"${PYTHON}" run-tests.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/webtest/webtest-2.0.3.ebuild,v 1.1 2013/03/26 07:56:09 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# sigh.
|
||||
RESTRICT="test"
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
PYTHON_TESTS_RESTRICTED_ABIS="3.*"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="WebTest"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Helper to test WSGI applications"
|
||||
HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND=">=dev-python/webob-0.9.2[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pyquery[${PYTHON_USEDEP}]
|
||||
dev-python/waitress[${PYTHON_USEDEP}]
|
||||
dev-python/wsgiproxy2[${PYTHON_USEDEP}]
|
||||
dev-python/paste
|
||||
dev-python/pastedeploy )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
sphinx-build docs html || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
# Why is it so?
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
rm -f "${D}$(python_get_sitedir)"/webtest/lint3.py
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue