parent
db007d0d78
commit
fd8c019de6
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/siege/siege-3.0.1.ebuild,v 1.1 2013/05/23 05:55:50 patrick Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
#WANT_AUTOMAKE=1.9
|
||||
|
||||
inherit eutils bash-completion-r1 libtool autotools
|
||||
|
||||
DESCRIPTION="A HTTP regression testing and benchmarking utility"
|
||||
HOMEPAGE="http://www.joedog.org/JoeDog/Siege"
|
||||
SRC_URI="http://www.joedog.org/pub/siege/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~hppa ~mips ~ppc ~x86"
|
||||
SLOT="0"
|
||||
IUSE="ssl"
|
||||
|
||||
RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6d )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool"
|
||||
|
||||
src_prepare() {
|
||||
# bundled macros break recent libtool
|
||||
sed -i -e 's/AC_PROG_SHELL//' configure.ac || die
|
||||
rm *.m4 || die "failed to remove bundled macros"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
use ssl && myconf="--with-ssl=/usr" || myconf="--without-ssl"
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install
|
||||
|
||||
dodoc AUTHORS ChangeLog INSTALL MACHINES README* KNOWNBUGS \
|
||||
doc/siegerc doc/urls.txt
|
||||
|
||||
newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "An example ~/.siegerc file has been installed in"
|
||||
elog "/usr/share/doc/${PF}/"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emacs/evil/evil-1.0.2.ebuild,v 1.1 2013/05/22 16:29:06 ulm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Extensible vi layer for Emacs"
|
||||
HOMEPAGE="http://gitorious.org/evil"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+ FDL-1.3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="app-emacs/undo-tree"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
ELISP_REMOVE="evil-pkg.el evil-tests.el"
|
||||
ELISP_TEXINFO="doc/evil.texi"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
DOCS="CHANGES.org"
|
@ -1,39 +1,31 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX libvirt-1.0.5-sanitytest.py 917 SHA256 779ace1f9afe0c236545db8b939151b3be8efd942f385f89ce3461c2840726a8 SHA512 0560ff3782f75995af79354c049e2ce26a879acde0fea3f451c26eca9a0cf08084b32e6c4e042c2f91e34a0f5bb7e5ff7c89881febc6c44ec63e32b2f5cd313b WHIRLPOOL 03eaa4da6cea915144bf95d36730d8f8ee38ec8cac815cc5e106b853ea15f86687327f25e577ae2621ab291d2d00fe5f085b1decd889ad6745fee9149af456ed
|
||||
AUX libvirtd.confd-r4 2015 SHA256 c2ca5d9a2d4ed433e91bd215c2ca678109cc981072897a497955e36760dc3b9f SHA512 b3e1d2433be7838a35386747422a8f98f2a7f6a92a03089f9472eb8ee2efb7d10d2becd363fea7cdaf8771da31b58cd60d192b25e089b6257ad5341b1074e540 WHIRLPOOL 284e72e704b759433d5ddc1a3e4019164dda6b48cb2734ea9a6780747938bba2855a99dcf1b125ab3f500a6145315cafa4a3531ff6938c0c62e5b1a6f99ea9b3
|
||||
AUX libvirtd.init-r10 3636 SHA256 8912375fc1d5e031b207074e4675f4d54a8684ba261b89cfff5491f430982641 SHA512 0a23c30e5766d32fd9d3f51053ad4a3c981b7b62281ddb2a9afc59f78ade0a1521504ad01f4cc233a66afcbd94c91b7ca341b9747e4a7bc13d61e0be235efa84 WHIRLPOOL de6cfb3637e0114978bb3492d03f2b3cd487723863cfbe086d4c3c2c2bd875f8e242338c31e610094f74867db84439c07dfad508184c798839fd0d0989a56fc1
|
||||
AUX libvirtd.init-r11 3656 SHA256 51c3b79c1a71638211056f11085936d40874c5eb1440512309a5c0837f5a59e1 SHA512 c1743271fcf18eef38d9202ca58c7d052159262cb75283ce13739f6a21f3c6024cac567f52f082744c8f4321b857ace4489cc363281a7757920dc306b618d27f WHIRLPOOL 827f3908c5580e526ba83efd005c72d5024ed04072aab00e372347315d9cb6be88512c9148b5283d01190c2ef2ffa4fec477c28299afe70414c76188258103b2
|
||||
DIST libvirt-1.0.0.tar.gz 21868950 SHA256 14c8a30ebfb939c82cab5f759a95d09646b43b4210e45490e92459ae65123076 SHA512 b4c3c34b2813f08653b33de5e1ebf030f2eafe77cb6107724494b83643a4e744b3f2c290a1755bcc586c8c7ebe0d8955540d3455736685484e27b07f677dca2c WHIRLPOOL 398af483a630294d7306f2cef95712613a0391da19bd654f5b24aff54d99df8940f79e560a61b3e978f3a62b89778a1b3e6a171188b9a8c42e31e2029a93f3d0
|
||||
DIST libvirt-1.0.2-1b2f2439.tar.xz 3184 SHA256 fb7cbd3add0b54927b1be4bc753e0f0279e11f5b85bb692d44fb9b99b85722da SHA512 a45cd0896dbf845472135cb3548eff731f6a6c89af2d90c44094d3c07a8f19c8c8422dc43228a0c4b0c04b1b11bae2bc2a271f02bea598d36b52c42fb60ddc19 WHIRLPOOL bf0760fcf5245d0c3347f1969605fcb3df86c93e183b468c0421b88801db5f0984c4d1ce5a3ebc7b72a53f585d17db7fa984f7fbfa6e8f1d2c65819f3fd3ed27
|
||||
DIST libvirt-1.0.2.tar.gz 22971729 SHA256 9b8c2752f78658b65ef1c608b3775be0978d60855a9b5e2778f79c113201c179 SHA512 c35b6dc46594a93d4d633ad42df2cf1da7cbbf7327205ba4c608d4f95f0017cb4041518c3dafa3d5ab7dadaafad116779415c843e0d4e67ef1df31bd9a9295e7 WHIRLPOOL cf56954392f263fe686c79e320f238cc657424512bf3b136bd68747777640cd564affc38f7ed077a1e00f2d2511ab607b236a9b6ea4fbc8f089a2a0267b214ce
|
||||
DIST libvirt-1.0.3-2102e03d.tar.xz 4180 SHA256 a66e7b5f60461d203caa7fc38237d1742c6e550e9d8baa8835ea7df584cb70c0 SHA512 55c7c7fe7285ff399d2b13756653ebfe9a7e9e21ce2e9b91a366a7867ef10ffac9846dcf72af2941abd996efb9d115982f980abc88d1c629f0833c5e20f1f692 WHIRLPOOL 644ff645393367c69c97d19c73bc2e0e8eac8a219f67041ae0c44069a760e03527f77d41c7d37c2483896bfe4439f450fe35af64f6316fa634d947665f105149
|
||||
DIST libvirt-1.0.3-9bf6bec4.tar.xz 7032 SHA256 841f062bd4185ac36a5633103c899d4ef5da6a2092ef1a2f7125298ec336b18b SHA512 7eeba343a27c4dbe5e984641082c6f8c59ba0c04a22c5a3e390c0bf03e65a966e7db15be732c61473d2dfb245bdd53f950d3a848980153b90310439b781bbcdc WHIRLPOOL 8d90ebc9fc17a7c8ac119f34b2e64679322878c0c8dd7eb837f2b5e89047b084ec87e9966841d0aaf7ed19e75548b9d5f5f66d461e2f177a5e817669471a27c8
|
||||
DIST libvirt-1.0.3.tar.gz 23238381 SHA256 f64f4acd7cdcfc6ab5e803195ed58b949f262b54e3659d8c37b33f0fec112757 SHA512 f0002d40a018e22bd05c9bc990db0b14e0ec815613f54d04fc3b631081d87b6659620188da9f0ba376f290206d979467013274ab99b7394c66bde54c82e08fb4 WHIRLPOOL 29dad8e6b1e4d61fe83fc450436c0fdc200b360f93772c2fefe40ab443ec2a7cb6566e634d15290beb4f7ea1f461503b1cd86accddde59659ed46b60b56e3d76
|
||||
DIST libvirt-1.0.4.tar.gz 23353253 SHA256 d94c99ce286f5a89eb02c9f3d9d620930df1f9348262a60199b4a565a222c9a0 SHA512 5e867e48c12180840fcdfebb85e7349b704ae923cdb188d41009788d39ff64c25483e608805ccb0e91eee164c8c6e89ac08643649e495ad04668a11f7aa5a8f6 WHIRLPOOL cb44708897b485a5a63b2ae107d869c9deb09cbbb9288c32ee73cb513a6e895cf4ceae948719e449cf2f5eeed4b490e7c421dc2ea3bcec865a946a56f0a01e15
|
||||
DIST libvirt-1.0.5.1.tar.gz 23928327 SHA256 38a67d9dc979ed28440791eb3fd63e94e4d04e4efbe7554a83bdf0cc614d0a6e SHA512 8cc3850dcda93b2d4efcd055a91ca9f2a619ccb9585e5b9fd7e2daf6ee8e93c1a0354fbc7fa06f6d5663913f358c2fbd9569a5e307b90e91607b0e049f00c89d WHIRLPOOL 51298d87cddee79f352609306c77d3f1813684c931b11ea577d96560e366b112dfc625553a86fe21c291d7e9bba86024055b236029be56c3c6390cde49875e8b
|
||||
DIST libvirt-1.0.5.tar.gz 23928547 SHA256 337f1cd6611462b6e3cdf94541c49477df678074321fb7923274e4e30398209f SHA512 ee069f6047bad26b59cc14f7811725801d96525e7943e7abc31d33d256c77ae6024cf5ff841af9441a6853a3c24ba6aa5e0f437dcf2c5b2cfe860364b01719fc WHIRLPOOL d26107a400711dad468bfcb28cd88e0e7269a7cc7edbb487ed43b6ced22219d5e317af790ae69dc92e514cf29d68c88c8c7f18439679c142bf51d549d8cff8b7
|
||||
EBUILD libvirt-1.0.0.ebuild 11523 SHA256 fcb8c833a2a5477c2e938ac860c5bb039fe1b8f25f290f33ad38b6e5c898751c SHA512 2dd9d9f7c0b4e33ed3fb79dfb73f5ae529cc9556809b25ffc97b3bd44f7c3486bca4efdf02f3156843041197b11e63a6fd2d19ac394d8a2e827432d92b075114 WHIRLPOOL a4912a80bd8ae8e3cf0ea14c732f12590233522b957787082b84c632b8cd4fdd8c10dfd700f232ee83cc681a725cec7ec9e22a59c5a1be09288db0e35357b034
|
||||
EBUILD libvirt-1.0.2-r2.ebuild 11853 SHA256 cfff47a9f5bd41edfb2db44755800c42576a0e6f378fa8b3cdbf0f120d0a7ec2 SHA512 c4dcaefb32a9be93e5c7836db45332645a5fb1b4aa96f338dd417552e450e896f6334887001cab591c6d9efe0bea6fc4ddb573d21cfc6ff686c91f02fe1cd290 WHIRLPOOL c6857ac5588ef3aea6bffe4df5ed254f4941d9e647642bf23575d6cd3357250d0c2e9ac4a40fb17a25a390b71604fb7671a8fe7ab619559e7f24552165722a6e
|
||||
EBUILD libvirt-1.0.3-r1.ebuild 11855 SHA256 44219a81ba592734d909fdb228f179b07a3bb0eb0b02ff56eff14e315679e386 SHA512 567f8f4a112343e03e9936013d2861c6bfe4ec53ec32ccdaab0452572629fd62f498f7da919232d4ff2440dc419d275c98c40bf6170971d66c3cebb271009e3d WHIRLPOOL 2877304985997a99c0bed657edc487f998b3818e6113c90ab746dd987df00b7f978b68f503e310119d711dd83a8cd8c9906d4edfaf8d35751ffc504a2635c39f
|
||||
EBUILD libvirt-1.0.3-r2.ebuild 11955 SHA256 0cac6d154781981a1cb4fd22989d7b067fe469dbb5c3791cd1f5aa1861015038 SHA512 6ae6c503462ce19036a1ca8ccffeabc0a349f150167c9fee9fa2166abb3cba1f9d2180391c66bb39ef520a9dd38e078048d406f94028e79d622af5142b64abf2 WHIRLPOOL f660895f4c5b6c8de1351346a6d3b40e90f673b0d1f8d41d60b06e71643fb7fd1e862753df2fbe00ded32fc3f26fc15331017275faf676925d1e26b048984e4a
|
||||
EBUILD libvirt-1.0.4.ebuild 11955 SHA256 4997935bfa2473a82086cfd173a8557b526209ab225adc377a996e71f56ddead SHA512 a3109fc78473965c7b0f1ef18bb8e72f85f4ee3145a90179944c28e2d0e95549a598c5794093d8e0712c719d21879e96a727c5abc599020ceb24c0f8f7f8b868 WHIRLPOOL 1439a8395a875c5999e97441eadb64df66dc513c70be2ac4e9cb37ca6772f9857f9897d5a1e878063a354e30cec7f668ceeb24944e9155c7afbade3a36db1fed
|
||||
EBUILD libvirt-1.0.5.1.ebuild 12137 SHA256 870837b4d6a33154ad1bcd8eea26263512513fa4faff7c92a6b600d400fb2d7b SHA512 df3eceb70da7a4b7df500b6e27a935f3372c75fd482f5a5ea08492d7e19959b98cd7eea4c77607e603a828255b4568386d2ff0cb819c329457592fa8b6f160a0 WHIRLPOOL d7aad44959b67796e71997e192f7ee5ddcaea53f2dc9bc5510be28958570ff5366f3bf2cdf4f38039601f65c8f933cb2f34e49ac6b8b6f840e82215b070b0ceb
|
||||
EBUILD libvirt-1.0.5.ebuild 12051 SHA256 1e08959751c9e46afa38ff901cc8e01862e034631ba5403abdeac5bcd1350746 SHA512 8e9c3d743d1d4b79e17360757ac6d346a6b0da09e0e4902808a8e17676ee06d1016f7453362aede348fe3cfac565290bbbadc5e05088331f1dbd08796e9a9506 WHIRLPOOL c8320ce9b2686176b1d0692a166e2c3297b7a4497da8180d56248363afad5b482634069ac95b553d584c298630eeedf7bba8c3f31b05c4cb3ffb8826116fa160
|
||||
EBUILD libvirt-9999.ebuild 12057 SHA256 855e788f7f52afcd47c5d621af4919f9ba420386d65ca934924feca27d0d7a8b SHA512 f4b95251c6f5aee94d259cb92e1e687963f20a9ffd438781f5b81931d43b4bee2d15f916231588f36413321b7ac6b29854c433da50a57a240ec4de1587d3b535 WHIRLPOOL 58d0d87828172b3e6b07c7f6bc6b06e456351a6f0c0d4f9f92e2243aaed0130c94d402a248eed353af9272e15d65550cade5ce06fe668405b9f052e75a81c71a
|
||||
MISC ChangeLog 3337 SHA256 fccffa8f00b864a8a7150b7367a618108ad71dbacd814bd2e07775078c74b100 SHA512 7988efb7ba1da64cc569c547bea6649f48caa06d4ce3e986ccaf8032ae648c65f469ed6a346aa79518eed97ec123757d4d3ad5135d7953c4e5e8a9b6bfad75bb WHIRLPOOL 8184bf69f33fb69d06dc4ca5d05adef422be99d766fe4243908da46dbf26e3afb57fe9f07dd17f2789125c1995d978901f1ae5c1a1a5caa30ecdaee08956b05e
|
||||
EBUILD libvirt-1.0.3-r2.ebuild 12003 SHA256 9487bfd65d6c0f959c0932d78a3852906283473e2cea81c6f481a291e01e19f8 SHA512 e330564b03751f950da2a83a1018f857631231b27b7976d379ee1bfc44bf6e5929c08a1f69f3a4fde7ccf92f25a90a25e720c6ad6c9ec6efa15c27a8a6cf6814 WHIRLPOOL 9ee7c51da91107e99247e0d1eb0bf4d22110fc43cdb5c47b749e5d2a2226c882ce9d5c5b0a5761ce01ac1344ce7d375670e6935ce760c47766f042c96e3247d6
|
||||
EBUILD libvirt-1.0.4.ebuild 12003 SHA256 cf78e7e1b6d2a649f5bc9809aad9f1deda023acd06df7d1143a6d5fd0425d669 SHA512 be893f168ab1bb1fa283dd1bbab059638f4ab5e3957958a6b285f438389152df2041a4d8c5bdc17dc2f53ce46449e0a28be6666dd8ba0a41b507ae2e2a3ff41a WHIRLPOOL a527fdcb016734fbf005dc674ef0515462b7d6f41f4755bfe90ee297bcab1e9405b6d3a081c270917a57b8c91618ba2082adf7de7377c6594025f5a339aa11f1
|
||||
EBUILD libvirt-1.0.5.1.ebuild 12185 SHA256 b6b73181ff46a0d2359327d979a96f7165a56efcac0ab6ab11da0b4bc8f39b65 SHA512 1390fbaff78154cbc240b946bbb043b73079c2bdd4275d55de3a0b2364e3eb635949d109abaf1021aef0fb12a088459cf21cf7774e31cd9e6ac8d958fb6664b7 WHIRLPOOL c23a5c56c59f18919cd6841db305b15303512db69f356cf7ab4bf6f41e3efaf3355ea5f74dd5b9e6091043256500f0a9b7464abd5a87b266a01c457901659f7c
|
||||
EBUILD libvirt-9999.ebuild 12105 SHA256 feaa2fae6c1cd35f1d834267189fd2ed8a83a8b83eb356d45f8983722eb50202 SHA512 ce7a32702484cc33c07754c031b9fcd633dac29b7efb430ce02e36294809d821e13146c75ad9e6d622cf673392de87c2f18f426111efea97fd9f62a9346c3363 WHIRLPOOL 5ad7f14c98c5419c67e3ed0e2cc6a26b8e2efc228f1d84468f0748e933cd531b8aa2397c67518dfb6a49ef5941120e830b275212521c8cfa9958db58f8e530c0
|
||||
MISC ChangeLog 3688 SHA256 4e6138509feda72aae7ff9d1c1e5559a127dfd87956702c556f812369cee7acc SHA512 613a7b9f00b5c425b2c152cf54c6aef3808a89f737e5827881a05530e701db16894dd566fe211c2289404dd7c4fd6d16b0f4a75c6107ff024ed2385571c6275f WHIRLPOOL 87925119e628132d9afde45fc70d66cce68492c9baa75db79f9b275acb26f1da010b5499bb1d3b3d8215ba3c18d3a9fbdd59599a7a3a1ac60f0d3b3f9eebf37a
|
||||
MISC metadata.xml 3518 SHA256 b4d7597acd9441b02afd05f1f4d51522f657f9ecafc9a77c66e1633b4991ee8a SHA512 f5fbd24db303d44b0801d5ea78815c169a668d090e039450979b495e00a852a8fbc8bf3bd65534cfcdb7540834af3f1496ce2a9abf449e39f83975b6892a6d87 WHIRLPOOL 086aa2e815bc5bb2ad8a0c54b6d1522e40b5c60662839c5792f7f96e03af9f5706a195f2c940ed82d04267ed8c0d40838326fb714848be006fac8982ecd80485
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQF8BAEBCABmBQJRnAm7XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
iQF8BAEBCABmBQJRnOqzXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMDRGNEJFMDZEQTJGRUY3NkI4MEM3NTlE
|
||||
N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prv5sAH/AiepmTnZxuPO69KiD6spOnq
|
||||
GC65dvz2iLBB1JbsxZntlqiNGHhWj/5zi0aOZ+VpoqZpo1QYwImejzs/G/2iAdYp
|
||||
MafL8QTtLFliAdst1n3A9zmHRb+W/1AAfcGnGvNUgjbYLqKNyJlMKFkkbVSP4+Fk
|
||||
oF88hprA9ippsFy8eqBV0Nt6NRlnmFLdnwceszxme9WYTYAmWgngRvvP2hX/nkV1
|
||||
NEY5o5bv7GS1XiKq2fTfHq9d7orwEqlwLgaRUb9sH1NtvdWXGTQGJzQkuOgLKz4K
|
||||
VHr1w7ZF4zRBArvEnuNlFUU7FZTRPi+pVYcVt3MRR+0Mr2Hpzh89IQZT7X3YkR8=
|
||||
=YaQe
|
||||
N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prvFSEH/jMBlzQX73t/WFEH6/P94aW6
|
||||
NT2x8JYKlGy2YCqu4GIuCI0bhhgUrqMGTadXe1oUs3pnzUHeii01MdQLwUbRlX2d
|
||||
Oe9x2WRABCqe7HrSJmZ9DZ2n30uloknKhlUlxRe1p52IPgS5a0bi4n4S/Y7NHh01
|
||||
LmoqDlUgW8RsTH6N8vnNm9MyKw7tzshupa8jTZIUmZLedfDeyUpMS5w1HXKEqsxr
|
||||
wa+GGZ0CaA6VW75tkwn7XaIev9GYjcOWjaUtEKNBkf1/ll8vVL+0HDoLbbfbpRxT
|
||||
Gvd9eSYU9gLgnQ4pP53UERneApbDSu5DtMYt67EkZHR5mbbOTzQq8n+LA1zqkZg=
|
||||
=Z2ko
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,36 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import libvirt
|
||||
|
||||
globals = dir(libvirt)
|
||||
|
||||
# Sanity test that the generator hasn't gone wrong
|
||||
|
||||
# Look for core classes
|
||||
for clsname in ["virConnect",
|
||||
"virDomain",
|
||||
"virDomainSnapshot",
|
||||
"virInterface",
|
||||
"virNWFilter",
|
||||
"virNodeDevice",
|
||||
"virNetwork",
|
||||
"virSecret",
|
||||
"virStoragePool",
|
||||
"virStorageVol",
|
||||
"virStream",
|
||||
]:
|
||||
assert(clsname in globals)
|
||||
assert(object in getattr(libvirt, clsname).__bases__)
|
||||
|
||||
# Constants
|
||||
assert("VIR_CONNECT_RO" in globals)
|
||||
|
||||
# Error related bits
|
||||
assert("libvirtError" in globals)
|
||||
assert("VIR_ERR_AUTH_FAILED" in globals)
|
||||
assert("virGetLastError" in globals)
|
||||
|
||||
# Some misc methods
|
||||
assert("virInitialize" in globals)
|
||||
assert("virEventAddHandle" in globals)
|
||||
assert("virEventRegisterDefaultImpl" in globals)
|
@ -1,128 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
description="Virtual Machine Management daemon (libvirt)"
|
||||
extra_started_commands="reload halt"
|
||||
description_halt="Stops the libvirt daemon without stopping your VMs"
|
||||
description_reload="Restarts the libvirt daemon without stopping your VMs"
|
||||
|
||||
depend() {
|
||||
use USE_FLAG_AVAHI USE_FLAG_ISCSI USE_FLAG_RBD dbus
|
||||
after ntp-client ntpd nfs nfsmount portmap rpc.statd iptables ip6tables ebtables corosync sanlock cgconfig
|
||||
}
|
||||
|
||||
libvirtd_virsh() {
|
||||
local mode=$1
|
||||
shift
|
||||
|
||||
# Silence errors because virsh always throws an error about
|
||||
# not finding the hypervisor version when connecting to libvirtd
|
||||
LC_ALL=C virsh -c ${mode}:///system "$@" 2>/dev/null
|
||||
}
|
||||
|
||||
libvirtd_dom_list() {
|
||||
# Make sure that it wouldn't be confused if the domain name
|
||||
# contains the word running.
|
||||
libvirtd_virsh $1 list | awk '$3 == "running" { print $1 }'
|
||||
}
|
||||
|
||||
libvirtd_dom_count() {
|
||||
# Make sure that it wouldn't be confused if the domain name
|
||||
# contains the word running.
|
||||
libvirtd_virsh $1 list | awk 'BEGIN { count = 0 } \
|
||||
$3 == "running" { count++ } \
|
||||
END { print count }'
|
||||
}
|
||||
|
||||
libvirtd_net_list() {
|
||||
# The purpose of the awk is to avoid networks with 'active' in the name
|
||||
libvirtd_virsh $1 net-list | awk '$2 == "active" { print $1 }'
|
||||
}
|
||||
|
||||
libvirtd_net_count() {
|
||||
# The purpose of the awk is to avoid networks with 'active' in the name
|
||||
libvirtd_virsh $1 net-list | awk 'BEGIN { count = 0 } \
|
||||
$2 == "active" { count++ } \
|
||||
END { print count }'
|
||||
}
|
||||
|
||||
|
||||
start() {
|
||||
ebegin "Starting libvirtd"
|
||||
start-stop-daemon --start \
|
||||
--env KRB5_KTNAME=/etc/libvirt/krb5.tab \
|
||||
--exec /usr/sbin/libvirtd -- -d ${LIBVIRTD_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
local counter=
|
||||
local vm_name=
|
||||
local net_name=
|
||||
local dom_id=
|
||||
|
||||
ebegin "Stopping libvirtd"
|
||||
# try to shutdown all (KVM/Qemu) domains
|
||||
if [ "${LIBVIRTD_KVM_SHUTDOWN}" != "none" ] \
|
||||
&& [ "$(libvirtd_dom_count qemu)" != "0" ] ; then
|
||||
|
||||
einfo " Shutting down domain(s):"
|
||||
for dom_id in $(libvirtd_dom_list qemu) ; do
|
||||
vm_name="$(libvirtd_virsh qemu domname ${dom_id} | head -n 1)"
|
||||
einfo " ${vm_name}"
|
||||
libvirtd_virsh qemu ${LIBVIRTD_KVM_SHUTDOWN} ${dom_id} > /dev/null
|
||||
done
|
||||
|
||||
if [ -n "${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}" ] ; then
|
||||
counter="${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}"
|
||||
else
|
||||
counter=500
|
||||
fi
|
||||
|
||||
if [ "${LIBVIRTD_KVM_SHUTDOWN}" = "shutdown" ]; then
|
||||
einfo " Waiting ${counter} seconds while domains shutdown ..."
|
||||
DOM_COUNT="$(libvirtd_dom_count qemu)"
|
||||
while [ ${DOM_COUNT} -gt 0 ] && [ ${counter} -gt 0 ] ; do
|
||||
DOM_COUNT="$(libvirtd_dom_count qemu)"
|
||||
sleep 1
|
||||
counter=$((${counter} - 1))
|
||||
echo -n "."
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$(libvirtd_dom_count qemu)" != "0" ] ; then
|
||||
eerror " !!! Some guests are still running, stopping anyway"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ "${LIBVIRTD_KVM_NET_SHUTDOWN}" != "no" ] \
|
||||
&& [ "$(libvirtd_net_count qemu)" != "0" ]; then
|
||||
|
||||
einfo " Shutting down network(s):"
|
||||
for net_name in $(libvirtd_net_list qemu); do
|
||||
einfo " ${net_name}"
|
||||
libvirtd_virsh qemu net-destroy ${net_name} > /dev/null
|
||||
done
|
||||
|
||||
if [ "$(libvirtd_net_count qemu)" != "0" ]; then
|
||||
eerror " !!! Some networks are still active, stopping anyway"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Now actually stop the daemon
|
||||
start-stop-daemon --stop --quiet --exec \
|
||||
/usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
halt() {
|
||||
ebegin "Stopping libvirtd without shutting down your VMs"
|
||||
start-stop-daemon --stop --quiet --exec \
|
||||
/usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
halt
|
||||
start
|
||||
}
|
@ -1,410 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.0.0.ebuild,v 1.7 2013/05/21 23:56:31 cardoe Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
#BACKPORTS=85e8c146
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
#RESTRICT_PYTHON_ABIS="3.*"
|
||||
#SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit eutils python user autotools linux-info
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps firewalld iscsi +libvirtd lvm +lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-libs/libxslt
|
||||
=dev-lang/python-2*"
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CPUSETS
|
||||
~CGROUP_CPUACCT
|
||||
~RESOURCE_COUNTERS
|
||||
~CGROUP_SCHED
|
||||
~BLK_CGROUP
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK="~MACVTAP"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" || \
|
||||
LXC_CONFIG_CHECK+=" ~MEMCG"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r11" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf="${myconf} $(use_with xen xenapi)"
|
||||
myconf+=" --without-libxl"
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF}/python \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup libvirt.py
|
||||
}
|
@ -1,421 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.0.3-r1.ebuild,v 1.3 2013/05/21 23:56:31 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BACKPORTS=2102e03d
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
#RESTRICT_PYTHON_ABIS="3.*"
|
||||
#SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit eutils python user autotools linux-info
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm +lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-libs/libxslt
|
||||
=dev-lang/python-2*"
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CPUSETS
|
||||
~CGROUP_CPUACCT
|
||||
~RESOURCE_COUNTERS
|
||||
~CGROUP_SCHED
|
||||
~BLK_CGROUP
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK="~MACVTAP"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" || \
|
||||
LXC_CONFIG_CHECK+=" ~MEMCG"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r11" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF}/python \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup libvirt.py
|
||||
}
|
@ -1,426 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.0.5.ebuild,v 1.4 2013/05/21 23:56:31 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#BACKPORTS=9bf6bec4
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
#RESTRICT_PYTHON_ABIS="3.*"
|
||||
#SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit eutils python user autotools linux-info
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm +lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-libs/libxslt
|
||||
=dev-lang/python-2*"
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CPUSETS
|
||||
~CGROUP_CPUACCT
|
||||
~RESOURCE_COUNTERS
|
||||
~CGROUP_SCHED
|
||||
~BLK_CGROUP
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK="~MACVTAP"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix broken upstream tarball
|
||||
cp "${FILESDIR}"/${P}-sanitytest.py "${S}"/python/sanitytest.py
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r11" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF}/python \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
mv "${D}"/usr/lib/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup libvirt.py
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/transifex-client/transifex-client-0.9.ebuild,v 1.1 2013/05/22 20:10:52 hwoarang Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="A command line interface for Transifex"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/transifex-client http://www.transifex.net/"
|
||||
SRC_URI="https://pypi.python.org/packages/source/t/transifex-client/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
@ -0,0 +1,90 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/gramps-3.4.5.ebuild,v 1.1 2013/05/22 21:44:09 fauli Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
GCONF_DEBUG="no"
|
||||
|
||||
inherit eutils gnome2 python
|
||||
|
||||
DESCRIPTION="Genealogical Research and Analysis Management Programming System"
|
||||
HOMEPAGE="http://www.gramps-project.org/"
|
||||
SRC_URI="mirror://sourceforge/gramps/Stable/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="gnome reports spell webkit"
|
||||
|
||||
RDEPEND="dev-python/bsddb3
|
||||
>=dev-python/pygtk-2.16.0
|
||||
dev-python/pygoocanvas
|
||||
x11-misc/xdg-utils
|
||||
gnome-base/librsvg:2
|
||||
gnome? ( dev-python/libgnome-python
|
||||
dev-python/gconf-python )
|
||||
spell? ( dev-python/gtkspell-python )
|
||||
reports? ( media-gfx/graphviz )
|
||||
webkit? ( dev-python/pywebkitgtk )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
virtual/libiconv
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS="NEWS README TODO"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="${G2CONF} --disable-mime-install PYTHON="${EROOT}"/usr/bin/python2"
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
gnome2_src_prepare
|
||||
|
||||
epatch "${FILESDIR}/${PN}-3.4.0-use_bsddb3.patch"
|
||||
|
||||
# This is for bug 215944, so .pyo/.pyc files don't get into the
|
||||
# file system
|
||||
python_clean_py-compile_files
|
||||
|
||||
# Fix install path, bug 423315 for example
|
||||
einfo "Fix installation path"
|
||||
find . -iname 'Makefile.in' | xargs \
|
||||
sed "s;\(pkgdatadir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
|
||||
|| die
|
||||
find . -iname 'Makefile.in' | xargs \
|
||||
sed "s;\(pkgpythondir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
|
||||
|| die
|
||||
|
||||
sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
|
||||
-i src/Makefile.in || die
|
||||
|
||||
sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
|
||||
-i src/docgen/Makefile.in || die
|
||||
|
||||
einfo "Fix wrapper script"
|
||||
sed "s;@datadir@;$(python_get_sitedir);" \
|
||||
-i gramps.sh.in || die
|
||||
|
||||
einfo "Fix icon location"
|
||||
sed "s;gramps/;pixmap/;g" -i data/gramps.keys.in || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_need_rebuild
|
||||
gnome2_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
python_mod_optimize ${PN}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
python_mod_cleanup ${PN}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/jq/jq-1.3.ebuild,v 1.1 2013/05/23 06:36:08 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A lightweight and flexible command-line JSON processor"
|
||||
HOMEPAGE="http://stedolan.github.com/jq/"
|
||||
SRC_URI="http://stedolan.github.io/jq/download/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT CC-BY-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="sys-devel/bison
|
||||
sys-devel/flex
|
||||
test? ( dev-util/valgrind )"
|
||||
|
||||
DOCS=( AUTHORS README )
|
||||
|
||||
src_prepare() {
|
||||
sed -i '/^dist_doc_DATA/d' Makefile.am || die
|
||||
eautoreconf
|
||||
}
|
@ -1,24 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST libodfgen-0.0.1.tar.xz 270304 SHA256 dc1478b8f9acc9cfa59b9b206eb4fc9c082f640d7c35e9a6f6dbf025c60e2ff2 SHA512 defc4379b15bc0a0c9d68462eae1e25eaa768de01f88d814babfc9b88ab2ac57de2d0d2fe6303a1194f1b2d1bdb47d6b9d3f88dfba4a4476ecd1dc230d79978a WHIRLPOOL 4e7365197cd639607c1088d31c67a3d02fb58755c090ac4dfd5da7ca678c22b48062be78412eabc6257ea4cd1cec2dde20620c625be6560b084e44cf513fcf6e
|
||||
EBUILD libodfgen-0.0.1.ebuild 821 SHA256 62750b34fcd1f4df856ebbfcd05ffa1232f81dcee0bdf17dfaf450e3261e4ace SHA512 02181be2ed543032df367417bc0c7cb9461381355fb149c726bc2ff282b5cce7df03a2ecd433bc5187b281752ebb971e82f7d12a0b82db6ede7da4e93e8bdee6 WHIRLPOOL 305869eab7eea129b33673a6304a05dd70e80b220b4ae60511df601ec60559b4162be2d0eee004de7b72825286bc1eeebe9caa684d047f53eb093a6863da6c00
|
||||
MISC ChangeLog 695 SHA256 42ed36988dea67b9902eb4e3d6266801fd8f3e31a89799f1dc812cf78f7e7837 SHA512 b107ff0cb2f5244288e54a743d84b06d0fa07e6fb123d6e50a4b52ee1bec633d496890f506a302ec5e5e2efe194ba442ca3cff6c9b6a20b6e246ff8ba0340b59 WHIRLPOOL 5c69ed5bf905c51042ef16b984bdfec6681b9d88edfc09d1e90623459e1c11b24ebd5c32e9fbe1c2963d5e893b5da35cf2d7227b5943ef13ec98666c4065052f
|
||||
DIST libodfgen-0.0.2.tar.xz 270992 SHA256 6fe7932d86df6e7299ffc7377ab76638d5e54454fa8e614bad5b694b398ada2a SHA512 bd6735ad3f1d6a4ad4465a9975766e5d2bbcfb30ee6b3a28926147360c57420b533779ba3732ef5fc51f0c880a479bdc4dea163966cc8f414ff269c259db8cb1 WHIRLPOOL 188cc8a43b5b15c964fc556ddb57d66ab15263255427afe56926726da8e3e57d67b6991d14f14bc851dfd6fa34688bf4481d710b8c2a9164000f2711e7f196a1
|
||||
EBUILD libodfgen-0.0.2.ebuild 821 SHA256 fe1dbaf1c2bc35b9bc2883c12a587318076dbeacd6cdea04d73de5b39804fc75 SHA512 7c70f4bed68285bc47f58d869e359f8d99d44502fc994e6c2b549d0376fb80b40a160a9a40814462873b6fbd5c2e558f50a16184694e7ae7561af1e63c266652 WHIRLPOOL 9743c25e5ad5c3d8cf12bb7b4edcd4213f5ab6014e647dbec40c1c40bc0dd732b497149cb1eed3adedb5f9151494e03fd855568703167a32455eb0b4283910e3
|
||||
MISC ChangeLog 861 SHA256 fb2c8345199ef88d2d496e0205155a1233f7c037349cb65378c4c8650b79c186 SHA512 7b3e34969363e9c3c7706b2ab3ebb71f6b850c0c70c6a83211fd5c5cabe2fbd5aa0823039a10b27e9cc68309ebaa67d77a36e2bb8595e56a7dacaa79b750c36e WHIRLPOOL 0b0ecd9278905db3126ed5c43534a4436fe4c2e6955dfbae1e399bd6f42353799f3eda7a441b7e2cd8ed17123ea565efbe2c7d13dc97cf28754e982537940c90
|
||||
MISC metadata.xml 163 SHA256 4539da09a369d01dcec488c471eeaaef71b60686482101eba357344538e994e2 SHA512 44b0091513637625b4b535bbe66410dde135890a60411dcdffc2cfd1750b840bc9655c90b032612ff41499007f45db7bbff28d0874e287ae7411230eea9e0446 WHIRLPOOL 142e95052e96ae05c79dc2e03bb300cc5fcf9a4fa751a55f1f85cad7ab1e597d21acec98517bf92d28a44742b98c7ff0756b660b8e7a86f77e15ed94b6e183a8
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJRiPXZAAoJEOSiRoyO7jvoCLsP/iVUENOrV4GClQtduj2JqIj/
|
||||
1KUEG3X0vTx/kpehXzNc2Ty4lyaGumlHYBFREFV52jcuHLSE1KlNMO1rVNou7ziR
|
||||
OjVaVHXPi4MQ5DpWBdhvG+C0+qlNjKDAW8rQlia1MO6h10XyR72iKWqwTb3M2X3l
|
||||
iG9ASCjglrMcUYm4uKuKHmmcv2EJUmvTH3vjIOkKZ0q7cyiYicCxvVflP2tI/VBQ
|
||||
0HGoDc5RFEsnDRPzHhO79LutvaN0gnwb7yMHOc5vnyiwN/0H2FAOyEk4YGm6Y+ld
|
||||
oSu3ntpk92V5SrhG6At0oIuH5oSOiJtKbwfkQuURFJcxBMhtjJj4/Os+dDAhLVbx
|
||||
mH6I+wRb2l8Q8KENtJBs2emWVbGWc+OKwz52DjrD8xkg+G1zP1U12h4LxwBU+wDa
|
||||
coCB7rzwTLxlejeHcrM/WQaVZxUJxz7TZwnlVcSCtXY8QTZnxX6G51q3Ap/PjNpP
|
||||
EpFS6yEYFROOaSZH4hqsKMhTSRTu4Mo9+/jEcSRteFay9R08xrmmwKVvET/Ud+AI
|
||||
GvbETzHVqQXcQ4HwLfvcziPPv/hPDF8dhOvuqd6eELj7U63XrvYw9lPL0SBvQQga
|
||||
eVhfDGHEn4ILSb+WUVj402RZQ2B0HmAvU/zH+qBzi4I/zsOpZWK7dCI7TIS9g9dL
|
||||
Na9i+vERxaVGVX7cPkvL
|
||||
=9Z44
|
||||
iQIcBAEBCAAGBQJRnfL4AAoJEOSiRoyO7jvoARMP/2usQT/tSipJ6m94ZkBZG/VZ
|
||||
y0js5myCOEl7IbUnW/AoDZsk7dcf4mbC9W5PxS3Oc0gNYniuEfQFOGgZoH1UGbkn
|
||||
lZEuMNBFl7c4dapwwml8yHnO9vouxvWNb8LrZh6Y2Q1Iyx4ZQWMXIfTHD6bNrGVJ
|
||||
Cv2BlpPhTLpEmqBhHc6+uAxAjAsMo1IZAUUGgjeZ6POiCTzCAJphr8j04d0zmkF9
|
||||
sdExbJCVSdFICaOzmYY0hkVDWcIyD4VXRSevPLFcfI3wyRO0xgArCdPCgtC/FM5t
|
||||
27npPmjxUMaAohNPxVe1wNjFISAnsxRA2qh3uGBQ/X7EFn2rG+MZlJuv4qTQqd76
|
||||
PnD6qetmUQzQJsn9gyMpbWc29wZv5DfSzxId2IFU7vTXH+mInVsg8Z7AvXLktRbi
|
||||
+w6I/++UdrCROXbHQ1dspI/9XBq28bAEvpwexjHd620GxTf/qKY91AaJ03wjbERw
|
||||
nV3coztIg5bT+hCKsOr5PYeWi9mCiSHI8npnDTlrzlE6eB7ssikZfOCYyjonrYfd
|
||||
rmTlb+T0TrEEw1zc/ha7IBlb2w1hlIukDypIEbIlNaVq9SHxFoXwIZa9xovLXAff
|
||||
ONVIUmN4KzNJ1u+ZfQrMAkoBUZ/dqHgn7pH8J9ALuon70PAJ9E7rPRJwrDx69IkJ
|
||||
rUKhYHjAv2KHsY+BltB9
|
||||
=1IAR
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/libodfgen/libodfgen-0.0.1.ebuild,v 1.1 2013/05/07 12:38:52 scarabeus Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/libodfgen/libodfgen-0.0.2.ebuild,v 1.1 2013/05/23 10:43:20 scarabeus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
@ -0,0 +1,311 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.5.ebuild,v 1.1 2013/05/23 05:45:35 caster Exp $
|
||||
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||
|
||||
# *********************************************************
|
||||
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-7.* AS WELL *
|
||||
# *********************************************************
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
|
||||
|
||||
ICEDTEA_PKG=${PN}$(replace_version_separator 1 -)
|
||||
ICEDTEA_BRANCH=$(get_version_component_range 2-3)
|
||||
OPENJDK_BUILD="27"
|
||||
OPENJDK_DATE="26_oct_2012"
|
||||
OPENJDK_TARBALL="openjdk-6-src-b${OPENJDK_BUILD}-${OPENJDK_DATE}.tar.gz"
|
||||
# Download cacao and jamvm regardless for use with EXTRA_ECONF
|
||||
CACAO_TARBALL="68fe50ac34ec.tar.gz"
|
||||
JAMVM_TARBALL="jamvm-0972452d441544f7dd29c55d64f1ce3a5db90d82.tar.gz"
|
||||
|
||||
CACAO_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-cacao-${CACAO_TARBALL}"
|
||||
JAMVM_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-${JAMVM_TARBALL}"
|
||||
|
||||
DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
|
||||
http://download.java.net/openjdk/jdk6/promoted/b${OPENJDK_BUILD}/${OPENJDK_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/cacao/${CACAO_TARBALL} -> ${CACAO_GENTOO_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/jamvm/${JAMVM_TARBALL} -> ${JAMVM_GENTOO_TARBALL}"
|
||||
|
||||
LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
|
||||
SLOT="6"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cacao cjk +cups debug doc examples javascript +jbootstrap +nsplugin
|
||||
+nss pax_kernel pulseaudio +source systemtap test +webstart"
|
||||
|
||||
# Ideally the following were optional at build time.
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-1.2.12"
|
||||
X_COMMON_DEP="
|
||||
dev-libs/glib
|
||||
>=media-libs/freetype-2.3.5
|
||||
>=x11-libs/gtk+-2.8:2
|
||||
>=x11-libs/libX11-1.1.3
|
||||
>=x11-libs/libXext-1.1.1
|
||||
>=x11-libs/libXi-1.1.3
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.0.3"
|
||||
X_DEPEND="
|
||||
>=x11-libs/libXau-1.0.3
|
||||
>=x11-libs/libXdmcp-1.0.2
|
||||
>=x11-libs/libXinerama-1.0.2
|
||||
x11-proto/inputproto
|
||||
>=x11-proto/xextproto-7.1.1
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6
|
||||
>=media-libs/libpng-1.2
|
||||
>=sys-libs/zlib-1.2.3
|
||||
virtual/jpeg
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nss? ( >=dev-libs/nss-3.12.5-r1 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
|
||||
systemtap? ( >=dev-util/systemtap-1 )"
|
||||
|
||||
# media-fonts/lklug needs ppc ppc64 keywords
|
||||
RDEPEND="${COMMON_DEP}
|
||||
!dev-java/icedtea6
|
||||
X? (
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
!ppc? ( !ppc64? ( media-fonts/lklug ) )
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )"
|
||||
|
||||
# Only ant-core-1.8.1 has fixed ant -diagnostics when xerces+xalan are not present.
|
||||
# ca-certificates, perl and openssl are used for the cacerts keystore generation
|
||||
# xext headers have two variants depending on version - bug #288855
|
||||
# !eclipse-ecj-3.7 - bug #392587
|
||||
# autoconf - as long as we use eautoreconf, version restrictions for bug #294918
|
||||
DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
|
||||
|| (
|
||||
>=dev-java/gcj-jdk-4.3
|
||||
dev-java/icedtea-bin:6
|
||||
dev-java/icedtea:6
|
||||
)
|
||||
app-arch/cpio
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-misc/ca-certificates
|
||||
>=dev-java/ant-core-1.8.1
|
||||
dev-java/ant-nodeps
|
||||
dev-lang/perl
|
||||
>=dev-libs/libxslt-1.1.26
|
||||
dev-libs/openssl
|
||||
virtual/pkgconfig
|
||||
sys-apps/lsb-release
|
||||
${X_DEPEND}
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:6 )
|
||||
nsplugin? ( dev-java/icedtea-web:6[nsplugin] )"
|
||||
|
||||
S="${WORKDIR}"/${ICEDTEA_PKG}
|
||||
|
||||
pkg_setup() {
|
||||
JAVA_PKG_WANT_BUILD_VM="
|
||||
icedtea-6 icedtea-bin-6 icedtea6 icedtea6-bin
|
||||
gcj-jdk"
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${ICEDTEA_PKG}.tar.gz
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# icedtea doesn't like some locales. #330433 #389717
|
||||
export LANG="C" LC_ALL="C"
|
||||
}
|
||||
|
||||
bootstrap_impossible() {
|
||||
# Fill this according to testing what works and what not
|
||||
has "${1}" # icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config bootstrap enable_cacao
|
||||
local vm=$(java-pkg_get-current-vm)
|
||||
|
||||
# IcedTea6 can't be built using IcedTea7; its class files are too new
|
||||
# Whether to bootstrap
|
||||
bootstrap="disable"
|
||||
if use jbootstrap; then
|
||||
if bootstrap_impossible "${vm}"; then
|
||||
einfo "Bootstrap with ${vm} is currently not possible and thus disabled, ignoring USE=jbootstrap"
|
||||
else
|
||||
bootstrap="enable"
|
||||
fi
|
||||
fi
|
||||
|
||||
if has "${vm}" gcj-jdk; then
|
||||
# gcj-jdk ensures ecj is present.
|
||||
use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\""
|
||||
bootstrap="enable"
|
||||
fi
|
||||
|
||||
config="${config} --${bootstrap}-bootstrap"
|
||||
|
||||
# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
|
||||
# Otherwise use CACAO
|
||||
if ! has "${ARCH}" amd64 sparc x86; then
|
||||
enable_cacao=yes
|
||||
elif use cacao; then
|
||||
ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
|
||||
ewarn 'If so, please rebuild with USE="-cacao"'
|
||||
enable_cacao=yes
|
||||
fi
|
||||
|
||||
if [[ ${enable_cacao} ]]; then
|
||||
config="${config} --enable-cacao"
|
||||
fi
|
||||
|
||||
# OpenJDK-specific parallelism support. Bug #389791, #337827
|
||||
# Implementation modified from waf-utils.eclass
|
||||
# Note that "-j" is converted to "-j1" as the system doesn't support --load-average
|
||||
local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
|
||||
config="${config} --with-parallel-jobs=${procs}";
|
||||
einfo "Configuring using --with-parallel-jobs=${procs}"
|
||||
|
||||
if use javascript ; then
|
||||
config="${config} --with-rhino=$(java-pkg_getjar rhino-1.6 js.jar)"
|
||||
else
|
||||
config="${config} --without-rhino"
|
||||
fi
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
|
||||
econf ${config} \
|
||||
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
|
||||
--with-cacao-src-zip="${DISTDIR}/${CACAO_GENTOO_TARBALL}" \
|
||||
--with-jamvm-src-zip="${DISTDIR}/${JAMVM_GENTOO_TARBALL}" \
|
||||
--with-jdk-home="$(java-config -O)" \
|
||||
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
|
||||
--disable-downloading \
|
||||
$(use_enable !debug optimizations) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable nss) \
|
||||
$(use_enable pulseaudio pulse-java) \
|
||||
$(use_enable systemtap) \
|
||||
$(use_with pax_kernel pax paxctl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Would use GENTOO_VM otherwise.
|
||||
export ANT_RESPECT_JAVA_HOME=TRUE
|
||||
|
||||
# Load the least that's needed to avoid possible classpath collisions.
|
||||
export ANT_TASKS="ant-nodeps"
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Use Xvfb for tests
|
||||
unset DISPLAY
|
||||
|
||||
Xemake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local ddest="${ED}/${dest}"
|
||||
dodir "${dest}"
|
||||
|
||||
dodoc README NEWS AUTHORS
|
||||
dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
|
||||
|
||||
cd openjdk.build/j2sdk-image || die
|
||||
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
# Don't hide classes
|
||||
rm lib/ct.sym || die
|
||||
|
||||
#402507
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
|
||||
# doins can't handle symlinks.
|
||||
cp -vRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
|
||||
|
||||
if use doc; then
|
||||
# java-pkg_dohtml needed for package-list #302654
|
||||
java-pkg_dohtml -r ../docs/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir "${dest}/share";
|
||||
cp -vRP demo sample "${ddest}/share/" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Fix the permissions.
|
||||
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
|
||||
|
||||
# Needs to be done before generating cacerts
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# We need to generate keystore - bug #273306
|
||||
einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
|
||||
mkdir "${T}/certgen" && cd "${T}/certgen" || die
|
||||
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
|
||||
for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
|
||||
openssl x509 -text -in "${c}" >> all.crt || die
|
||||
done
|
||||
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
|
||||
cp -vRP cacerts "${ddest}/jre/lib/security/" || die
|
||||
chmod 644 "${ddest}/jre/lib/security/cacerts" || die
|
||||
|
||||
# Bug 390663
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
||||
insinto "${dest}"/jre/lib
|
||||
doins "${T}"/fontconfig.Gentoo.properties
|
||||
|
||||
set_java_env "${FILESDIR}/icedtea.env"
|
||||
if ! use X || ! use alsa || ! use cups; then
|
||||
java-vm_revdep-mask "${dest}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<=dev-java/icedtea-6.1.10.4:${SLOT}"; then
|
||||
# portage would preserve the symlink otherwise, related to bug #384397
|
||||
rm -f "${EROOT}/usr/lib/jvm/icedtea6"
|
||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-6*"
|
||||
elog "has changed from 'icedtea6' to 'icedtea-6' starting from version 6.1.10.4-r1"
|
||||
elog "If you had icedtea6 as system VM, the change should be automatic, however"
|
||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||
fi
|
||||
}
|
@ -1,6 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX jfreechart-1.0.13-build.xml.patch 2919 SHA256 4969addf776a91c81f853d830fb3fc12fe6bb255610b3fb2ad07c043dbad9f2f SHA512 e8c9c2ba3bad8dfb7dded05a14c8166cd9af5733ee630f5e556011fbbb106b8ede19d20ad43aa34d2e6bd0a32dbcf3606e0ee5bcee49ea9303f63cbd405bf720 WHIRLPOOL 524fa81a1bdd859de21958325277985a93e5b625d1bb9384ad37e156d019d38350717c84eb702072aff65c028eac2a39868b5dbd3dc48e4888f20d1ebe2abff5
|
||||
AUX jfreechart-1.0.14-build.xml.patch 1344 SHA256 6e3cbbf4e20d7bb875918d770e6e5c74fa8464e7c02eb7f9e282b3ed30ddd655 SHA512 e72381bc3fae04c4943adad94e1ce810d2752e4ba5eba81f3cfe400ccadddb2a10c904629c01854677c6030ff8a6fe7ca146a28b324b06c0d2d2f262de2bc29e WHIRLPOOL f3a846f50163362d3f8a19977eda33ea35de57c15fd344096aaf87f354d815478326dc88ef93b23368b4c12549f7d2bb63d84d45f7cc281fe6c993439a20b15e
|
||||
AUX jfreechart-1.0.14-fix-TimeSeriesCollectionTests.patch 1169 SHA256 b417b3bbc1cb26a023e2c318eca05dd52aead8ff740d4d5bb97e784298c23671 SHA512 5bfd978a90d94dafa1c8c8c8f8c58fe8a85ca25b530f49fd1c9940d9ee191cb2bf90606db569e70043bc54c0ca6d25d0825d276b45fb8c0f47030a17e42df30f WHIRLPOOL 66346b7e0658d9087466ec4300aaecb33a9a38fffd792afe4a6e4f5a2cc09c41916797c1c002c3a297de6cf345f4a42162bd66ed1d5b51cabba3b090e8f02a73
|
||||
AUX jfreechart-1.0.4-build.xml.patch 396 SHA256 2f94895138b874ac2e5023e17eb6bb4daccb3e9eb709c81c5e908ef20fdd57d9 SHA512 6634f89711ec650eda5f94f6353081db2fab99137deaf105258a68121e8bdc0be37c3060caa021712eae7692ebb96029c3b14f05cff2e1ad1192d0e8ac4bcbd3 WHIRLPOOL 081e550aa0d593dd6e956cc86ed204b63279e485eed529b23741799321be6c2f2d89471c7bbc3f930c6443a3c766423b5da8e01e045ef0bc092837ee5a959dd4
|
||||
DIST jfreechart-1.0.13.tar.gz 6306139 SHA256 8b8286cc86d898961f307bcba1f8b6f6471bd0e921562adf573f2758b090c175 SHA512 6b4e2079fa4eb4cebec709a95e7b1bff4d7233dbdd26c7e3173e75fc29facc9accc64039a62e5d89c83c3aedbd9cd9bc42d5de79f77de08d7027dba8ba9a4d68 WHIRLPOOL 0dbf55f4b53687eb31116c9ba6ab556296a7f915ffc859ddda739ca2bf633e31da6c692289a08859a315e7cb53e571c54fa117d666ed9ca3f789c891597444b6
|
||||
DIST jfreechart-1.0.14.tar.gz 6376551 SHA256 9250d0ab465fed67aa6f48090854258d9d0053f519ca534e267a8bb84a6727f2 SHA512 4d2344553032aa138143d88ad91942ffc66385d90b3d8f279f4257ef2273012580e99a60107baffefa3ea4e33cb0bad9e656a42747a4d0132642d5b9cb27da7b WHIRLPOOL 13cd39d4f287291eed725ba0229f44187b63466348c347c7acb0e6137d3c638136d1d973e8fdac31c7aec32793bf3864cc339df01abf0588763a77052a351e4d
|
||||
EBUILD jfreechart-1.0.13.ebuild 1843 SHA256 5f6a1a7e98fbfd2e44b37d07c35e50eb15637ecadb12ac164fd06b5a3d07c8fb SHA512 5c6dc360bb22f4fd00dacb17b820bdace08c41da967543c5678216f3ec256ea2ecd7e65de091179c6a8be60e48e6b6bf875a14e46476eb1c02877c3cf53936c9 WHIRLPOOL 5afe9fce735b198c431bafd5b620d9b3d448ba958efc71a5ade13b011e6549b5f3eccad549d1c1a43059a4bc7344fe25d2eaa0f96be69ab1968715f2d2f1ac28
|
||||
MISC ChangeLog 7795 SHA256 0512c4c884205dbb96a7b06db825e7c058048c16081407da33200fa6cdde818c SHA512 b86646c31cc1e895df658451dfb37f28affe2a20e61ac8274fe3d9bca56063866592e23eaf9db3dffd96b8a095274c16a9dc01974a1e5966bc887ff7d70af800 WHIRLPOOL 8244f22762bed22c466920948fbbc33c8627af6bc23c3dce88cf557abe07403cb1bf8a03f63c3369fec561f6bd9b1ac439e2e68628a596f2af5d1257084f94f0
|
||||
MISC metadata.xml 157 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 SHA512 bbae663e26f48fdc5e272adc2b06c14f77f34c53caf84acb53908ff036e7c12a3edbbc0929d2db56bee861a453381d979c7e0983a23716f629ed2135c22ffece WHIRLPOOL 887e153e2481e7d76f0f1b67a395f10f0328b93930185ecdb8fcb5fe3c50f839086a18831d61cf45b34657aaffca6c3b7900cf3c04b712846a05027a84602448
|
||||
EBUILD jfreechart-1.0.14.ebuild 2148 SHA256 94b674b7402ed0dda668ea9547c366b8afee54639549bfa425dccfc804487d5f SHA512 f377c028247e80134b6b03049874801808b10cc5633791420bf6c01291bc6b339d980c92bf6dd3dceaf6bc3035cd91f88e63f5e3f58531c949d16e5df85aedd2 WHIRLPOOL b0361e96951dae9d97af49ea4aacf4655bda1dc41ad596fd3331c0e0f6a643a7263277d7f40f4e1900e6bd57409e8b7b8d71f4cb8c097a5a2bcf250e4a2f132a
|
||||
MISC ChangeLog 8118 SHA256 a5e97a22efe565a962db605094150c20c8bd6c19ced07a3dfce2bb3cbf171cac SHA512 27dbe8be0955cc30b70b3a4a2f756646ae5937fb7e789d54654b87ab600160ed513bf151d467c1a1486912ff0e601988e7c78ac96a568b3feba7abb75b3cea63 WHIRLPOOL 97e2c5a73f25a28720f97fe4b320907456f89c13b9a2cfba91d5abd9d8daea94091f42ac5286d4d7badead96b554ff2b0d3c188fa04f061088122c155a1c0fc7
|
||||
MISC metadata.xml 239 SHA256 b2a6244ef3f3b6f51b8c4389815ea60713c6dd0758b8a64bf9b3c5a03bc06873 SHA512 06769efd2b3f33e77c910d4f3509f1657d90e772b0751c901697ec8044cf5b8a3c64c4c4d30e786c5939c17c72889e4885d9a36d97ac3e15c829f2a086b8f7c2 WHIRLPOOL e4f6f9c71b81271cba96f24bcfa107bc1d7492519e18d5bd42792e53bd70bc1387b479ac17ea9a993c4ad96fc2ea2fb81d367f7baf86dfc9cf19d94d5ea8f8c9
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQEcBAEBCAAGBQJRnMNOAAoJEJWyH81tNOV9mHEH/0G8g59zjjbinP9EgmYjIIch
|
||||
84lddDOigVUWwbKg3F1ahvhvWoqp0VUV/rQ0sPcMLB+nziQkMSvTHN1vLYlqqKVC
|
||||
O53562rK5ITBUBeaF6VTfgD0/2V686+NTPqbv5jVoiwdFvubX/LqFLDGVdiP8sIN
|
||||
SeGVp6vc5A5B86wXhFdIZoJCRZw7Uk6u2CjrYeSL441gqdEJVr4SBhCIedO6HZh2
|
||||
QyrSAqB3xaUW6HlpXeQhgSCw9xBM/JS2hYFzWq1UelBCpspT8dxSXQMcLQXhfZF5
|
||||
Ao0ISUtf6vHDh4yo9wydDbyGqBfeB7CFQdrNnQBlZUXP37wDsvBbZUQ19ir7Dzw=
|
||||
=wgY+
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,35 @@
|
||||
--- a/ant/build.xml 2011-11-20 22:40:13.000000000 +0100
|
||||
+++ b/ant/build.xml 2013-03-09 14:10:53.987970148 +0100
|
||||
@@ -40,11 +40,9 @@
|
||||
<available classname="java.lang.Annotation" property="src.version" value="1.5"/>
|
||||
<available classname="java.lang.Annotation" property="target.version" value="1.5"/>
|
||||
<path id="build.classpath">
|
||||
- <fileset dir="${basedir}/lib/">
|
||||
- <include name="${jcommon.name}-${jcommon.version}.jar"/>
|
||||
- <include name="servlet.jar"/>
|
||||
- <include name="gnujaxp.jar" unless="JDK1.4+"/>
|
||||
- </fileset>
|
||||
+ <pathelement location="${jcommon.jar}"/>
|
||||
+ <pathelement location="${servlet.jar}"/>
|
||||
+ <pathelement location="${gnujaxp.jar}"/>
|
||||
</path>
|
||||
|
||||
</target>
|
||||
@@ -321,7 +319,7 @@
|
||||
|
||||
<!-- COMPILE THE JUNIT TESTS. -->
|
||||
<target name="compile-tests"
|
||||
- depends="compile,compile-experimental"
|
||||
+ depends="initialise"
|
||||
description="Compile the test code">
|
||||
|
||||
<mkdir dir="${basedir}/build-tests"/>
|
||||
@@ -354,7 +352,7 @@
|
||||
<junit printSummary="yes"
|
||||
haltonerror="true"
|
||||
haltonfailure="true"
|
||||
- fork="true"
|
||||
+ fork="false"
|
||||
dir=".">
|
||||
|
||||
<sysproperty key="basedir" value="."/>
|
@ -0,0 +1,24 @@
|
||||
--- a/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java 2011-11-20 22:40:13.000000000 +0100
|
||||
+++ b/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java 2013-05-21 00:18:03.840041846 +0200
|
||||
@@ -339,6 +339,10 @@
|
||||
* java.util.List, boolean)} method.
|
||||
*/
|
||||
public void testFindDomainBounds() {
|
||||
+ // store the current time zone
|
||||
+ TimeZone saved = TimeZone.getDefault();
|
||||
+ TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
|
||||
+
|
||||
TimeSeriesCollection dataset = new TimeSeriesCollection();
|
||||
List visibleSeriesKeys = new java.util.ArrayList();
|
||||
Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys,
|
||||
@@ -351,10 +355,6 @@
|
||||
r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
|
||||
assertNull(r);
|
||||
|
||||
- // store the current time zone
|
||||
- TimeZone saved = TimeZone.getDefault();
|
||||
- TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
|
||||
-
|
||||
s1.add(new Year(2008), 8.0);
|
||||
r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
|
||||
assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.14.ebuild,v 1.1 2013/05/22 13:10:16 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="JFreeChart is a free Java class library for generating charts"
|
||||
HOMEPAGE="http://www.jfree.org/jfreechart"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="+servlet test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-java/itext-2.1.5:0
|
||||
>=dev-java/jcommon-1.0.17:1.0
|
||||
servlet? ( java-virtuals/servlet-api:2.3 )"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEPEND}
|
||||
test? ( dev-java/ant-junit:0 )"
|
||||
|
||||
RDEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
JAVA_PKG_FILTER_COMPILER="jikes"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-build.xml.patch"
|
||||
|
||||
# Fix test failure, obtained from
|
||||
# http://sourceforge.net/p/jfreechart/bugs/1100/
|
||||
epatch "${FILESDIR}/${P}-fix-TimeSeriesCollectionTests.patch"
|
||||
|
||||
rm -v *.jar lib/*.jar || die
|
||||
|
||||
if ! use servlet; then
|
||||
rm -rf source/org/jfree/chart/servlet || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Note that compile-experimental depends on compile so it is sufficient to run
|
||||
# just compile-experimental
|
||||
eant -f ant/build.xml compile-experimental $(use_doc) $(get_jars)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# X11 tests are disabled using java.awt.headless=true
|
||||
ANT_TASKS="ant-junit" \
|
||||
ANT_OPTS="-Djava.awt.headless=true -Duser.timezone=UTC" \
|
||||
eant -f ant/build.xml test $(get_jars)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar lib/${P}.jar ${PN}.jar
|
||||
java-pkg_newjar lib/${P}-experimental.jar ${PN}-experimental.jar
|
||||
|
||||
dodoc README.txt ChangeLog NEWS
|
||||
|
||||
use doc && java-pkg_dojavadoc javadoc
|
||||
use source && java-pkg_dosrc source/org
|
||||
}
|
||||
|
||||
get_jars() {
|
||||
local antflags="
|
||||
-Ditext.jar=$(java-pkg_getjar itext iText.jar) \
|
||||
-Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar)"
|
||||
|
||||
use servlet && antflags="${antflags} \
|
||||
-Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
|
||||
|
||||
use test && antflags="${antflags} \
|
||||
-Djunit.jar=$(java-pkg_getjars --build-only junit)"
|
||||
|
||||
echo "${antflags}"
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-3.0.1.ebuild,v 1.1 2013/05/23 14:58:48 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
|
||||
|
||||
BCP=${PN}-20130129.bash_completion
|
||||
DESCRIPTION="Language and environment for statistical computing and graphics"
|
||||
HOMEPAGE="http://www.r-project.org/"
|
||||
SRC_URI="
|
||||
mirror://cran/src/base/R-3/${P}.tar.gz
|
||||
bash-completion? ( http://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2 )"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x64-macos"
|
||||
IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
|
||||
REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
|
||||
|
||||
CDEPEND="
|
||||
app-arch/bzip2
|
||||
app-text/ghostscript-gpl
|
||||
dev-libs/libpcre
|
||||
virtual/blas
|
||||
cairo? ( x11-libs/cairo[X] x11-libs/pango )
|
||||
icu? ( dev-libs/icu )
|
||||
jpeg? ( virtual/jpeg )
|
||||
lapack? ( virtual/lapack )
|
||||
perl? ( dev-lang/perl )
|
||||
png? ( media-libs/libpng )
|
||||
readline? ( sys-libs/readline )
|
||||
tk? ( dev-lang/tk )
|
||||
X? ( x11-libs/libXmu x11-misc/xdg-utils )"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
virtual/latex-base
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
)"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
( || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) )
|
||||
app-arch/xz-utils
|
||||
java? ( >=virtual/jre-1.5 )"
|
||||
|
||||
RESTRICT="minimal? ( test )"
|
||||
|
||||
R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
|
||||
|
||||
pkg_setup() {
|
||||
if use openmp; then
|
||||
FORTRAN_NEED_OPENMP=1
|
||||
tc-has-openmp || die "Please enable openmp support in your compiler"
|
||||
fi
|
||||
fortran-2_pkg_setup
|
||||
filter-ldflags -Wl,-Bdirect -Bdirect
|
||||
# avoid using existing R installation
|
||||
unset R_HOME
|
||||
# Temporary fix for bug #419761
|
||||
if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
|
||||
append-flags -fno-ipa-cp-clone
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# gentoo bug #322965 (not applied upstream)
|
||||
# https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14505
|
||||
epatch "${FILESDIR}"/${PN}-2.11.1-parallel.patch
|
||||
|
||||
# respect ldflags (not applied upstream)
|
||||
# https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506
|
||||
epatch "${FILESDIR}"/${PN}-2.12.1-ldflags.patch
|
||||
|
||||
# gentoo bug #383431
|
||||
# https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14951
|
||||
epatch "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch
|
||||
|
||||
# https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14953
|
||||
epatch "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
|
||||
|
||||
# fix packages.html for doc (gentoo bug #205103)
|
||||
sed -i \
|
||||
-e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
|
||||
src/library/tools/R/Rd.R || die
|
||||
|
||||
# fix Rscript path when installed (gentoo bug #221061)
|
||||
sed -i \
|
||||
-e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
|
||||
src/unix/Makefile.in || die "sed unix Makefile failed"
|
||||
|
||||
# fix HTML links to manual (gentoo bug #273957)
|
||||
sed -i \
|
||||
-e 's:\.\./manual/:manual/:g' \
|
||||
$(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
|
||||
|
||||
use lapack && \
|
||||
export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
|
||||
|
||||
if use X; then
|
||||
export R_BROWSER="$(type -p xdg-open)"
|
||||
export R_PDFVIEWER="$(type -p xdg-open)"
|
||||
fi
|
||||
use perl && \
|
||||
export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
|
||||
|
||||
# don't search /usr/local
|
||||
sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
|
||||
# Fix for Darwin (OS X)
|
||||
if use prefix; then
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
sed -i \
|
||||
-e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
|
||||
-e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
|
||||
-e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
|
||||
-e "/SHLIB_EXT/s/\.so/.dylib/" \
|
||||
configure.ac || die
|
||||
# sort of "undo" 2.14.1-rmath-shared.patch
|
||||
sed -i \
|
||||
-e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
|
||||
src/nmath/standalone/Makefile.in || die
|
||||
else
|
||||
append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
|
||||
fi
|
||||
fi
|
||||
AT_M4DIR=m4 eaclocal
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-byte-compiled-packages \
|
||||
--enable-R-shlib \
|
||||
--disable-R-framework \
|
||||
--with-system-zlib \
|
||||
--with-system-bzlib \
|
||||
--with-system-pcre \
|
||||
--with-system-xz \
|
||||
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
$(use_enable nls) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable profile R-profiling) \
|
||||
$(use_enable profile memory-profiling) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable static-libs R-static-lib) \
|
||||
$(use_with cairo) \
|
||||
$(use_with icu ICU) \
|
||||
$(use_with jpeg jpeglib) \
|
||||
$(use_with lapack) \
|
||||
$(use_with !minimal recommended-packages) \
|
||||
$(use_with png libpng) \
|
||||
$(use_with readline) \
|
||||
$(use_with tiff libtiff) \
|
||||
$(use_with tk tcltk) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
emake AR="$(tc-getAR)"
|
||||
emake -C src/nmath/standalone shared $(use static-libs && echo static) AR="$(tc-getAR)"
|
||||
use doc && emake info pdf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" install-info install-pdf
|
||||
dosym ../manual /usr/share/doc/${PF}/html/manual
|
||||
fi
|
||||
|
||||
cat > 99R <<-EOF
|
||||
LDPATH=${R_DIR}/lib
|
||||
R_HOME=${R_DIR}
|
||||
EOF
|
||||
doenvd 99R
|
||||
use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN}
|
||||
# The buildsystem has a different understanding of install_names than what
|
||||
# we require. Since it builds modules like shared objects (wrong), many
|
||||
# objects (all modules) get an incorrect install_name. Fixing the build
|
||||
# system here is not really trivial.
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
local mod
|
||||
pushd "${ED}"/usr/lib/R > /dev/null
|
||||
for mod in $(find . -name "*.dylib") ; do
|
||||
mod=${mod#./}
|
||||
install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
|
||||
"${mod}"
|
||||
done
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use java; then
|
||||
einfo "Re-initializing java paths for ${P}"
|
||||
R CMD javareconf
|
||||
fi
|
||||
}
|
@ -1,51 +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/libnl/libnl-3.2.16.ebuild,v 1.6 2013/05/21 16:40:25 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/${PN}/files/${P}.tar.gz
|
||||
doc? ( http://www.infradead.org/~tgr/${PN}/files/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
LICENSE="LGPL-2.1 doc? ( GPL-2 ) utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="doc static-libs utils"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
if use doc ; then
|
||||
mv "${WORKDIR}"/${PN}-doc-3.2.15 "${WORKDIR}"/${PN}-doc-${PV} \
|
||||
|| die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use doc; then
|
||||
dohtml -r \
|
||||
-a css,html,js,map,png \
|
||||
"${WORKDIR}"/${PN}-doc-${PV}/*
|
||||
fi
|
||||
|
||||
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib*.la
|
||||
|
||||
dodoc ChangeLog
|
||||
}
|
@ -1,47 +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/libnl/libnl-3.2.18.ebuild,v 1.2 2013/05/21 16:40:25 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/${PN}/files/${P}.tar.gz
|
||||
doc? ( http://www.infradead.org/~tgr/${PN}/files/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
LICENSE="LGPL-2.1 doc? ( GPL-2 ) utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="doc static-libs utils"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use doc; then
|
||||
dohtml -r \
|
||||
-a css,html,js,map,png \
|
||||
"${WORKDIR}"/${PN}-doc-${PV}/*
|
||||
fi
|
||||
|
||||
prune_libtool_files $(usex static-libs --modules --all)
|
||||
|
||||
dodoc ChangeLog
|
||||
}
|
@ -1,47 +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/libnl/libnl-3.2.19.ebuild,v 1.2 2013/05/21 16:40:25 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/${PN}/files/${P}.tar.gz
|
||||
doc? ( http://www.infradead.org/~tgr/${PN}/files/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
LICENSE="LGPL-2.1 doc? ( GPL-2 ) utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="doc static-libs utils"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use doc; then
|
||||
dohtml -r \
|
||||
-a css,html,js,map,png \
|
||||
"${WORKDIR}"/${PN}-doc-${PV}/*
|
||||
fi
|
||||
|
||||
prune_libtool_files $(usex static-libs --modules --all)
|
||||
|
||||
dodoc ChangeLog
|
||||
}
|
@ -1,49 +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/libnl/libnl-3.2.20.ebuild,v 1.2 2013/05/21 16:40:25 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/${PN}/files/${P}.tar.gz
|
||||
doc? ( http://www.infradead.org/~tgr/${PN}/files/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
LICENSE="LGPL-2.1 doc? ( GPL-2 ) utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="doc static-libs utils"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-rtnl_tc_get_ops.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-cache-api.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use doc; then
|
||||
dohtml -r \
|
||||
-a css,html,js,map,png \
|
||||
"${WORKDIR}"/${PN}-doc-${PV}/*
|
||||
fi
|
||||
|
||||
prune_libtool_files $(usex static-libs --modules --all)
|
||||
|
||||
dodoc ChangeLog
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1-r2.ebuild,v 1.2 2013/05/22 22:05:14 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
# A few tests fail with python3.3 :(
|
||||
PYTHON_COMPAT=( python{3_1,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
MY_PN="BeautifulSoup"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="HTML/XML parser for quick-turnaround applications like screen-scraping."
|
||||
HOMEPAGE="http://www.crummy.com/software/BeautifulSoup/ http://pypi.python.org/pypi/BeautifulSoup"
|
||||
SRC_URI="http://www.crummy.com/software/${MY_PN}/download/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="python-3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!dev-python/beautifulsoup:0"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
PATCHES=( "${FILESDIR}/${P}-python-3.patch" )
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" BeautifulSoupTests.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
# Delete useless files.
|
||||
rm -r "${ED%/}/usr/bin" || die
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
=== modified file 'bs4/testing.py'
|
||||
--- bs4/testing.py 2013-05-07 12:19:02 +0000
|
||||
+++ bs4/testing.py 2013-05-20 13:19:16 +0000
|
||||
@@ -464,6 +464,18 @@
|
||||
self.assertEqual(
|
||||
soup.encode("utf-8"), markup)
|
||||
|
||||
+ def test_formatter_processes_script_tag_for_xml_documents(self):
|
||||
+ doc = """
|
||||
+ <script type="text/javascript">
|
||||
+ </script>
|
||||
+"""
|
||||
+ soup = BeautifulSoup(doc, "xml")
|
||||
+ # lxml would have stripped this while parsing, but we can add
|
||||
+ # it later.
|
||||
+ soup.script.string = 'console.log("< < hey > > ");'
|
||||
+ encoded = soup.encode()
|
||||
+ self.assertTrue(b"< < hey > >" in encoded)
|
||||
+
|
||||
def test_popping_namespaced_tag(self):
|
||||
markup = '<rss xmlns:dc="foo"><dc:creator>b</dc:creator><dc:date>2012-07-02T20:33:42Z</dc:date><dc:rights>c</dc:rights><image>d</image></rss>'
|
||||
soup = self.soup(markup)
|
||||
|
||||
=== modified file 'bs4/tests/test_lxml.py'
|
||||
--- bs4/tests/test_lxml.py 2013-05-09 19:36:30 +0000
|
||||
+++ bs4/tests/test_lxml.py 2013-05-20 13:19:16 +0000
|
||||
@@ -10,6 +10,7 @@
|
||||
LXML_VERSION = lxml.etree.LXML_VERSION
|
||||
except ImportError, e:
|
||||
LXML_PRESENT = False
|
||||
+ LXML_VERSION = (0,)
|
||||
|
||||
from bs4 import (
|
||||
BeautifulSoup,
|
||||
@@ -47,7 +48,7 @@
|
||||
# test if an old version of lxml is installed.
|
||||
|
||||
@skipIf(
|
||||
- LXML_VERSION < (2,3,5,0),
|
||||
+ not LXML_PRESENT or LXML_VERSION < (2,3,5,0),
|
||||
"Skipping doctype test for old version of lxml to avoid segfault.")
|
||||
def test_empty_doctype(self):
|
||||
soup = self.soup("<!DOCTYPE>")
|
||||
|
||||
=== modified file 'bs4/tests/test_tree.py'
|
||||
--- bs4/tests/test_tree.py 2013-05-14 12:39:16 +0000
|
||||
+++ bs4/tests/test_tree.py 2013-05-20 13:19:16 +0000
|
||||
@@ -1344,18 +1344,6 @@
|
||||
encoded = BeautifulSoup(doc).encode()
|
||||
self.assertTrue(b"< < hey > >" in encoded)
|
||||
|
||||
- def test_formatter_processes_script_tag_for_xml_documents(self):
|
||||
- doc = """
|
||||
- <script type="text/javascript">
|
||||
- </script>
|
||||
-"""
|
||||
- soup = BeautifulSoup(doc, "xml")
|
||||
- # lxml would have stripped this while parsing, but we can add
|
||||
- # it later.
|
||||
- soup.script.string = 'console.log("< < hey > > ");'
|
||||
- encoded = soup.encode()
|
||||
- self.assertTrue(b"< < hey > >" in encoded)
|
||||
-
|
||||
def test_prettify_leaves_preformatted_text_alone(self):
|
||||
soup = self.soup("<div> foo <pre> \tbar\n \n </pre> baz ")
|
||||
# Everything outside the <pre> tag is reformatted, but everything
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.14.1-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Cython"
|
||||
MY_P="${MY_PN}-${PV/_/}"
|
||||
|
||||
DESCRIPTION="The Cython compiler for writing C extensions for the Python language"
|
||||
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
|
||||
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
||||
|
||||
DOCS="README.txt ToDo.txt USAGE.txt"
|
||||
PYTHON_MODNAME="Cython cython.py pyximport"
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
"$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
|
||||
|
||||
if use doc; then
|
||||
# "-A c" is for ignoring of "Doc/primes.c".
|
||||
dohtml -A c -r Doc/* || die "Installation of documentation failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r Demos/* || die "Installation of examples failed"
|
||||
fi
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.14.1.ebuild,v 1.8 2012/02/20 10:04:45 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Cython"
|
||||
MY_P="${MY_PN}-${PV/_/}"
|
||||
|
||||
DESCRIPTION="The Cython compiler for writing C extensions for the Python language"
|
||||
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
|
||||
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
||||
|
||||
DOCS="README.txt ToDo.txt USAGE.txt"
|
||||
PYTHON_MODNAME="Cython cython.py pyximport"
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
"$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
# "-A c" is for ignoring of "Doc/primes.c".
|
||||
dohtml -A c -r Doc/* || die "Installation of documentation failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r Demos/* || die "Installation of examples failed"
|
||||
fi
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.15.1-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
MY_PN="Cython"
|
||||
MY_P="${MY_PN}-${PV/_/}"
|
||||
|
||||
DESCRIPTION="Compiler for writing C extensions for the Python language"
|
||||
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
|
||||
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples numpy"
|
||||
|
||||
DEPEND="numpy? ( >=dev-python/numpy-1.6.1-r1 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV%_*}"
|
||||
|
||||
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
||||
|
||||
DOCS="README.txt ToDo.txt USAGE.txt"
|
||||
PYTHON_MODNAME="Cython cython.py pyximport"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-test.patch
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
"$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
|
||||
|
||||
if use doc; then
|
||||
# "-A c" is for ignoring of "Doc/primes.c".
|
||||
dohtml -A c -r Doc/* || die "Installation of documentation failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r Demos/* || die "Installation of examples failed"
|
||||
fi
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.19.ebuild,v 1.1 2013/05/23 08:26:53 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="Cython"
|
||||
MY_P="${MY_PN}-${PV/_/}"
|
||||
|
||||
DESCRIPTION="A Python to C compiler"
|
||||
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
|
||||
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc test"
|
||||
|
||||
# Note: update numpy dep when it is fixed for py3.3.
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )
|
||||
test? (
|
||||
>=dev-python/numpy-1.6.1-r1[$(python_gen_usedep 'python2*' 'python3_[12]' )]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV%_*}"
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2* ]]; then
|
||||
local CFLAGS CXXFLAGS
|
||||
append-flags -fno-strict-aliasing
|
||||
fi
|
||||
|
||||
# Python gets confused when it is in sys.path before build.
|
||||
local PYTHONPATH
|
||||
export PYTHONPATH
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt )
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/flask/flask-0.9-r2.ebuild,v 1.1 2013/05/23 00:32:56 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
|
||||
MY_PN="Flask"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/Flask"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples test"
|
||||
|
||||
RDEPEND="dev-python/blinker[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.4[$(python_gen_usedep python2_5)]
|
||||
>=dev-python/jinja-2.4[$(python_gen_usedep python{2_6,2_7} 'pypy*')]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/werkzeug-0.6.1[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" run-tests.py || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -1,27 +1,17 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
Hash: SHA256
|
||||
|
||||
DIST html5lib-0.90.zip 99322 SHA256 765e04a2c8a08db9209a46887e5244200bed0068f74fdd87fdc219a0c3a1401f SHA512 eb882a55d116d26760956f03214e79c533efa887db5d098cae09a3a40fa870414a6cd2e5a14a6d1bacb9fbc1dc0668e1f9ca99e54ab4ce539f89a68b38883437 WHIRLPOOL e658ba01e67506f6252a365b1cfdabae034cb77c1eb6952c1256d4aedab0ab9ac590e5eee98f6c988af0cd9dbb9c9b5556832f6622fc181fab5baa94c8de83a1
|
||||
DIST html5lib-0.95.tar.gz 222614 SHA256 a6e707d9cb17c8bf1e553713ad14b31274a81d5c0ce0fce21b02936d0efd7dbb SHA512 95c8221fb265b0a931636658170fc0c8a95b16c48576d5aa85ea3c6b088e6039f3f8d66cec67e0e497a63394bbf178b0251c0b9897ea9d1c2d5ae90ca35da464 WHIRLPOOL 355aedaea043231b7c473b2b6fb0455c57a8bedb315a83aeadede9298a484ca4a34584901d5bef4ff2320bef894d562559965350fdec5c5fdad75b63e6abc8a6
|
||||
EBUILD html5lib-0.90.ebuild 884 SHA256 82f2e3a97efdeb6e72ee6ce0e5c39fe74440ff94c63dbd2e578cef6327be3f3d SHA512 1cac156bbd054b982254a40c65311d2967cb05d9f7d95719eb0e53b13cf58dc3fc0528b866da87a15b52ed1da037d6d65a92a23f217a1fbf525bc1abd329096e WHIRLPOOL e9a70ee09f8845a5065c4996804fff1e8880fbf533711e87485f9214f6f05740c632da2135d2d82734fa2447a5231cd0df4af2a1cbfac7760b5b5f2ff377f5a6
|
||||
EBUILD html5lib-0.95-r1.ebuild 1014 SHA256 67b0147c6fd3584c5a4fd10d5c6b932b9089f215374ecfd52bd070fa377f9af3 SHA512 99e0d7a054301342ddcefd43f91b93cacec92bb8eb045172ecdc7e226376ae1c50786b7ecce50139dfcc3a7075f9c5717d32adfe271d7d8fe5de074cb884c85a WHIRLPOOL bd99886d8df5870723749172b7cbdd04ebcd281bd810886d2853795357b30b9b1ea41e99da29e63d4553449912678bafea40ab287c70c8c6b17d37472759349d
|
||||
EBUILD html5lib-0.95-r1.ebuild 1020 SHA256 c2e80d5dec83a2c3357efda52bbf75425e29b91905e60602760b36cdad1e2efc SHA512 a5476144d24024ec79425cee36c7e50d9a25d901c8ea2392aa1b977eb8f8d76ef4d6df250642ff05b72d87d008c21d7264caa705f4a1260c474c6385cd0aa2b3 WHIRLPOOL 52c4bec15790949a27fd365781047092f1308e129e2a58a38a304e005da4cfe819cbddd796668917f4df087df187ffe8a03505c16112c2880acb1bac2475d889
|
||||
EBUILD html5lib-0.95.ebuild 656 SHA256 7d55b1d84978b5be2aa0921f5ef21dc95280c9d9bc38ff56c52d06e3007f8e92 SHA512 b3bc972cc01d0faafcb201d3595f0780081596aeeab55aed588dae236186f0921ef63d4d907f96031dbde6d296df2239731902ac29c597be5ad44fb7a6e04c78 WHIRLPOOL eca3df12f53681cde3770917298150f5ff93697a5ecc69803fd95e2599722c7dc5bb892c1921a40ead2303a240f3e904d11721a1cda709e05a6cb44ffd3dc47f
|
||||
MISC ChangeLog 2396 SHA256 6e652dbbbd9549409b529a7dc28a6be151645c3c33469501df4111a23b79f67e SHA512 f909ddd8fa13316691f9a35a703cfed0d7c9fc90d005e3ffbf5e016e9c7907af38a599902805da1ca94282b899185d8216b4cd5fd2b3a1092103201f08c76ef1 WHIRLPOOL e62d59133568f2e2a1fdfb3e39b4d300f817cf4655d7ef1c9f3ce6dba291dc10b84b7e1fe3e7ebed793203822c3b9d887fc160c7764109b1af51b3e5e287ca84
|
||||
MISC ChangeLog 2499 SHA256 22a5bac817179cd692bf56d194f3fda8cb81323be639ebfc433a4d6fb9474e7d SHA512 4f34a956b31751fce4d41714d2a3a4026de623d81c5b15a7247ce1077f407ba447f433f5b7164aef3e09f6babd775c892499cc074040565977b642ae04a48cbf WHIRLPOOL 8dfc7d978f3a4e5185f67c0ac7a612b8637a168ea94e7a018b67261f43f93d43eeaf7d9179925c65f7b518a5d977baabea6b45b7a006f779e2acec66ab083437
|
||||
MISC metadata.xml 238 SHA256 5ac01bb390c132fc90c93c84a7a8c9d43bb9955eb78a7989bb160cd25f7a4a5d SHA512 5a1cf952cb3e44b4104658d9207ccd827cc33011d840cc062da600255f942162ced8740842bb179185e599daefc24f335e049c50d90379783ad42ed9f3309fe8 WHIRLPOOL d16ef4c38de6db22ed27dbbf430ab12fa7b8867ac803dd4d8958975a7bae1e494ba29affe1fbb77fbb641f1cb6d762974271c817b11e75ea52229153d801d66c
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCgAGBQJRd5bxAAoJELp701BxlEWf5X8P/RNtHueY+z7ajK/fDgxZK36W
|
||||
acrGSFN6i5NzVCK4zLLsXZjfiOCREdKz1neuW2ry9kuBnUWoP3KpCeEvO/bWQhb5
|
||||
P9STWs3GHHhd5iLDBSxi3MjCnQ1fNYrPEIE4VcfQ9VLYJU26N/tQd2peq2qnS30m
|
||||
iEpk16vI96FM++pJ2RVcg2gEnQ8UFFR6o2jmlwxYnq6ppM7d0j19c3IqYO8e3IGN
|
||||
LuqFBf3x23k5PsBLy1ELRDY3EJJCrRmEaxjO2T84zKE1fLAZYaOH6eONn1PV6K3q
|
||||
29p3f6JVVfWwoQghLTRKWVVchsTrzbLtNpWuhHxIXNsZGcAKZXdq2LIJFjHlfR0u
|
||||
jDoy+tbQbHJGSajZc/XEZa9U7cIp1q6DYQ+9w8pHcAkaUUP6zCelHfbXA7jefEYu
|
||||
wz0XlWfPHOcZEF+e5kyyM8wXDW17LQb83h9hc9CHAyzjgSyNPjrtmNGELiIGGxNG
|
||||
0Y/rDA6shZTFr3QRZillv5IHp2b87kaWd0hoj/NayjdMAE889u3TLH4An7B3KVjE
|
||||
FJROVFElI7h952b8/IxoRXVvTY9ivO+RwRiL8VBAneHCFPp4zqUzjXraJpVctozx
|
||||
mXkTZwmUAjpn7CAC7nLW0Hf0jGHCaEnyX5hefju5evEjMHyWEC0sdPs3rO9R69lJ
|
||||
7xJtkeh1ImLN5fcLT4+B
|
||||
=TtJX
|
||||
iEYEAREIAAYFAlGc8AEACgkQVWmRsqeSphNQagCcCx80Vc2y3zSc8F01oXVUWL+C
|
||||
3ewAn1nloAVGvIz0F31+WaM0Z8oGVpLc
|
||||
=rNar
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,19 +1,21 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX jinja-2.6-python3.3.patch 2923 SHA256 ea056a4d046fb61e6f6de5a1e15d96cc64e00257e128535e68878ff265b8293a SHA512 27a5dade64e555eaefe30512a5cf3ff09bbafc83ea05d051a9a1835a7122988c5d6e93a44d50a0c4d9eaf5eb339d6dc5cf97b239f2b521b83f6609be1257f63c WHIRLPOOL df8d052bbfc24636ee2969e5dbc8e7724f2ff8c2460a003a5dd2cab188f48a3d3631ce65c357891ff2f010f81dd683c7803fd3751797e240d3da28b8c990a5ed
|
||||
AUX jinja-2.6-python3.3.patch 591 SHA256 38a97d3ffc527d9d12dcb6e103b8a214b95d8d554995f095532915e514ef5251 SHA512 430dcb663bc623c639d1863a7e0c0fd8687f601b570ea4df4fd6ddfe1a7e03c63a90bd30fb53c1ecb11fd57fdc92eb451d243be1d46c5135516d992c102a5011 WHIRLPOOL ab2d5e4fd1d769a0019296e65fff5b3323ed47067aaca9e1a6f59e3fd430bb91aa8517e46fdf7ea4e51b973cb35311d3f673b2e9dc7f948d8e8adbe40a8e8336
|
||||
AUX jinja-2.7-docs.patch 1945 SHA256 d3299aff0ed48f0b89a7ad07ba092b02696fb85692d30ec569d308e0925744f7 SHA512 5cfb134597eb3d39426a6e79d871d7381d776e9709b3a9f606c2d5772eacfb508105637e95fcab88fbf2705f3997d9d0f92bc85f92c790603c95ca1f096d013a WHIRLPOOL a27f652d0fea41df7e8b079950a1b7c928386dab954e5dab423906a4f97206573b72280c9073cacfd80f90c6ef112c9f1ffabeb45965f187daf4e288040f5eb7
|
||||
DIST Jinja2-2.6.tar.gz 389741 SHA256 a85e185375db75c109f99ecde3d55415f035e7068a82252cf4f16c667ac38f49 SHA512 6603bd6a7e4956433746da15b18b1206b67c901262337aab8352ddff154efca9eb6d652c244c63e8ffad492d204c724db3e86222ae371e75e3f5f2011244554e WHIRLPOOL d6d27867a6d4d9f82e956d5d116faae4adfb5f1fea4ecc067fec61d67eca0d16ee6dc80d8585f34a49a89a2da18c65395a4d615b5723241866ff27e3362f915f
|
||||
DIST Jinja2-2.7.tar.gz 377603 SHA256 474f1518d189ae7e318b139fecc1d30b943f124448cfa0f09582ca23e069fa4d SHA512 44d0c18babcdb84160eeea077ec6dbd63bc4669ee81b0f5849bc42a9d9665b3e6647ce64ea2e15f04940807a67f25ebcf937da217318dea3d3dc1531800422b1 WHIRLPOOL 7978e27b8b97b832ef0ba910569678c8a931593a8fae16b247b8d8e7516f08b80e4086beca00e6890c9a4dd193d3fb87c49dd40ec9e738dbb4b018df6e762b8f
|
||||
EBUILD jinja-2.6-r1.ebuild 1834 SHA256 6cc0b89c803fb4733a40953667dce8cec445963dc46dd813f4bce341a475d9bd SHA512 dc21f64353a3615fb866a4d9e40223b5f85d492def513a310a8e63e7699b67d06c66db0ffe52b40e8d602d9b4f71fa704e37cfd995b2b2b7601e9f3c737f0e14 WHIRLPOOL 37b95f984eaa5254278cb48073233e31caa14ed6a501b8e83e1df016df1e7e441db529b16d8f829e39e65938364d37180c896e30167582c38f0a5b812df81eca
|
||||
EBUILD jinja-2.6-r2.ebuild 1913 SHA256 f849c6169b0addc9f80088a25be63210547524b9757c3c8f4c4a3ef55976f127 SHA512 0faaf37cafbbed355ec8fac75268cf2d1ee4231b44fb3f94ec5522431a06001adc11405657e853682c16a2b8c69db6eb23df2c70c8b3bc8ead36c3d2ff0f2d45 WHIRLPOOL e7c0d426fbe9c48804a0d567add1986f6d69e2e6cc008bd3be96ad7a6aa79d2a328a976576ed0d77e4065be43a00601ef454086e8fdfea90d6c724f93b8b022b
|
||||
EBUILD jinja-2.6-r100.ebuild 1796 SHA256 c674d63babbf53700b1739dbcf41440bda5f1bb3071d89aecebcbf236673bfd0 SHA512 9a7996df2db53d06f91d5c5909c514f2abff041b202c3e151cf33e28a8f4c10573dfe9ebab73c9a7391a1dc31a0ec717df91b9a870824d7e91194f9a8bf12524 WHIRLPOOL c1891127e75ec5cbedfa6d657a78d922578ed119fcb7a92fc7104fb59aec256911e00324affc53bf9d60ed7e50608014bf43f61e820ca03b99e606b814c7c916
|
||||
EBUILD jinja-2.6-r2.ebuild 1894 SHA256 30e423e8d4cc103957d74be2fd21f544cffcf1b8a647ec0d7dfd50d54193d9d2 SHA512 b6ece75eee1b9f6424e8a53bbcd42d03c64252e540d6a5275283d8dc59941b6f53e09d4250f558d0329a252a1c28a15c71eb7e9f0eed8e09a622a2d7de3091ff WHIRLPOOL 58360533f339b58fc91790dbbf7bc412dbab38a001039bed2c2dc9e0f994e2e9dcdbd750f330c9bab0c0394313edcc681921230e52c175b03360a1fd37386eab
|
||||
EBUILD jinja-2.6.ebuild 1885 SHA256 ca7229d425db7195fdb936ce819b014664de41a9847face956612288e0e6a9e1 SHA512 88d8513f5132d5877704db80d320b3cf1210b56118d2bca034aa6cb4a5135fdd330cafc3439f357746c721af49d2368c095d6501e63ef14525fab0fc97034e6c WHIRLPOOL f5eb57b60bcc43905da22da49f58aaa6c4f6a23e00322281149d63588ef1d8430bad8b2364b510efa0cee760450d0855464a0a409d8e34b4e2657cb9a49b55c7
|
||||
EBUILD jinja-2.7.ebuild 1831 SHA256 9f374116604c45c0923e36e2fcb2ac65fe69882493b4b217523fda39373f67fe SHA512 1da9c0a764c5b64630c90fd38ccb8375b8dce5b1e3783a6fda354f8a00fc902de38af88f3e16108b72a35caaeab173b1b7752ef9124019b6ed48cc6be9362ddc WHIRLPOOL e6dd4ed7150e94e931e122a4b9a28ae62155d74a9a7d79f1abb9ad6e2f6443feee34b142c9a40ddb477ddfa28f32eee964162f62cc88a65c501c45162108211d
|
||||
MISC ChangeLog 13006 SHA256 423098e4719baa88a4a3f84ea534fd56aa5e9b854277a5b66e2a8ba14769541d SHA512 173715b7ee0f509248512104844b090c2e5ec089a110a0153ec11e2924bce88eba4ce84b29ba569694d99d36f6771cf719e8cbe1f399883f161c27cb9abc78a9 WHIRLPOOL ad28fada548e309fc388d4c6aad33b1c87b9226de1ad13eb5463b3bc747e1506a1c39f6fd77d85e4989e9936a57e5e84fbc67e91638ef6c6f2dd9d5f6cbf2b4d
|
||||
EBUILD jinja-2.7.ebuild 1715 SHA256 45f53cf4ab87fca4cef8d09062424009e3282d620fb936620bf6946737f861d3 SHA512 809a759807d4758a915d602f2c619a695492df60c9fee688095527da4bcd7fce5b0f41fa14242d020a7f6e113e8720c8db5f107ac987136acc16db235b85c940 WHIRLPOOL fb0f0769ef59ca4fd6fb93cc920bab463a2553a52e8b4710d72715b9e2f303e55ca225641eff185b44da79a12025562a6d74a911f225c2d4814938b037a01cb1
|
||||
MISC ChangeLog 13959 SHA256 30e13a2657454c679a654bb6cce0c3ff02e507eaa8dcef1b5db380eec2b99643 SHA512 0c50d8a212bfdeb859ba936b5923376b8b30fe6cec41a375f3b2ff3e0b3cd3efb1aeb40fa5a9706ca298504db905f9f1fb4194ac1e8e94a939cc802f4e373673 WHIRLPOOL ca256ccfdfa48b4fc0c6486fce1620aab1a9e4427704a3c5960474c125f751b3b11c35c2309441b921f4651a119ffa22be06c2cebe5eb534704093d5245ae7bf
|
||||
MISC metadata.xml 260 SHA256 bda84a3528019ac7c58b2435d70ad4a5f5c5fa29f0f8643569b4710081c2e555 SHA512 ac8108e6022705d5954c6ea7e504f0fb9dfd618c22d126ea6d22d181f6784dbd504ed705dc995cbd6c444067d43f46acb1cda58481b1c5459e4f9df7f260a81b WHIRLPOOL f6d4bb49f06a00d8ecc5d2e28ebdb80dee4dca9a77ce5d1926b45386301a2c267c943c991375ffdcde1473a8e30073803512a9e2f091e318fe6401d039c4c696
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlGaOVgACgkQxeMuLWsGW/t8RACfd1nUr61He9l4X43/wqpMqa9g
|
||||
DtYAn3yLLSf1ZsZzzglfV/0L3y2GuAmZ
|
||||
=pVIr
|
||||
iF4EAREIAAYFAlGeGRQACgkQC77qH+pIQ6TCYAEAnGxT+zxoaAobRuAuzdGURBge
|
||||
ZfvsiQ3aA1CEZ8Jbh98A+gPz21KMvrlyUojkMDU1UT4H0cbmpRO8pTsCWJ7rG1JT
|
||||
=3rZM
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,53 @@
|
||||
From da94a8b504d981cb5f877219811d169823a2095e Mon Sep 17 00:00:00 2001
|
||||
From: Armin Ronacher <armin.ronacher@active-4.com>
|
||||
Date: Mon, 20 May 2013 14:06:59 +0100
|
||||
Subject: [PATCH] Fixed docs not building
|
||||
|
||||
---
|
||||
docs/faq.rst | 2 +-
|
||||
docs/jinjaext.py | 2 +-
|
||||
docs/templates.rst | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/docs/faq.rst b/docs/faq.rst
|
||||
index 4db5079..00a4d0d 100644
|
||||
--- a/docs/faq.rst
|
||||
+++ b/docs/faq.rst
|
||||
@@ -157,7 +157,7 @@ Python 2.3 support you either have to use `Jinja 1`_ or other templating
|
||||
engines that still support 2.3.
|
||||
|
||||
My Macros are overridden by something
|
||||
-------------------------------------
|
||||
+-------------------------------------
|
||||
|
||||
In some situations the Jinja scoping appears arbitrary:
|
||||
|
||||
diff --git a/docs/jinjaext.py b/docs/jinjaext.py
|
||||
index 8395a55..3c217f8 100644
|
||||
--- a/docs/jinjaext.py
|
||||
+++ b/docs/jinjaext.py
|
||||
@@ -23,7 +23,7 @@
|
||||
from pygments.token import Keyword, Name, Comment, String, Error, \
|
||||
Number, Operator, Generic
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
-from jinja2.utils import next
|
||||
+from jinja2._compat import next
|
||||
|
||||
|
||||
def parse_rst(state, content_offset, doc):
|
||||
diff --git a/docs/templates.rst b/docs/templates.rst
|
||||
index e0a19fa..4a6a379 100644
|
||||
--- a/docs/templates.rst
|
||||
+++ b/docs/templates.rst
|
||||
@@ -579,7 +579,7 @@ Inside of a for-loop block you can access some special variables:
|
||||
| `loop.depth` | Indicates how deep in deep in a recursive loop |
|
||||
| | the rendering currently is. Starts at level 1 |
|
||||
+-----------------------+---------------------------------------------------+
|
||||
-| `loop.depth0 | Indicates how deep in deep in a recursive loop |
|
||||
+| `loop.depth0` | Indicates how deep in deep in a recursive loop |
|
||||
| | the rendering currently is. Starts at level 0 |
|
||||
+-----------------------+---------------------------------------------------+
|
||||
|
||||
--
|
||||
1.8.1.6
|
||||
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/jinja-2.6-r100.ebuild,v 1.3 2013/05/23 01:17:33 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,3_1,3_2} )
|
||||
|
||||
inherit eutils distutils-r1
|
||||
|
||||
MY_PN=Jinja2
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure Python"
|
||||
HOMEPAGE="http://jinja.pocoo.org/ http://pypi.python.org/pypi/Jinja2"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="compat"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
!<dev-python/jinja-2.7:0"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( >=dev-python/sphinx-0.6 )"
|
||||
|
||||
# XXX: handle Babel better?
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
wrap_opts() {
|
||||
local mydistutilsargs=()
|
||||
|
||||
if [[ ${EPYTHON} == python* ]]; then
|
||||
mydistutilargs+=( --with-debugsupport )
|
||||
fi
|
||||
|
||||
"${@}"
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
wrap_opts distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
cd docs || die
|
||||
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
# https://github.com/mitsuhiko/jinja2/issues/115
|
||||
2to3 -n -w --no-diffs jinjaext.py || die
|
||||
fi
|
||||
|
||||
emake html
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! has_version dev-python/Babel; then
|
||||
elog "For i18n support, please emerge dev-python/Babel."
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue