Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /usr/portage/dev-lang/python/python-2.7.1-r1.ebuild 2011-04-22 20:31:07.000000000 +0200
- +++ /usr/local/portage/dev-lang/python/python-2.7.1-r1.ebuild 2011-05-15 01:12:00.193900146 +0200
- @@ -33,7 +33,8 @@ LICENSE="PSF-2.2"
- SLOT="2.7"
- PYTHON_ABI="${SLOT}"
- KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
- -IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
- +IUSE="-berkdb build doc elibc_uclibc examples gdbm ipv6 +ncurses +readline
- +sqlite +ssl +threads tk +wide-unicode wininst +xml static"
- RDEPEND=">=app-admin/eselect-python-20091230
- >=sys-libs/zlib-1.1.3
- @@ -140,6 +141,10 @@ src_prepare() {
- sed -e "s/\(-DSVNVERSION=\).*\( -o\)/\1\\\\\"${ESVN_REVISION}\\\\\"\2/" -i Makefile.pre.in || die "sed failed"
- fi
- + if use static; then
- + sed -i -e 's/^#\*shared\*/*static*/' Modules/Setup.dist || die "blaaaaaaa!"
- + fi
- +
- eautoreconf
- }
- @@ -209,6 +214,12 @@ src_configure() {
- # Please query BSD team before removing this!
- append-ldflags "-L."
- + # Static linking
- + if use static; then
- + append-ldflags "-static -static-libgcc"
- + append-flags "-static -fPIC"
- + fi
- +
- local dbmliborder
- if use gdbm; then
- dbmliborder+="${dbmliborder:+:}gdbm"
- @@ -219,7 +230,7 @@ src_configure() {
- OPT="" econf \
- --with-fpectl \
- - --enable-shared \
- + $(use_enable !static shared)
- $(use_enable ipv6) \
- $(use_with threads) \
- $(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement