parent
0f806bef23
commit
9fac092ca4
@ -1 +1,2 @@
|
||||
DIST calamares-2.2.2.tar.gz 2015468 SHA256 d9cf132ae263a48455596d4a7e522d5199c7717dc9b7f3568cefe588082667a9 SHA512 f78dc1a4a5fc9911c4ac78f36b3e7ccb7ccf10d690778662871cc6d1010ce0fce295171a949eb6613c42d4c8a3689234138984ec7846d492a5c854f1fe513f38 WHIRLPOOL 1f9579acf64813675b076ab3efa2cc31f742cb89d53c15f1103e681af0e988df6ad086c738c56e533744b31d48afdfa2dc2a196328720a89bad557aa43202f27
|
||||
DIST calamares-2.2.3.tar.gz 2016706 SHA256 29478a25db155ba2eb9294d626d9b1f22961d3009e0f850ba039595c33c2ef4b SHA512 a13827b890a39684ff7233c19f2ff0e18f5efb7fb5c9b6ff38da9db6c454ec03c9c356ac0edebcc4598e95100a3aae51c3d7980e593e19642aa306cbe64bcc21 WHIRLPOOL 6547eb29714009afc8ba9b9810d02b5e88b460d2e3f62befa8e2f23115d73ebc70bb597bec96baa9d13d924a1ab05aadbdc60db39d5df05c7616c1a7c41ce4cf
|
||||
|
@ -0,0 +1,60 @@
|
||||
https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg01611.html
|
||||
|
||||
From 6a2909cf98e892783b2502df6f7f4de46d13e42b Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@chromium.org>
|
||||
Date: Mon, 6 Jun 2016 17:58:26 -0400
|
||||
Subject: [PATCH] crypto: aes: always rename internal symbols
|
||||
|
||||
OpenSSL's libcrypto always defines AES symbols with the same names as
|
||||
qemu's local aes code. This is problematic when enabling at least curl
|
||||
as that frequently also uses libcrypto. It might not be noticed when
|
||||
running, but if you try to statically link, everything falls down.
|
||||
|
||||
An example snippet:
|
||||
LINK qemu-nbd
|
||||
.../libcrypto.a(aes-x86_64.o): In function 'AES_encrypt':
|
||||
(.text+0x460): multiple definition of 'AES_encrypt'
|
||||
crypto/aes.o:aes.c:(.text+0x670): first defined here
|
||||
.../libcrypto.a(aes-x86_64.o): In function 'AES_decrypt':
|
||||
(.text+0x9f0): multiple definition of 'AES_decrypt'
|
||||
crypto/aes.o:aes.c:(.text+0xb30): first defined here
|
||||
.../libcrypto.a(aes-x86_64.o): In function 'AES_cbc_encrypt':
|
||||
(.text+0xf90): multiple definition of 'AES_cbc_encrypt'
|
||||
crypto/aes.o:aes.c:(.text+0xff0): first defined here
|
||||
collect2: error: ld returned 1 exit status
|
||||
.../qemu-2.6.0/rules.mak:105: recipe for target 'qemu-nbd' failed
|
||||
make: *** [qemu-nbd] Error 1
|
||||
|
||||
The aes.h header has redefines already for FreeBSD, but go ahead and
|
||||
enable that for everyone since there's no real good reason to not use
|
||||
a namespace all the time.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@chromium.org>
|
||||
---
|
||||
include/crypto/aes.h | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/include/crypto/aes.h b/include/crypto/aes.h
|
||||
index a006da2224a9..12fb321b89de 100644
|
||||
--- a/include/crypto/aes.h
|
||||
+++ b/include/crypto/aes.h
|
||||
@@ -10,14 +10,13 @@ struct aes_key_st {
|
||||
};
|
||||
typedef struct aes_key_st AES_KEY;
|
||||
|
||||
-/* FreeBSD has its own AES_set_decrypt_key in -lcrypto, avoid conflicts */
|
||||
-#ifdef __FreeBSD__
|
||||
+/* FreeBSD/OpenSSL have their own AES functions with the same names in -lcrypto
|
||||
+ * (which might be pulled in via curl), so redefine to avoid conflicts. */
|
||||
#define AES_set_encrypt_key QEMU_AES_set_encrypt_key
|
||||
#define AES_set_decrypt_key QEMU_AES_set_decrypt_key
|
||||
#define AES_encrypt QEMU_AES_encrypt
|
||||
#define AES_decrypt QEMU_AES_decrypt
|
||||
#define AES_cbc_encrypt QEMU_AES_cbc_encrypt
|
||||
-#endif
|
||||
|
||||
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
|
||||
AES_KEY *key);
|
||||
--
|
||||
2.8.2
|
||||
|
@ -1,9 +1,11 @@
|
||||
DIST xen-4.6.0-upstream-patches-0.tar.xz 19280 SHA256 8ef2d139f86cb52d2208a17c974e5a85356183ee359ab4b91882067548806e0c SHA512 9fde8d9def1d75e50c10069af7f9fea4b5b6992b7089eb554e1e2a4c78dd080f2977128d0dd541eeb735b951e7d6614a07101f7703457e7743ac6b3be962cdfe WHIRLPOOL 861c7f150811912422f6f5eb77437744d1456740a43bef3dfd88a2e6d6836c0e8460b788ccd4f14a7144652d65a825c08aa984ec4240b2b1ac6d09237695d19d
|
||||
DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8
|
||||
DIST xen-4.6.1-upstream-patches-0.tar.xz 92472 SHA256 7b32cbd57571d838ec606c5bd2b98a51e14a6bcf44d2d61007c274fa3b6b5eb6 SHA512 2f8e9273601c70eac88fb9d94bcb607bc5ea76514f9cdee0e96309b9a9d78db881d94c57a518ad5cef398fa57274b9940ba1553d0984bb5504ca27b6b62a6003 WHIRLPOOL 9b2592f33587fc85b091fbfb357d4ab4914f39286f3207a0d8aebf26259f0ebd1eb7d6bede7da9a202427cf9c7d97c11c4c84c5f90584948b1f3c32fefac5164
|
||||
DIST xen-4.6.1.tar.gz 19693042 SHA256 44cc2fccba1e147ef4c8da0584ce0f24189c8743de0e3e9a9226da88ddb5f589 SHA512 f01a0b7874abf8b3a81432428d7ba2d5aceb9d75ae20310f8ef49a3a0df927720a51d49090f74fda7f374c779e121ad26da6966a6f2623ed1a7743b4c080427c WHIRLPOOL b4eec12118d602d1b41edee32ed7c0c61646974060bc44e3eedaf78f7c3015c151998f72573fd2bab1992263dd98f09992772334bae7826048d187de7ed022e5
|
||||
DIST xen-security-patches-0.tar.xz 5944 SHA256 c0456793064185f0781668264a09a2412a25e2ff8c4ce0d332204e37b94d7e96 SHA512 de812e66563e608548b220aa00c8fd71973af748a00cea79959f46a5b6893a38248d2ea455026af43f47e3f5e566d08b5a6f3d18f22e940d75d2a2ca76cec3d3 WHIRLPOOL 3e18d32798bdfe584ee8d102963090b569ec3660fd5723d8c608091e5c7d935c1edced5e258d92bf51fe06975455a3ae33dfedd01702c6076aedf97ea61f2d1b
|
||||
DIST xen-security-patches-00.tar.gz 4280 SHA256 1cb3d3d4af15202ce8ea5d6a5982b8c9a4623e565c732c64f5ec949cf55a11c0 SHA512 06e8fa8bda712564a18712640087a920545da3dc6bd6d94762f7f7fee33afb807f2d517e8d6177a683baf8ec04832acf57557f8125973f00e7de6109b3d5131b WHIRLPOOL 8b1b7caa37b73f442f440f599d9ae8d1562c6361c693b4d18540dbe7de4fa8046e3139f19dfdff35a316466ed7f017a3a99d430eb28e0716a0c6b52d8aec5b0b
|
||||
DIST xen-security-patches-01.tar.gz 4683 SHA256 ca1e565180aff5485f217735faa24bea2f7fc821d5c5a506d1854291681fdc28 SHA512 538d5df0c3b5b5277613af3a3fc11aa46a16cfdfdc88488da5020e3ad38580b8cdb12778e251c4b41c6b5cfe37d8266a599b8b15b4032491c0689e442b388847 WHIRLPOOL a22492288fa04919c60d9e7e15181bc7eb05f457b0aad0e8ece172443fd4208d4bdeb692ef713b99aa83eb030caf3dfcf1236b5d8de13e152b93096aa2e869b8
|
||||
DIST xen-security-patches-10.tar.gz 13289 SHA256 8937b3c0045f83ac0685ce129c99be8ab035f2ed92605d0c1100d4f898d978a3 SHA512 698963479149bd63695b3ffd7d108b798ce6c694560f2908b639f3a1b00d37d4994fbc1e0e21aaba1f3a113653d5b37c28679bc1d97d75a805844345c9c070c0 WHIRLPOOL 8c2433c35499819906abf5cb8898dac23cbf7523cc4b4e9291e696eb2871971a7300d3f54865ac32738a1b67c1de18e227085f14c5717b60ec951d5038fa0493
|
||||
DIST xen-security-patches-12.tar.xz 5172 SHA256 1d3c238cbefc243a17770722895f6bc725e807641a93908d3e4002b26e4f2a8b SHA512 06f80b12c30d18f84e880ffb529fe2b90e7ade1cb3479d2fbc21447cf2c5d50c7ba3a14ddd0b31f63e87af520bf80812158e4097e657f8316bdb5f8b443c9828 WHIRLPOOL 49b776cf3d1d05758dfe9ce9f5f5cb0573eaec5f1273648eedb04b408587bb3cfe8838ea551a29423cc30622c7426e852740138fa2795898f25c22de148f91c9
|
||||
DIST xen-security-patches-9.tar.gz 9793 SHA256 2167d7bc2a631cf13d5b49c9577dbc8d128517e8ecbf90ef85c38f52ab3187aa SHA512 42f4997f35cc06333584a9a3c65366493094b60a6c67928b6165f3fb7d35d3a8f9dc0c3eadd4522de0d99bcc8511afba1d5e543396399b37983eb547abedca44 WHIRLPOOL 8abb68b4ac10fbc2b590c8a29cd2474d5392d3958542dad7f21ba4ad51c7541bb1686ed2629323e214c3e72b0de7212f25a4681f653d4179404c9f4c53e3d83a
|
||||
DIST xen-upstream-patches-0.tar.gz 2297 SHA256 bf21272ad029391d30bf31896efcadc75267538f6c7de5d239453f19659d58ee SHA512 3f5d60aaebd181bddab4dd02e0064de2f75672f44a687a7331fa40e81d56763fea84504081a449d11403b21ad0ba2dac075f0b1796809ef8d16e244f6be99e3d WHIRLPOOL 4ebe79c8f2ea1c45e88e59941e477ed5639dbca3fe95c9a67e07afb0f4b6fb8b7fea8e58422d7c8f906299e4f37c14b4db15200997e5a92b647df98fa93e10c7
|
||||
|
@ -1,8 +1,2 @@
|
||||
DIST upwork-4.0.144.0_i386.rpm 29416397 SHA256 d36d60d376090c2ac0513daa351e0eb0dac02018990c92275a9fd44d9dde0934 SHA512 d6d1a64c720cab26527324c75ba5b8f996f4e892334dc68c2a63ba356d764dec8f83303f65417a6445c90f43ed675beeb0fcbc197edf0590a49163586fd5a816 WHIRLPOOL d377c5f804fee57105c478d535a6671a7b27ab27f3e2fee6f2d7fbb638875a8b063aa4a0d8360546fb048f3cf2fc350c91df6bc1910111157f8983913e3587c8
|
||||
DIST upwork-4.0.144.0_x86_64.rpm 33391158 SHA256 fb46bdc802a11d504321ac0b3177de89884a073b51e3d783871a18bf79f959fa SHA512 fd029061bba8c1a089c388641cb54f5d27e220fd0a4811e1a2c23155858ade7276b062ec6fc3af02b1753ca3969fc8acb1a345aed76c301913242efb2da7df9f WHIRLPOOL ea365d7b36a6adbfc6e16b6f1d4d6b52919d6cdf49c6eb8787604413809be1304902b105729839ca959039e17d6d53e9d694c9992097f570d42eb13021d05044
|
||||
DIST upwork-4.0.53.0_i386.rpm 29330489 SHA256 8fe161e3bda15ee7b8c372dfb3fabe4324fcfa4e925d0e8c14e71a8a8b90a858 SHA512 28e186f6b95dedfe4175ace94522e6ce19aedb90c44ea72f33e8ae15e358e190423dc20b4704f70196904f11dbc7d29ddb776f27a29cb2f09fa8f74d6593317f WHIRLPOOL 1d32e53d35afe42ae79e0c4e927dfdc2d8a7c89e0140186a0ffeb23f71fd705622783c421db1340b71f5f097ed28f9696d831568b90f2ec0cc403b879662ca93
|
||||
DIST upwork-4.0.53.0_x86_64.rpm 33297576 SHA256 cb206dd72795ef6465dac4cd777cb3495880c3941194a6d2e16c988bd5495f26 SHA512 aada2c85d9f310d7bf085986ffdcb925461ba948d314e6616fb3f570670391b8a0102e9b03aa0c46659c6654e36284c51ddabc488b5013812b6bb3a76d96aaf4 WHIRLPOOL 6b18f72b65c00f4e538793d4e52436543a4a2501c49656c6bf416adeed12380cda6e88e95c6466ee79179130a173f891f242e843e4c472480628673f351f71dd
|
||||
DIST upwork-4.0.70.0_i386.rpm 29349208 SHA256 b7d1490d3ebb170a2173b016a33c5263d3bc82845ba39dc3daa65295f9c03792 SHA512 cbece7f71e67bcb0742955e59f2682ab184af1bd28fab8682c6bd984beda086a20f8f3e4b8d3c3c40f1b244cc6f9f199662349ef7472e64bee05cd443ff033f3 WHIRLPOOL edad445cc1b3401c4d93357f1baf046541e61000b5ce127d109949170fd60a99090e4cbba911a4e089cd354e2433f3376121211c587344ce6f2a79ed02bae9ba
|
||||
DIST upwork-4.0.70.0_x86_64.rpm 33318408 SHA256 b6cfb3f69ce50634ef5f9f8a1695a507919fd29a8f99722c511b3737535051f4 SHA512 4b64cd247705045643b284656bd045a7d858ce8f632f58347bcf7672655d8eb4aed534c40e95a1ade71fe8c37c791500b86469941ac6ef49b57f1e1dd5f46f15 WHIRLPOOL 92decad071a092acfbb448478b27d92f93a905d4a2192b3f3b92358ecbe3d8c6b420e9e3c4d5c597d1f8e20887e01264abe404154b434a0790fc2ddb47aeabb4
|
||||
DIST upwork-4.1.134_i386.rpm 34420908 SHA256 6b5501eb678b44989b736205f7688d255eab3df7931733fa146ca64ad4506484 SHA512 68190c4aa26df36857311b5944d2cdc15930ff248d8a4c841785451c1a48bb15ad1bf7bdd586d109994de70cef493a98a198b68bd785df2e8b88e45b85a25f23 WHIRLPOOL cd7305979b3b86a5fb0679eb0953175e05fa45b013a028471d8f63089f839778cd0112f2adfc2d1c5912560e12f66cb38dc0502adc8508cad4daa5a955f085d0
|
||||
DIST upwork-4.1.134_x86_64.rpm 34025281 SHA256 1b6fd115f64ca1f94aea0b91e0c27336df481e5bb6a97be23917e576a97b4984 SHA512 65ef2e6552e34b50f24102c6227267a07881955bdf6b41571374167f844e07a0be6ee752c9fe3ff2b4280b58895ddeda86d0ba4aaa229bc12ff378ac5b6f730a WHIRLPOOL 144cfed4747410105d2851a59ef802520bf486cbd3619b29f4d35ff717811e8a9f5f189f70b94af675c0aa9b7d96a2191cd06c551136116d10d59e8f0475f4c3
|
||||
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit rpm eutils pax-utils
|
||||
|
||||
# Binary only distribution
|
||||
QA_PREBUILT="*"
|
||||
|
||||
DESCRIPTION="Project collaboration and tracking software for upwork.com"
|
||||
HOMEPAGE="https://www.upwork.com/"
|
||||
SRC_URI="amd64? ( http://updates.team.odesk.com/binaries/v4_0_144_0_mj9j7zmoj9asg5f0/upwork_x86_64.rpm -> ${P}_x86_64.rpm )
|
||||
x86? ( http://updates.team.odesk.com/binaries/v4_0_144_0_mj9j7zmoj9asg5f0/upwork_i386.rpm -> ${P}_i386.rpm )
|
||||
"
|
||||
LICENSE="ODESK"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libgcrypt:11
|
||||
media-libs/alsa-lib
|
||||
sys-libs/libcap
|
||||
virtual/udev
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/gtkglext
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-desktop.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Wrapper to the real executable
|
||||
dobin usr/bin/upwork
|
||||
|
||||
insinto /usr/share
|
||||
pax-mark m usr/share/upwork/upwork
|
||||
doins -r usr/share/upwork
|
||||
dosym /usr/lib/libudev.so /usr/share/upwork/libudev.so.0
|
||||
|
||||
# Make this executable because it's the real executable
|
||||
fperms 0755 /usr/share/upwork/upwork
|
||||
|
||||
domenu usr/share/applications/upwork.desktop
|
||||
doicon usr/share/pixmaps/upwork.png
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit rpm eutils
|
||||
|
||||
# Binary only distribution
|
||||
QA_PREBUILT="*"
|
||||
|
||||
DESCRIPTION="Project collaboration and tracking software for upwork.com"
|
||||
HOMEPAGE="https://www.upwork.com/"
|
||||
SRC_URI="amd64? ( http://updates.team.odesk.com/binaries/v4_0_53_0_p5TnmGwLv5sZSuKB/${PN}_x86_64.rpm -> ${P}_x86_64.rpm )
|
||||
x86? ( http://updates.team.odesk.com/binaries/v4_0_53_0_p5TnmGwLv5sZSuKB/${PN}_i386.rpm -> ${P}_i386.rpm )
|
||||
"
|
||||
LICENSE="ODESK"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libgcrypt:11
|
||||
media-libs/alsa-lib
|
||||
sys-libs/libcap
|
||||
virtual/udev
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/gtkglext
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-desktop.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Wrapper to the real executable
|
||||
dobin usr/bin/upwork
|
||||
|
||||
insinto /usr/share
|
||||
doins -r usr/share/upwork
|
||||
dosym /usr/lib/libudev.so /usr/share/upwork/libudev.so.0
|
||||
|
||||
# Make this executable because it's the real executable
|
||||
fperms 0755 /usr/share/upwork/upwork
|
||||
|
||||
domenu usr/share/applications/upwork.desktop
|
||||
doicon usr/share/pixmaps/upwork.png
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit rpm eutils
|
||||
|
||||
# Binary only distribution
|
||||
QA_PREBUILT="*"
|
||||
|
||||
DESCRIPTION="Project collaboration and tracking software for upwork.com"
|
||||
HOMEPAGE="https://www.upwork.com/"
|
||||
SRC_URI="amd64? ( http://updates.team.odesk.com/binaries/v4_0_70_0_bccbf5c8e0866/${PN}_x86_64.rpm -> ${P}_x86_64.rpm )
|
||||
x86? ( http://updates.team.odesk.com/binaries/v4_0_70_0_bccbf5c8e0866/${PN}_i386.rpm -> ${P}_i386.rpm )
|
||||
"
|
||||
LICENSE="ODESK"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libgcrypt:11
|
||||
media-libs/alsa-lib
|
||||
sys-libs/libcap
|
||||
virtual/udev
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/gtkglext
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-desktop.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Wrapper to the real executable
|
||||
dobin usr/bin/upwork
|
||||
|
||||
insinto /usr/share
|
||||
doins -r usr/share/upwork
|
||||
dosym /usr/lib/libudev.so /usr/share/upwork/libudev.so.0
|
||||
|
||||
# Make this executable because it's the real executable
|
||||
fperms 0755 /usr/share/upwork/upwork
|
||||
|
||||
domenu usr/share/applications/upwork.desktop
|
||||
doicon usr/share/pixmaps/upwork.png
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST llpp-20_p20140818.tar.gz 127805 SHA256 959862916f6ee4261903bd8192dd7b6203cf9b5fa989b4bb3c19377e61fe23ea SHA512 f529414ce1731f2f155e80615792a1d79e62f58f40238b83f0c5fd59e65429a8a95fe02f6556e7b1c51619f0cac670494e4844b444b428ea3ddb991361268790 WHIRLPOOL e190b8bbed54b8e5157c477bc071bcb16681017838cb0c0295bccddff2244be426ff4c925c3effab43dd2939e5ceb0397e2d860c6e53538139d38f340dd05a71
|
||||
DIST llpp-22.tar.gz 153700 SHA256 06dff0377bb47c172f5cb498f8bce0f362cca910f90e8663fcd3f1500ce8fa0e SHA512 8db70d7c9f10094aef0928b5f69bd9544c3cac427710d409c593708f18e06a96c0f0051b255eb81f1cb3ad9cd2e5c627121bd897db0fac6a9ade1698f9a78738 WHIRLPOOL d8a2dfb889abeebe6a8b7d9bcd57f15198d84cd16de3f9519962c6de84e67722d911b26064c0f70c9fc7087ef5631d8d82d4ec38af0fc752c644facd12ee0aaa
|
||||
DIST llpp-22_p20160324.tar.gz 159647 SHA256 8326369aa84aa70073e26ed1905643a2ee8d442a02a10fccd9cd0ab1cf8eabb8 SHA512 b0a2675d55184282492bcfb3af7b47fb97ff3b98b9ff5cf25d515f70fad60e135b870f30dbe13e57a7cd2e401d87f81b330cddf92fd27705d0c1726e4e7e3fe1 WHIRLPOOL bb26ecda248e458e8b5e407ec196938bcd60b2b9118534c792677bed98982a648262e3f662a404fc9e2cf755639ca79806e1471e170b21ca4ba6d84f7efc8fbe
|
||||
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib toolchain-funcs vcs-snapshot
|
||||
|
||||
DESCRIPTION="graphical PDF viewer which aims to superficially resemble less(1)"
|
||||
HOMEPAGE="http://repo.or.cz/w/llpp.git"
|
||||
SRC_URI="http://repo.or.cz/llpp.git/snapshot/794a8bce7716bf4571ca24c2574caa0f73851aa3.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+ocamlopt static"
|
||||
#IUSE="egl +ocamlopt static"
|
||||
|
||||
LIB_DEPEND=">=app-text/mupdf-1.9a:0=[static-libs]
|
||||
media-libs/openjpeg:2[static-libs]
|
||||
media-libs/fontconfig:1.0[static-libs]
|
||||
media-libs/freetype:2[static-libs]
|
||||
media-libs/jbig2dec[static-libs]
|
||||
sys-libs/zlib[static-libs]
|
||||
virtual/jpeg:0[static-libs]
|
||||
x11-libs/libX11[static-libs]"
|
||||
# egl? ( media-libs/mesa[static-libs] )
|
||||
RDEPEND="x11-misc/xsel
|
||||
!static? ( ${LIB_DEPEND//\[static-libs]} )"
|
||||
DEPEND="${RDEPEND}
|
||||
static? ( ${LIB_DEPEND}
|
||||
app-arch/bzip2[static-libs]
|
||||
media-libs/libXcm[static-libs]
|
||||
x11-libs/libXau[static-libs]
|
||||
x11-libs/libXdmcp[static-libs]
|
||||
x11-libs/libXmu[static-libs] )
|
||||
>=dev-lang/ocaml-4.02[ocamlopt?]
|
||||
dev-ml/lablgl[glut,ocamlopt?]"
|
||||
|
||||
RESTRICT="!ocamlopt? ( strip )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-20-WM_CLASS.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local ocaml=$(usex ocamlopt ocamlopt.opt ocamlc.opt)
|
||||
local cmo=$(usex ocamlopt cmx cmo)
|
||||
local cma=$(usex ocamlopt cmxa cma)
|
||||
local ccopt="$(freetype-config --cflags ) -O -include ft2build.h -D_GNU_SOURCE -DUSE_FONTCONFIG -std=c99 -Wextra -Wall -pedantic-errors -Wunused-parameter -Wsign-compare -Wshadow"
|
||||
#if use egl ; then
|
||||
# ccopt+=" -DUSE_EGL $(pkg-config --cflags egl)"
|
||||
# local egl="egl"
|
||||
#fi
|
||||
if use static ; then
|
||||
local cclib=""
|
||||
local slib=""
|
||||
local spath=( ${EROOT}usr/$(get_libdir) $($(tc-getPKG_CONFIG) --libs-only-L --static mupdf x11 ${egl} | sed 's:-L::g') )
|
||||
for slib in $($(tc-getPKG_CONFIG) --libs-only-l --static mupdf x11 ${egl} fontconfig) -ljpeg -ljbig2dec ; do
|
||||
case ${slib} in
|
||||
-lm|-ldl|-lpthread)
|
||||
einfo "${slib}: shared"
|
||||
cclib+="${slib} " ;;
|
||||
*)
|
||||
local ccnew=$(find ${spath} -name "lib${slib/-l}.a")
|
||||
einfo "${slib}: use ${ccnew}"
|
||||
cclib+="${ccnew} " ;;
|
||||
esac
|
||||
done
|
||||
else
|
||||
local cclib="$($(tc-getPKG_CONFIG) --libs mupdf x11 ${egl} fontconfig) -lpthread"
|
||||
fi
|
||||
|
||||
verbose() { echo "$@" >&2 ; "$@" || die ; }
|
||||
verbose sh mkhelp.sh KEYS ${PV} > help.ml
|
||||
verbose printf 'let version ="%s";;\n' ${PV} >> help.ml
|
||||
verbose ${ocaml} -c -o link.o -ccopt "${ccopt}" link.c
|
||||
verbose ${ocaml} -c -o help.${cmo} help.ml
|
||||
verbose ${ocaml} -c -o utils.${cmo} utils.ml
|
||||
verbose ${ocaml} -c -o wsi.cmi wsi.mli
|
||||
verbose ${ocaml} -c -o wsi.${cmo} wsi.ml
|
||||
verbose ${ocaml} -c -o parser.${cmo} parser.ml
|
||||
verbose ${ocaml} -c -o config.${cmo} -I +lablGL config.ml
|
||||
verbose ${ocaml} -c -pp "sed -f pp.sed" -o main.${cmo} -I +lablGL main.ml
|
||||
verbose ${ocaml} $(usex ocamlopt "" -custom) -o llpp -I +lablGL\
|
||||
str.${cma} unix.${cma} lablgl.${cma} link.o \
|
||||
-cclib "${cclib}" \
|
||||
help.${cmo} utils.${cmo} parser.${cmo} wsi.${cmo} config.${cmo} main.${cmo}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN} misc/${PN}ac
|
||||
dodoc KEYS README Thanks fixme
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST indentpython-0.3.zip 2682 SHA256 0e6e16f80e21d173d6f9b87efcb7d2027026d8e7125156a01a9367f7a9489baf SHA512 d358579357d5197dc035816b02557b8e84d5f0c85fb6433d171b9880e211dee75ef6f5fd7a37651677591c6c31a570c39094d6bbd5052a29ef344ec18b0e13c5 WHIRLPOOL 976555635d61360b55deb975c78ccf079eb17bf66595babf6c307f0f7eb0e5c68fd9a26abd85d7d5181942524388ef3dfe7795767cba19e2097ec77c7859c5b8
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: Indent Python code according to PEP8"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=974"
|
||||
SRC_URI="https://github.com/vim-scripts/${PN}.vim/archive/${PV}.zip -> ${P}.zip"
|
||||
LICENSE="vim.org"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${PN}.vim-${PV}"
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>vim@gentoo.org</email>
|
||||
<name>Gentoo Vim Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,4 +1,2 @@
|
||||
DIST JuicyPixels-3.1.7.1.tar.gz 96433 SHA256 5751e984068e7a325f6b45a3d00f827aee49e4e63abf2a84a9b6c3dcb09d1a56 SHA512 c5ba19641b61789cd471e0de038c58712989945bfcd340d769f4614b3fd7b1f6073349a8b48115c6a9ca83cb8fc813f715e55f08acd230940ca04084210ffccc WHIRLPOOL 55ef29470528c301012192cb30535e56342cdf9190207a0869d83bdd6bda1c48188582ab3589ccf8375e7a57c294403314792422ecc78717d28f5f65fb8ed44b
|
||||
DIST JuicyPixels-3.2.5.3.tar.gz 116074 SHA256 fc36f130e678119475434febcdfe75e1e083062a4729a3104cc5bdc7972cd8ce SHA512 e5c0b0442b1b79aa751afed9a5df23b9fc1f3bfddd0d7b0f3751053018f4434331a0e0ecb16d2fc36a87d3edd3fc06727cfa9557607a02d7040ead623a5917bd WHIRLPOOL 93322b1b474befddc189e8c5ded6fb5343f421e488c57b4c9108f9b729028278ca807d92e28651b5e5acfbedcc0c3c5d01ad0198f9e347f84a3672efaff6d17a
|
||||
DIST JuicyPixels-3.2.6.4.tar.gz 116527 SHA256 6268583fd7915913b3d68a399184bfcfebfaa010be9aa10232d76324df65a6ac SHA512 830743b3a06efb4a39e8b6f44a21c25b8bb4afcb98b55a2e23653786829773ef774ad6ccffd2ee05001972afb594d4ddac20cad60b6bf2a6c4b7fd5a954036b9 WHIRLPOOL 2bb7c588f45ee6cf563fe1787486ad695fab3657faebcff6ca12a41ae098696d0273cd192ae7bafcb5a9464f09efa930bcfe585962ba75e18ad96733aed58a51
|
||||
DIST JuicyPixels-3.2.7.tar.gz 118647 SHA256 0126ff02d78045a299e76a35e2a3d3d188e7512f08d57e89bf1e0a94eb6ff14b SHA512 418d887a799fc46f4c73da1ebae0288e0f25e21c943f38dbf0b2519096e4ba145711a05d9da7bb1e588a5183e91ab09dfe3a209a6728c610eb5771a5d963ee6a WHIRLPOOL e46aa8a353688948e8e2ac39a63c21ca20a8288ce4377e6cffa6867429e40e131e8ef4dce69bf3f030bd89feb6760de0dbf7c4e1695c4fe990145bba1c52a7f7
|
||||
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.3.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
MY_PN="JuicyPixels"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Picture loading/serialization (in png, jpeg, bitmap, gif, tiff and radiance)"
|
||||
HOMEPAGE="https://github.com/Twinside/Juicy.Pixels"
|
||||
SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="mmap"
|
||||
|
||||
RDEPEND=">=dev-haskell/binary-0.5:=[profile?] <dev-haskell/binary-0.8:=[profile?]
|
||||
>=dev-haskell/mtl-1.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
|
||||
>=dev-haskell/primitive-0.4:=[profile?] <dev-haskell/primitive-0.6:=[profile?]
|
||||
>=dev-haskell/transformers-0.2:=[profile?]
|
||||
>=dev-haskell/vector-0.9:=[profile?] <dev-haskell/vector-0.11:=[profile?]
|
||||
>=dev-haskell/zlib-0.5.3.1:=[profile?] <dev-haskell/zlib-0.6:=[profile?]
|
||||
>=dev-lang/ghc-7.4.1:=
|
||||
mmap? ( dev-haskell/mmap:=[profile?] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.10
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag mmap mmap)
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.6.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
MY_PN="JuicyPixels"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance)"
|
||||
HOMEPAGE="https://github.com/Twinside/Juicy.Pixels"
|
||||
SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="mmap"
|
||||
|
||||
RDEPEND=">=dev-haskell/binary-0.5:=[profile?] <dev-haskell/binary-0.8:=[profile?]
|
||||
>=dev-haskell/mtl-1.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
|
||||
>=dev-haskell/primitive-0.4:=[profile?] <dev-haskell/primitive-0.7:=[profile?]
|
||||
>=dev-haskell/transformers-0.2:=[profile?]
|
||||
>=dev-haskell/vector-0.9:=[profile?] <dev-haskell/vector-0.12:=[profile?]
|
||||
>=dev-haskell/zlib-0.5.3.1:=[profile?] <dev-haskell/zlib-0.7:=[profile?]
|
||||
>=dev-lang/ghc-7.10.1:=
|
||||
mmap? ( dev-haskell/mmap:=[profile?] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.22.2.0
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag mmap mmap)
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
From 90507018442f9adabb586fd3d0a0206b9c2f2f50 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sun, 5 Jun 2016 08:18:01 +0200
|
||||
Subject: [PATCH] distutils: make -OO enable both opt-1 and opt-2 optimization
|
||||
|
||||
Bug: http://bugs.python.org/issue27226
|
||||
Bug: https://bugs.gentoo.org/585060
|
||||
---
|
||||
Lib/distutils/command/build_py.py | 8 ++++----
|
||||
Lib/distutils/command/install_lib.py | 12 ++++++------
|
||||
2 files changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
|
||||
index cf0ca57..838d4e4 100644
|
||||
--- a/Lib/distutils/command/build_py.py
|
||||
+++ b/Lib/distutils/command/build_py.py
|
||||
@@ -315,9 +315,9 @@ class build_py (Command):
|
||||
if self.compile:
|
||||
outputs.append(importlib.util.cache_from_source(
|
||||
filename, optimization=''))
|
||||
- if self.optimize > 0:
|
||||
+ for opt in range(1, self.optimize + 1):
|
||||
outputs.append(importlib.util.cache_from_source(
|
||||
- filename, optimization=self.optimize))
|
||||
+ filename, optimization=opt))
|
||||
|
||||
outputs += [
|
||||
os.path.join(build_dir, filename)
|
||||
@@ -387,8 +387,8 @@ class build_py (Command):
|
||||
if self.compile:
|
||||
byte_compile(files, optimize=0,
|
||||
force=self.force, prefix=prefix, dry_run=self.dry_run)
|
||||
- if self.optimize > 0:
|
||||
- byte_compile(files, optimize=self.optimize,
|
||||
+ for opt in range(1, self.optimize + 1):
|
||||
+ byte_compile(files, optimize=opt,
|
||||
force=self.force, prefix=prefix, dry_run=self.dry_run)
|
||||
|
||||
class build_py_2to3(build_py, Mixin2to3):
|
||||
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
|
||||
index 6154cf0..049b662 100644
|
||||
--- a/Lib/distutils/command/install_lib.py
|
||||
+++ b/Lib/distutils/command/install_lib.py
|
||||
@@ -24,8 +24,8 @@ class install_lib(Command):
|
||||
# 2) compile .pyc only (--compile --no-optimize; default)
|
||||
# 3) compile .pyc and "opt-1" .pyc (--compile --optimize)
|
||||
# 4) compile "opt-1" .pyc only (--no-compile --optimize)
|
||||
- # 5) compile .pyc and "opt-2" .pyc (--compile --optimize-more)
|
||||
- # 6) compile "opt-2" .pyc only (--no-compile --optimize-more)
|
||||
+ # 5) compile .pyc, "opt-1" and "opt-2" .pyc (--compile --optimize-more)
|
||||
+ # 6) compile "opt-1" and "opt-2" .pyc (--no-compile --optimize-more)
|
||||
#
|
||||
# The UI for this is two options, 'compile' and 'optimize'.
|
||||
# 'compile' is strictly boolean, and only decides whether to
|
||||
@@ -132,8 +132,8 @@ class install_lib(Command):
|
||||
byte_compile(files, optimize=0,
|
||||
force=self.force, prefix=install_root,
|
||||
dry_run=self.dry_run)
|
||||
- if self.optimize > 0:
|
||||
- byte_compile(files, optimize=self.optimize,
|
||||
+ for opt in range(1, self.optimize + 1):
|
||||
+ byte_compile(files, optimize=opt,
|
||||
force=self.force, prefix=install_root,
|
||||
verbose=self.verbose, dry_run=self.dry_run)
|
||||
|
||||
@@ -167,9 +167,9 @@ class install_lib(Command):
|
||||
if self.compile:
|
||||
bytecode_files.append(importlib.util.cache_from_source(
|
||||
py_file, optimization=''))
|
||||
- if self.optimize > 0:
|
||||
+ for opt in range(1, self.optimize + 1):
|
||||
bytecode_files.append(importlib.util.cache_from_source(
|
||||
- py_file, optimization=self.optimize))
|
||||
+ py_file, optimization=opt))
|
||||
|
||||
return bytecode_files
|
||||
|
||||
--
|
||||
2.8.3
|
||||
|
@ -0,0 +1,360 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV/_/}"
|
||||
PATCHSET_VERSION="3.5.1-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV%_rc*}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.5/3.5m"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:0=
|
||||
app-arch/xz-utils:0=
|
||||
>=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
gdbm? ( sys-libs/gdbm:0=[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0=
|
||||
readline? ( >=sys-libs/readline-4.1:0= )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:0=
|
||||
>=dev-lang/tk-8.0:0=
|
||||
dev-tcltk/blt:0=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1:0= )
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PYVER=${SLOT%/*}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Invokes BUILDPYTHON, which is built for the host arch
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
|
||||
epatch "${FILESDIR}/3.5.1-cross-compile.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.5-distutils-OO-build.patch"
|
||||
|
||||
epatch_user
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
configure.ac \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/getpath.c \
|
||||
Modules/Setup.dist \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
local myeconfargs=(
|
||||
--with-fpectl
|
||||
--enable-shared
|
||||
$(use_enable ipv6)
|
||||
$(use_with threads)
|
||||
--infodir='${prefix}/share/info'
|
||||
--mandir='${prefix}/share/man'
|
||||
--with-computed-gotos
|
||||
--with-dbmliborder="${dbmliborder}"
|
||||
--with-libc=
|
||||
--enable-loadable-sqlite-extensions
|
||||
--without-ensurepip
|
||||
--with-system-expat
|
||||
--with-system-ffi
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" econf "${myeconfargs[@]}"
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake CPPFLAGS= CFLAGS= LDFLAGS=
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
emake test EXTRATESTOPTS="-u-network" CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${PYVER}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}usr/include"; echo python*)
|
||||
if [[ ${abiver} != python${PYVER} ]]; then
|
||||
# Replace python3.X with a symlink to python3.Xm
|
||||
rm "${ED}usr/bin/python${PYVER}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${PYVER}"
|
||||
# Create python3.X-config symlink
|
||||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
|
||||
# Create python-3.5m.pc symlink
|
||||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
|
||||
fi
|
||||
|
||||
# python seems to get rebuilt in src_install (bug 569908)
|
||||
# Work around it for now.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E "${ED}usr/bin/${abiver}"
|
||||
else
|
||||
pax-mark m "${ED}usr/bin/${abiver}"
|
||||
fi
|
||||
|
||||
use elibc_uclibc && rm -fr "${libdir}/test"
|
||||
use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
|
||||
|
||||
use threads || rm -fr "${libdir}/multiprocessing"
|
||||
use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${PYVER}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${PYVER}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${PYVER%.*}
|
||||
mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/${abiver}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python" || die
|
||||
# python-config and pythonX-config
|
||||
# note: we need to create a wrapper rather than symlinking it due
|
||||
# to some random dirname(argv[0]) magic performed by python-config
|
||||
cat > "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" <<-EOF || die
|
||||
#!/bin/sh
|
||||
exec "${abiver}-config" "\${@}"
|
||||
EOF
|
||||
chmod +x "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python-config" || die
|
||||
# 2to3, pydoc, pyvenv
|
||||
ln -s "../../../bin/2to3-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
|
||||
ln -s "../../../bin/pyvenv-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${PYVER}" && ! has_version ">=${CATEGORY}/${PN}-${PYVER}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST bitstring-3.1.1.zip 620317 SHA256 52de6257e95f923284d4c1fdce8287df65a2c677f26d73d288ed06188586ab6f SHA512 856fca0d16929e1fd6e78e9b5fe63fbbabe35bd0c49ef188b24ee0585feea36a485506a2fb8d87e1515ed4162d83c70faa5af59abfe95cef212c6ebaf9fa90d2 WHIRLPOOL 305521c110601f1145344d2423bd91f901c58f08759b4a7c0865cc342d12d9dc4f633e81fc260032e3c41aa73472aa452de476dd418cdb5051957908c7078d47
|
||||
DIST bitstring-3.1.5.tar.gz 761527 SHA256 b769620c1b52d6c1548c6c4f055613f4eee3120ed8a5cff4ba4ffbbc8a582286 SHA512 2c98768c98fc5ab99eeb4ac089ec66f091949e5e4f326563b1b480981ac2aa40258fe0065809eed9c08a71fae3cf09254a8a2465e86635db5287c0d2f241d75f WHIRLPOOL c059af1f54e46cc92acfbc40ef3e7461f6bd55739e552a8cc58dabe3bbd0140ad8d1084cd85540aebdfaf3fe68c98471679bc6db684190740cd55931285241d2
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A pure Python module for creation and analysis of binary data"
|
||||
HOMEPAGE="https://github.com/scott-griffiths/bitstring"
|
||||
SRC_URI="https://github.com/scott-griffiths/${PN}/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${PN}-${P}
|
||||
|
||||
DOCS=( README.rst release_notes.txt )
|
||||
|
||||
python_test() {
|
||||
pushd test >/dev/null || die
|
||||
"${PYTHON}" -m unittest discover || die "Testing failed with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST glueviz-0.7.2.tar.gz 10207092 SHA256 97aec823e6cd0b0e9f09fd0ff8262a41c6e770f746c87ecafa425e17e950929f SHA512 d1770b88431189ae188fe9ce2a2ea7a0cfc71dacd0a84e20d1d73e869eda281a28ec21ccab84328b4be50d03813217f42b578c2391bc2c4a49ad4bafac251705 WHIRLPOOL 32ea2eaaade85a69eb40d6806f85c4e9910a50028ac20f2bceb889952d4d87af0ad9dd3759b49d6e3934db91cfb05af2db1a4528cb279cbb1a4480ae04e3066a
|
||||
DIST glueviz-0.7.3.tar.gz 10208588 SHA256 71886836b034f6b7d67666e39d4b2d0d5c4e36584f1412f4ecf3341a4e8aa673 SHA512 1859f0711f3aff6481d0f6b5c1b29f13e75cfcf00951b50ae9e924cb4df280bdb84c00da451a15c89c7b76adcb3ee533231f2726e28c2bfa94c9c72d004faeb7 WHIRLPOOL 4b68bfc8e42c3b9379b8c78fb6fd2d66ed50c241171cca9b3d60aa8c1ea4cef9ca0b713e732b7c3fa3cc460dd2b4f71b4b7f766a3dda0d738f9afa00bd2ba400
|
||||
DIST glueviz-0.8.1.tar.gz 11283626 SHA256 b7bfd5bfaddb454a233aadbf5f73b98e51b9ba31882a046ac8969ae7c1a19461 SHA512 99cccd232d38efdce5119051f78c33192a4c1e8482f5545c7714e68680dc20abb36451da5ce79e6402cadb2590762c5811cdd06c18aa3a0b7d6baa7f7f5498af WHIRLPOOL dfbedfa7bd843e3e69d3a195404d2ecd1b20a4c7908894adfbe123d384c915f4c0efc039e332147d5c4988b193f681e546ae54cb017c8643664911c43564909e
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="Python library to explore relationships within and among related datasets"
|
||||
HOMEPAGE="http://www.glueviz.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
# too much work to fix
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( README.md CHANGES.md )
|
||||
|
||||
RDEPEND="
|
||||
dev-python/astropy[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
dev-python/PyQt4[${PYTHON_USEDEP}]
|
||||
dev-python/pyside[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Interactive Ipython terminal" \
|
||||
dev-python/ipython \
|
||||
dev-python/ipykernel \
|
||||
dev-python/qtconsole \
|
||||
dev-python/traitlets \
|
||||
dev-python/pygments \
|
||||
dev-python/zmq
|
||||
optfeature "Parse AVM metadata" dev-python/pyavm
|
||||
optfeature "Save ${PN} sessions" dev-python/dill
|
||||
optfeature "Support HDF5 files" dev-python/h5py
|
||||
optfeature "Image processing calculations" sci-libs/scipy
|
||||
optfeature "Read popular image formats" sci-libs/scikits_image
|
||||
optfeature "Export plots to plot.ly" dev-python/plotly
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
diff --git a/IPython/utils/terminal.py b/IPython/utils/terminal.py
|
||||
index 9e7be2a..a1f0f73 100644
|
||||
--- a/IPython/utils/terminal.py
|
||||
+++ b/IPython/utils/terminal.py
|
||||
@@ -9,22 +9,18 @@
|
||||
* Alexander Belchenko (e-mail: bialix AT ukr.net)
|
||||
"""
|
||||
|
||||
-#-----------------------------------------------------------------------------
|
||||
-# Copyright (C) 2008-2011 The IPython Development Team
|
||||
-#
|
||||
-# Distributed under the terms of the BSD License. The full license is in
|
||||
-# the file COPYING, distributed as part of this software.
|
||||
-#-----------------------------------------------------------------------------
|
||||
-
|
||||
-#-----------------------------------------------------------------------------
|
||||
-# Imports
|
||||
-#-----------------------------------------------------------------------------
|
||||
+# Copyright (c) IPython Development Team.
|
||||
+# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
import os
|
||||
import struct
|
||||
import sys
|
||||
import warnings
|
||||
-import backports.shutil_get_terminal_size
|
||||
+try:
|
||||
+ from shutil import get_terminal_size as _get_terminal_size
|
||||
+except ImportError:
|
||||
+ # use backport on Python 2
|
||||
+ from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size
|
||||
|
||||
from . import py3compat
|
||||
|
||||
@@ -122,4 +118,4 @@ def freeze_term_title():
|
||||
|
||||
|
||||
def get_terminal_size(defaultx=80, defaulty=25):
|
||||
- return backports.shutil_get_terminal_size.get_terminal_size((defaultx, defaulty))
|
||||
+ return _get_terminal_size((defaultx, defaulty))
|
@ -0,0 +1,203 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
inherit eutils multilib pax-utils python-any-r1 unpacker versionator
|
||||
|
||||
BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy-bin/${PV}"
|
||||
CPY_PATCHSET_VERSION="2.7.11-0"
|
||||
|
||||
DESCRIPTION="Pre-built version of PyPy"
|
||||
HOMEPAGE="http://pypy.org/"
|
||||
SRC_URI="https://bitbucket.org/pypy/pypy/downloads/pypy-${PV}-src.tar.bz2
|
||||
https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz
|
||||
amd64? (
|
||||
jit? ( shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+jit+ncurses+shadowstack.tar.lz
|
||||
) )
|
||||
jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.lz
|
||||
) )
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+ncurses.tar.lz
|
||||
) )
|
||||
)
|
||||
x86? (
|
||||
cpu_flags_x86_sse2? (
|
||||
jit? ( shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.lz
|
||||
) )
|
||||
jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+jit+ncurses+sse2.tar.lz
|
||||
) )
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+ncurses+sse2.tar.lz
|
||||
) )
|
||||
)
|
||||
!cpu_flags_x86_sse2? (
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+ncurses.tar.lz
|
||||
) )
|
||||
)
|
||||
)"
|
||||
|
||||
# Supported variants
|
||||
REQUIRED_USE="!jit? ( !shadowstack )
|
||||
x86? ( !cpu_flags_x86_sse2? ( !jit !shadowstack ) )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/$(get_version_component_range 1-2 ${PV})"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc gdbm +jit +shadowstack sqlite cpu_flags_x86_sse2 test tk"
|
||||
|
||||
# yep, world would be easier if people started filling subslots...
|
||||
RDEPEND="
|
||||
app-arch/bzip2:0=
|
||||
dev-libs/expat:0=
|
||||
dev-libs/libffi:0=
|
||||
dev-libs/openssl:0=[-bindist]
|
||||
sys-libs/glibc:2.2=
|
||||
sys-libs/ncurses:0/6
|
||||
sys-libs/zlib:0=
|
||||
gdbm? ( sys-libs/gdbm:0= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
tk? (
|
||||
dev-lang/tk:0=
|
||||
dev-tcltk/tix:0=
|
||||
)
|
||||
!dev-python/pypy:0"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/lzip
|
||||
app-arch/xz-utils
|
||||
doc? ( ${PYTHON_DEPS}
|
||||
dev-python/sphinx )"
|
||||
PDEPEND="app-admin/python-updater"
|
||||
|
||||
S=${WORKDIR}/pypy-${PV}-src
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/lib*/pypy/pypy-c
|
||||
usr/lib*/pypy/libpypy-c.so"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
use doc && python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
|
||||
"${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
|
||||
|
||||
sed -e "s^@EPREFIX@^${EPREFIX}^" \
|
||||
-e "s^@libdir@^$(get_libdir)^" \
|
||||
-i lib-python/2.7/distutils/command/install.py || die
|
||||
|
||||
# apply CPython stdlib patches
|
||||
pushd lib-python/2.7 > /dev/null || die
|
||||
epatch "${FILESDIR}"/2.5.0_all_distutils_cxx.patch \
|
||||
"${WORKDIR}"/patches/22_all_turkish_locale.patch \
|
||||
"${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
|
||||
popd > /dev/null || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Tadaam! PyPy compiled!
|
||||
mv "${WORKDIR}"/${P}*/{libpypy-c.so,pypy-c} . || die
|
||||
mv "${WORKDIR}"/${P}*/include/*.h include/ || die
|
||||
mv pypy/module/cpyext/include/*.h include/ || die
|
||||
mv pypy/module/cpyext/include/numpy include/ || die
|
||||
|
||||
use doc && emake -C pypy/doc/ html
|
||||
#needed even without jit :( also needed in both compile and install phases
|
||||
pax-mark m pypy-c libpypy-c.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# (unset)
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
|
||||
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest=/usr/$(get_libdir)/pypy
|
||||
einfo "Installing PyPy ..."
|
||||
insinto "${dest}"
|
||||
doins -r include lib_pypy lib-python pypy-c libpypy-c.so
|
||||
fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
|
||||
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
|
||||
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
|
||||
dodoc README.rst
|
||||
|
||||
if ! use gdbm; then
|
||||
rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
|
||||
fi
|
||||
if ! use sqlite; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
|
||||
"${ED%/}${dest}"/lib_pypy/_sqlite3.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
|
||||
fi
|
||||
if ! use tk; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
|
||||
"${ED%/}${dest}"/lib_pypy/_tkinter \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
|
||||
fi
|
||||
|
||||
# Install docs
|
||||
use doc && dohtml -r pypy/doc/_build/html/
|
||||
|
||||
einfo "Generating caches and byte-compiling ..."
|
||||
|
||||
local -x PYTHON=${ED%/}${dest}/pypy-c
|
||||
local -x LD_LIBRARY_PATH="${ED%/}${dest}"
|
||||
# we can't use eclass function since PyPy is dumb and always gives
|
||||
# paths relative to the interpreter
|
||||
local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
|
||||
python_export pypy EPYTHON
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# Generate Grammar and PatternGrammar pickles.
|
||||
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
|
||||
|| die "Generation of Grammar and PatternGrammar pickles failed"
|
||||
|
||||
# Generate cffi modules
|
||||
# Please keep in sync with pypy/tool/build_cffi_imports.py!
|
||||
#cffi_build_scripts = {
|
||||
# "sqlite3": "_sqlite3_build.py",
|
||||
# "audioop": "_audioop_build.py",
|
||||
# "tk": "_tkinter/tklib_build.py",
|
||||
# "curses": "_curses_build.py" if sys.platform != "win32" else None,
|
||||
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
|
||||
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
|
||||
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
|
||||
# "resource": "_resource_build.py" if sys.platform != "win32" else None,
|
||||
cffi_targets=( audioop curses syslog gdbm pwdgrp resource )
|
||||
use gdbm && cffi_targets+=( gdbm )
|
||||
use sqlite && cffi_targets+=( sqlite3 )
|
||||
use tk && cffi_targets+=( tkinter/tklib )
|
||||
|
||||
local t
|
||||
# all modules except tkinter output to .
|
||||
# tkinter outputs to the correct dir ...
|
||||
cd "${ED%/}${dest}"/lib_pypy || die
|
||||
for t in "${cffi_targets[@]}"; do
|
||||
# tkinter doesn't work via -m
|
||||
"${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
|
||||
done
|
||||
|
||||
# Cleanup temporary objects
|
||||
find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
|
||||
find "${ED%/}${dest}" -type d -empty -delete || die
|
||||
|
||||
# compile the installed modules
|
||||
python_optimize "${ED%/}${dest}"
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
DIST pypy-4.0.1-src.tar.bz2 17172844 SHA256 29f5aa6ba17b34fd980e85172dfeb4086fdc373ad392b1feff2677d2d8aea23c SHA512 66358cc3fe9ccb402b717379c48731aca8f9f85a1a754a54e3a060113398955b87a3f3048ba731a93be4b49c0f5c7e3bac49dc4523263e1bf4f4b5149d5db5c4 WHIRLPOOL 656a6c60aeb26cb6355db121a92bafcf2b744a7f09dccf21b4a16052c0117d239891ccf6762fcb4fee7f913862263c589becd5984498edc4a8b6d55784957994
|
||||
DIST pypy-5.0.0-src.tar.bz2 17223494 SHA256 89027b1b33553b53ff7733dc4838f0a76af23552c0d915d9f6de5875b8d7d4ab SHA512 2af686cdad13a1083114a03a7361f58c4dd482e3a83a63b43f8d40922a11120383f91deb6f1607510c4bbd22fd8c59dcf1b58406c2e5cf5548a48542e1b20f89 WHIRLPOOL 61c9ada98e710019832cb6468e68c8b17e429e48f2ea0480371b2f04521bc77ab774a21dba2280bb40b97e528ad391a83d139bb839461899f9dc214d60683716
|
||||
DIST pypy-5.1.1-src.tar.bz2 17328934 SHA256 ca3d943d7fbd78bb957ee9e5833ada4bb8506ac99a41b7628790e286a65ed2be SHA512 2d81b62747ac02980c275fe24fff689e93b4b352e6279c55ca570fd76b8477a55f819e81fab4c6ffdb6991f29536c606d75e238d5bbe04518357509020f23ca9 WHIRLPOOL 17f78c8c7df9e07af3fce15392061652284606fbd872706888094ec01d222957c8ee43d2667369377ceb1a9720692d130e4a540bcaff269b4c7d8896b14d708d
|
||||
DIST python-gentoo-patches-2.7.10-0.tar.xz 12892 SHA256 c9a838bd62ae50cc385da23a837acfd05f2b74e4f086c9c76eb4d3aa5366ef6d SHA512 5f100944635e360691dc0a2b340a906646c4ae9ee558246ddffc56e8b15d389f25f1fbdc1db4cc08e7d29560d04d66b058b3904902899d58ecae8c408ebdf056 WHIRLPOOL f69e9a518bb7ee50c1b262a21e70e1e2443f859ee6d2f4fa84421120dbd054a06ce8dd6cfea8512cbc64bce806322b879c25c561d5eb05e1ba6cc15035b373a9
|
||||
DIST python-gentoo-patches-2.7.11-0.tar.xz 12916 SHA256 e14b47bb1fd64d366d7dfb8339cc2cbf4a53fc288b11dd83f575eb36a8a6408d SHA512 f0447bb699a163afc08df39b111394377539935546ae23732d7239e78d2bff0c04bc94949f86aef0c1be83736127dbd25c2c531e49befed2d638c3cd4940ac52 WHIRLPOOL 305992849d9d244da1e308e739c9bf62a3ef5c74eb65c765bdc666fb5767eb16c7a609f7c442c17da17f76c3ab81e4b09fa8c21e43f89366539a6a9d656bea77
|
||||
|
@ -0,0 +1,254 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
inherit check-reqs eutils multilib multiprocessing pax-utils python-any-r1 toolchain-funcs versionator
|
||||
|
||||
CPY_PATCHSET_VERSION="2.7.11-0"
|
||||
|
||||
DESCRIPTION="A fast, compliant alternative implementation of the Python language"
|
||||
HOMEPAGE="http://pypy.org/"
|
||||
SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${P}-src.tar.bz2
|
||||
https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/$(get_version_component_range 1-2 ${PV})"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="bzip2 doc gdbm +jit libressl low-memory ncurses sandbox +shadowstack sqlite cpu_flags_x86_sse2 test tk"
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi:0=
|
||||
virtual/libintl:0=
|
||||
dev-libs/expat:0=
|
||||
!libressl? ( dev-libs/openssl:0=[-bindist] )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
bzip2? ( app-arch/bzip2:0= )
|
||||
gdbm? ( sys-libs/gdbm:0= )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
tk? (
|
||||
dev-lang/tk:0=
|
||||
dev-tcltk/tix:0=
|
||||
)
|
||||
!dev-python/pypy-bin:0"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )
|
||||
${PYTHON_DEPS}
|
||||
test? ( dev-python/pytest )"
|
||||
PDEPEND="app-admin/python-updater"
|
||||
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
if use low-memory; then
|
||||
if ! python_is_installed pypy; then
|
||||
eerror "USE=low-memory requires a (possibly old) version of dev-python/pypy"
|
||||
eerror "or dev-python/pypy-bin being installed. Please install it using e.g.:"
|
||||
eerror
|
||||
eerror " $ emerge -1v dev-python/pypy-bin"
|
||||
eerror
|
||||
eerror "before attempting to build dev-python/pypy[low-memory]."
|
||||
die "dev-python/pypy-bin (or dev-python/pypy) needs to be installed for USE=low-memory"
|
||||
fi
|
||||
|
||||
CHECKREQS_MEMORY="1750M"
|
||||
use amd64 && CHECKREQS_MEMORY="3500M"
|
||||
else
|
||||
CHECKREQS_MEMORY="3G"
|
||||
use amd64 && CHECKREQS_MEMORY="6G"
|
||||
fi
|
||||
|
||||
check-reqs_pkg_pretend
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
pkg_pretend
|
||||
|
||||
if python_is_installed pypy; then
|
||||
if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] || use low-memory; then
|
||||
einfo "Using already-installed PyPy to perform the translation."
|
||||
local EPYTHON=pypy
|
||||
else
|
||||
einfo "Using ${EPYTHON} to perform the translation. Please note that upstream"
|
||||
einfo "recommends using PyPy for that. If you wish to do so, please unset"
|
||||
einfo "the EPYTHON variable."
|
||||
fi
|
||||
fi
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
|
||||
"${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" \
|
||||
"${FILESDIR}"/2.5.0-shared-lib.patch # 517002
|
||||
|
||||
sed -e "s^@EPREFIX@^${EPREFIX}^" \
|
||||
-e "s^@libdir@^$(get_libdir)^" \
|
||||
-i lib-python/2.7/distutils/command/install.py || die
|
||||
|
||||
# apply CPython stdlib patches
|
||||
pushd lib-python/2.7 > /dev/null || die
|
||||
epatch "${FILESDIR}"/2.5.0_all_distutils_cxx.patch \
|
||||
"${WORKDIR}"/patches/22_all_turkish_locale.patch \
|
||||
"${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
|
||||
popd > /dev/null || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
|
||||
local jit_backend
|
||||
if use jit; then
|
||||
jit_backend='--jit-backend='
|
||||
|
||||
# We only need the explicit sse2 switch for x86.
|
||||
# On other arches we can rely on autodetection which uses
|
||||
# compiler macros. Plus, --jit-backend= doesn't accept all
|
||||
# the modern values...
|
||||
|
||||
if use x86; then
|
||||
if use cpu_flags_x86_sse2; then
|
||||
jit_backend+=x86
|
||||
else
|
||||
jit_backend+=x86-without-sse2
|
||||
fi
|
||||
else
|
||||
jit_backend+=auto
|
||||
fi
|
||||
fi
|
||||
|
||||
local args=(
|
||||
--shared
|
||||
$(usex jit -Ojit -O2)
|
||||
$(usex shadowstack --gcrootfinder=shadowstack '')
|
||||
$(usex sandbox --sandbox '')
|
||||
|
||||
${jit_backend}
|
||||
--make-jobs=$(makeopts_jobs)
|
||||
|
||||
pypy/goal/targetpypystandalone
|
||||
)
|
||||
|
||||
# Avoid linking against libraries disabled by use flags
|
||||
local opts=(
|
||||
bzip2:bz2
|
||||
ncurses:_minimal_curses
|
||||
)
|
||||
|
||||
local opt
|
||||
for opt in "${opts[@]}"; do
|
||||
local flag=${opt%:*}
|
||||
local mod=${opt#*:}
|
||||
|
||||
args+=(
|
||||
$(usex ${flag} --withmod --withoutmod)-${mod}
|
||||
)
|
||||
done
|
||||
|
||||
local interp=( "${PYTHON}" )
|
||||
if use low-memory; then
|
||||
interp=( env PYPY_GC_MAX_DELTA=200MB
|
||||
"${PYTHON}" --jit loop_longevity=300 )
|
||||
fi
|
||||
|
||||
set -- "${interp[@]}" rpython/bin/rpython --batch "${args[@]}"
|
||||
echo -e "\033[1m${@}\033[0m"
|
||||
"${@}" || die "compile error"
|
||||
|
||||
use doc && emake -C pypy/doc/ html
|
||||
pax-mark m pypy-c libpypy-c.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# (unset)
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
|
||||
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest=/usr/$(get_libdir)/pypy
|
||||
einfo "Installing PyPy ..."
|
||||
insinto "${dest}"
|
||||
doins -r include lib_pypy lib-python pypy-c libpypy-c.so
|
||||
fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
|
||||
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
|
||||
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
|
||||
dodoc README.rst
|
||||
|
||||
if ! use gdbm; then
|
||||
rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
|
||||
fi
|
||||
if ! use sqlite; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
|
||||
"${ED%/}${dest}"/lib_pypy/_sqlite3.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
|
||||
fi
|
||||
if ! use tk; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
|
||||
"${ED%/}${dest}"/lib_pypy/_tkinter \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
|
||||
fi
|
||||
|
||||
# Install docs
|
||||
use doc && dohtml -r pypy/doc/_build/html/
|
||||
|
||||
einfo "Generating caches and byte-compiling ..."
|
||||
|
||||
local -x PYTHON=${ED%/}${dest}/pypy-c
|
||||
local -x LD_LIBRARY_PATH="${ED%/}${dest}"
|
||||
# we can't use eclass function since PyPy is dumb and always gives
|
||||
# paths relative to the interpreter
|
||||
local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
|
||||
python_export pypy EPYTHON
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# Generate Grammar and PatternGrammar pickles.
|
||||
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
|
||||
|| die "Generation of Grammar and PatternGrammar pickles failed"
|
||||
|
||||
# Generate cffi modules
|
||||
# Please keep in sync with pypy/tool/build_cffi_imports.py!
|
||||
#cffi_build_scripts = {
|
||||
# "sqlite3": "_sqlite3_build.py",
|
||||
# "audioop": "_audioop_build.py",
|
||||
# "tk": "_tkinter/tklib_build.py",
|
||||
# "curses": "_curses_build.py" if sys.platform != "win32" else None,
|
||||
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
|
||||
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
|
||||
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
|
||||
cffi_targets=( audioop syslog pwdgrp )
|
||||
use gdbm && cffi_targets+=( gdbm )
|
||||
use ncurses && cffi_targets+=( curses )
|
||||
use sqlite && cffi_targets+=( sqlite3 )
|
||||
use tk && cffi_targets+=( tkinter/tklib )
|
||||
|
||||
local t
|
||||
# all modules except tkinter output to .
|
||||
# tkinter outputs to the correct dir ...
|
||||
cd "${ED%/}${dest}"/lib_pypy || die
|
||||
for t in "${cffi_targets[@]}"; do
|
||||
# tkinter doesn't work via -m
|
||||
"${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
|
||||
done
|
||||
|
||||
# Cleanup temporary objects
|
||||
find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
|
||||
find "${ED%/}${dest}" -type d -empty -delete || die
|
||||
|
||||
# compile the installed modules
|
||||
python_optimize "${ED%/}${dest}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST wcsaxes-0.6.tar.gz 617882 SHA256 ab8101ff742ebba79da3ff7bf777f24fcf8275886dbb5482f0a2eb3ab6756ee4 SHA512 6254fabc31b7c2e44dd86b0330592e01a688e36957e9d96348f7b4d305242e02e27d2363fd7ada37ad6dba292c66bbace9ea675f475388ed5545ac24cad1226c WHIRLPOOL e2f1d7b230fb7ba3982915638535258377fd450d47f3f191ba0a12aa1698050213353e315de2329e3f8ad359a76bfccdc4291e49eb6b0a4947d0f41305977100
|
||||
DIST wcsaxes-0.8.tar.gz 226456 SHA256 3ada54586add52e70ceb5aff9257ae9c38a71d1889fe335bce3d219c5a03c672 SHA512 77a08a99b4b3fd4f08633a10d4a3dfd6726bc1433aca2c2bdb505fd93c79a5ba3735523697c11084f0044a22a5bda345a946f5770185815f92b71b59c7fc0769 WHIRLPOOL 3acbba0c1c93f4d2ceeea3d4f236f7294e3eb306b7f3f8be7244aa5b7f35452cc21c072a5f054a7608238262f6cc0dde19b40f02cd9705182430fa0a6e9b0470
|
||||
|
@ -0,0 +1,14 @@
|
||||
Author: Ole Streicher <olebole@debian.org>
|
||||
Description: Remove the tests that require pytest-mpl
|
||||
Pytest_mpl is (still) not available in Debian.
|
||||
https://github.com/astrofrog/pytest-mpl
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -11,7 +11,6 @@
|
||||
minversion = 2.2
|
||||
norecursedirs = build docs/_build
|
||||
doctest_plus = enabled
|
||||
-addopts = --mpl
|
||||
|
||||
[ah_bootstrap]
|
||||
auto_use = False
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1 virtualx
|
||||
|
||||
DESCRIPTION="Framework for plotting astronomical and geospatial data"
|
||||
HOMEPAGE="http://wcsaxes.readthedocs.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/astropy[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.8-disable_mpltest.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# use system astropy-helpers instead of bundled one
|
||||
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
python_setup
|
||||
VARTEXFONTS="${T}"/fonts \
|
||||
MPLCONFIGDIR="${BUILD_DIR}" \
|
||||
PYTHONPATH="${BUILD_DIR}"/lib \
|
||||
esetup.py build_sphinx --no-intersphinx
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
virtx esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST awesome_print-1.6.1.gem 32256 SHA256 0d8be8d9b270b900a337356cb9453ffdaf219d29902f14bbe4f120ecfdd38fef SHA512 394f5011d45f1daca77215e585d50c8505a63498b982aae32b206b99051fc27b903135fdb62976d9aeb4dfa80f5d6980b55c7fbe0fdc75feb979fd3b3b935c92 WHIRLPOOL 9d6c5f8fe60e3ba7ebbc16c5bcaf91337d2142d4846b490c75185c905ada1dd6f76fbd8f73a859bdeef91542ad3623758cfaa029d1b303dfc02d9b964199bc40
|
||||
DIST awesome_print-1.7.0.tar.gz 39436 SHA256 9f844b1f085718d5ba1968be79614dc93202b05166df4b09649e974db37e9634 SHA512 a49cf98c373ccc39a3f80b8ba531edb1f1bb63ba2dea10339aa3cdeae3e63863043c6a5fb0143569e1a50b2e340256210a170cccda3fc609aa3fccef20cfd080 WHIRLPOOL b6c9c5b3fde85618448145f050b7fe4cd9ea067c254bb25beb4dcc98e128597a1f2546022548d3a8502417f98bad04fb321021188ea7211e0087380dd56db225
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Library to pretty print Ruby objects in full color with proper indentation"
|
||||
HOMEPAGE="https://github.com/awesome-print/awesome_print"
|
||||
SRC_URI="https://github.com/awesome-print/awesome_print/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/nokogiri
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/codeclimate/I s:^:#:' spec/spec_helper.rb || die
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A simple, powerful, and very fast logging utility"
|
||||
HOMEPAGE="https://github.com/bdurand/lumberjack"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md ROADMAP.md STANDARD_RESPONSES.md"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="ext"
|
||||
|
||||
inherit ruby-fakegem eutils multilib
|
||||
|
||||
DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
|
||||
HOMEPAGE="http://nokogiri.org/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libxml2-2.9.2:=
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/libxml2-2.9.2
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/hoe
|
||||
>=dev-ruby/pkg-config-1.1.7
|
||||
dev-ruby/rexical
|
||||
dev-ruby/rdoc
|
||||
dev-ruby/racc
|
||||
test? ( dev-ruby/minitest )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i \
|
||||
-e '/tasks\/cross_compile/s:^:#:' \
|
||||
-e '/:test.*prerequisites/s:^:#:' \
|
||||
-e '/license/ s:^:#:' \
|
||||
Rakefile || die
|
||||
# Remove the cross compilation options since they interfere with
|
||||
# native building.
|
||||
sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
|
||||
sed -i -e '/cross_config_options/d' Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
|
||||
${RUBY} -Cext/${PN} extconf.rb \
|
||||
--with-zlib-include="${EPREFIX}"/usr/include \
|
||||
--with-zlib-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-iconv-include="${EPREFIX}"/usr/include \
|
||||
--with-iconv-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
|
||||
--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-xslt-dir="${EPREFIX}"/usr \
|
||||
--with-iconvlib=iconv \
|
||||
|| die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
|
||||
fi
|
||||
|
||||
if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
|
||||
fi
|
||||
|
||||
emake -Cext/${PN} \
|
||||
V=1 \
|
||||
CFLAGS="${CFLAGS} -fPIC" \
|
||||
archflag="${LDFLAGS}" || die "make extension failed"
|
||||
cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# Clean up "ext" directory before installing it. nokogumbo expects
|
||||
# the header files and shared object to be in ext.
|
||||
rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die
|
||||
|
||||
each_fakegem_install
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue