parent
16bc4c1d73
commit
895b1f9d60
@ -0,0 +1 @@
|
||||
DIST clustershell-1.6.tar.gz 950548 SHA256 ea119555ba9a4a8aa17d355345772263c20e2cc362140f55933ce217d7633e07 SHA512 d94979bf5b5ead406f49e4ba691cf8541c03398913eb2fb9da724f50ba8b47059b76ddb6058dc5aaea86bbc8588b4d9c75cc34a8a7a94dcfa184ca73250c3b02 WHIRLPOOL 889c250e6ef364dcab20960fb0fd84e6d8e00d8c185d40704b9a5845e4f45ea3fe074bdba5713aadb5cad04e11933b1d8a98fb7b80ec559682c699850c517975
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/clustershell/clustershell-1.6.ebuild,v 1.1 2013/02/05 14:10:48 hasufell Exp $
|
||||
|
||||
# TODO: test phase
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
|
||||
PYTHON_REQ_USE="xml"
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python framework for efficient cluster administration"
|
||||
HOMEPAGE="http://cea-hpc.github.com/clustershell/"
|
||||
SRC_URI="https://github.com/cea-hpc/clustershell/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="CeCILL-C"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-libs/openssl"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
if use doc ; then
|
||||
local i
|
||||
for i in $(ls -I man "${S}"/doc) ; do
|
||||
dodoc -r doc/${i}
|
||||
done
|
||||
fi
|
||||
|
||||
doman doc/man/man*/*
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "Some default system-wide config files have been installed into"
|
||||
einfo "/etc/${PN}"
|
||||
einfo
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>hasufell@gentoo.org</email>
|
||||
<name>Julian Ospald</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,47 @@
|
||||
--- gtkperf-0.40/work/gtkperf/configure.in
|
||||
+++ gtkperf-0.40/work/gtkperf/configure.in
|
||||
@@ -8,7 +8,6 @@
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_ISC_POSIX
|
||||
-CFLAGS=""
|
||||
AC_SUBST(CFLAGS)
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_STDC
|
||||
--- gtkperf-0.40/work/gtkperf/src/timing.c
|
||||
+++ gtkperf-0.40/work/gtkperf/src/timing.c
|
||||
@@ -97,7 +97,7 @@
|
||||
gtk_text_buffer_insert (appdata->textview_info_buffer, &iter,
|
||||
timestring, -1);
|
||||
|
||||
- g_printf (timestring);
|
||||
+ g_printf ("%s", timestring);
|
||||
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0,
|
||||
" Test Finished");
|
||||
|
||||
- g_printf (timestring);
|
||||
+ g_printf ("%s", timestring);
|
||||
|
||||
}
|
||||
|
||||
@@ -154,5 +154,5 @@
|
||||
gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0,
|
||||
" Running tests...");
|
||||
|
||||
- g_printf (timestring);
|
||||
+ g_printf ("%s", timestring);
|
||||
}
|
||||
--- gtkperf-0.40/work/gtkperf/src/main.c
|
||||
+++ gtkperf-0.40/work/gtkperf/src/main.c
|
||||
@@ -5,6 +5,7 @@
|
||||
#endif
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#ifdef HILDONIZED
|
||||
#include <libosso.h>
|
@ -1,8 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>wxwidgets</herd>
|
||||
<maintainer>
|
||||
<email>wxwidgets@gentoo.org</email>
|
||||
</maintainer>
|
||||
<herd>wxwidgets</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -1,285 +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/wine/wine-1.5.23.ebuild,v 1.1 2013/02/03 00:52:52 tetromino Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
fi
|
||||
|
||||
GV="1.9"
|
||||
MV="0.0.8"
|
||||
PULSE_PATCHES="winepulse-patches-1.5.23"
|
||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
||||
HOMEPAGE="http://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
gecko? (
|
||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
||||
)
|
||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
||||
REQUIRED_USE="elibc_glibc? ( threads )
|
||||
mono? ( || ( win32 !win64 ) )
|
||||
osmesa? ( opengl )" #286560
|
||||
RESTRICT="test" #72375
|
||||
|
||||
MLIB_DEPS="amd64? (
|
||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
||||
X? (
|
||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
||||
)
|
||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
||||
odbc? ( app-emulation/emul-linux-x86-db )
|
||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
||||
app-emulation/emul-linux-x86-baselibs
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
)"
|
||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
|
||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
||||
capi? ( net-dialup/capi4k-utils )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2 )
|
||||
fontconfig? ( media-libs/fontconfig:= )
|
||||
gphoto2? ( media-libs/libgphoto2:= )
|
||||
openal? ( media-libs/openal:= )
|
||||
udisks? (
|
||||
sys-apps/dbus
|
||||
sys-fs/udisks:2
|
||||
)
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXxf86vm
|
||||
)
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
cups? ( net-print/cups:= )
|
||||
opencl? ( virtual/opencl )
|
||||
opengl? (
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
)
|
||||
gsm? ( media-sound/gsm:= )
|
||||
jpeg? ( virtual/jpeg:= )
|
||||
ldap? ( net-nds/openldap:= )
|
||||
lcms? ( media-libs/lcms:0= )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
||||
nls? ( sys-devel/gettext )
|
||||
odbc? ( dev-db/unixODBC:= )
|
||||
osmesa? ( media-libs/mesa[osmesa] )
|
||||
samba? ( >=net-fs/samba-3.0.25 )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
scanner? ( media-gfx/sane-backends:= )
|
||||
ssl? ( dev-libs/openssl:= )
|
||||
png? ( media-libs/libpng:= )
|
||||
v4l? ( media-libs/libv4l )
|
||||
!win64? ( ${MLIB_DEPS} )
|
||||
win32? ( ${MLIB_DEPS} )
|
||||
xcomposite? ( x11-libs/libXcomposite )"
|
||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
||||
pulseaudio? (
|
||||
media-sound/pulseaudio
|
||||
sys-auth/rtkit
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
X? (
|
||||
x11-proto/inputproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
)
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
prelink? ( sys-devel/prelink )
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
sys-devel/flex"
|
||||
|
||||
# These use a non-standard "Wine" category, which is provided by
|
||||
# /etc/xdg/applications-merged/wine.menu
|
||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||
usr/share/applications/wine-notepad.desktop
|
||||
usr/share/applications/wine-uninstaller.desktop
|
||||
usr/share/applications/wine-winecfg.desktop"
|
||||
|
||||
src_unpack() {
|
||||
if use win64 ; then
|
||||
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
|
||||
&& die "you need gcc-4.4+ to build 64bit wine"
|
||||
fi
|
||||
|
||||
if use win32 && use opencl; then
|
||||
[[ x$(eselect opencl show) = "xintel" ]] &&
|
||||
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
git-2_src_unpack
|
||||
else
|
||||
unpack ${MY_P}.tar.bz2
|
||||
fi
|
||||
|
||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
||||
unpack "${WINE_GENTOO}.tar.bz2"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local md5="$(md5sum server/protocol.def)"
|
||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
||||
[[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365
|
||||
epatch_user #282735
|
||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||
tools/make_requests || die #432348
|
||||
fi
|
||||
eautoreconf
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
local builddir="${WORKDIR}/wine$1"
|
||||
mkdir -p "${builddir}"
|
||||
pushd "${builddir}" >/dev/null
|
||||
|
||||
local usepulse
|
||||
[[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse)
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--sysconfdir=/etc/wine \
|
||||
$(use_with alsa) \
|
||||
$(use_with capi) \
|
||||
$(use_with lcms cms) \
|
||||
$(use_with cups) \
|
||||
$(use_with ncurses curses) \
|
||||
$(use_with udisks dbus) \
|
||||
$(use_with fontconfig) \
|
||||
$(use_with gnutls) \
|
||||
$(use_with gphoto2 gphoto) \
|
||||
$(use_with gsm) \
|
||||
$(use_with gstreamer) \
|
||||
--without-hal \
|
||||
$(use_with jpeg) \
|
||||
$(use_with ldap) \
|
||||
$(use_with mp3 mpg123) \
|
||||
$(use_with nls gettext) \
|
||||
$(use_with openal) \
|
||||
$(use_with opencl) \
|
||||
$(use_with opengl) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with osmesa) \
|
||||
$(use_with oss) \
|
||||
$(use_with png) \
|
||||
$(use_with threads pthread) \
|
||||
${usepulse} \
|
||||
$(use_with scanner sane) \
|
||||
$(use_enable test tests) \
|
||||
$(use_with truetype freetype) \
|
||||
$(use_with v4l) \
|
||||
$(use_with X x) \
|
||||
$(use_with xcomposite) \
|
||||
$(use_with xinerama) \
|
||||
$(use_with xml) \
|
||||
$(use_with xml xslt) \
|
||||
$2
|
||||
|
||||
emake -j1 depend
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
if use win64 ; then
|
||||
do_configure 64 --enable-win64
|
||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
||||
else
|
||||
ABI=x86 do_configure 32 --disable-win64
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local b
|
||||
for b in 64 32 ; do
|
||||
local builddir="${WORKDIR}/wine${b}"
|
||||
[[ -d ${builddir} ]] || continue
|
||||
emake -C "${builddir}" all
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local b
|
||||
for b in 64 32 ; do
|
||||
local builddir="${WORKDIR}/wine${b}"
|
||||
[[ -d ${builddir} ]] || continue
|
||||
emake -C "${builddir}" install DESTDIR="${D}"
|
||||
done
|
||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
||||
dodoc ANNOUNCE AUTHORS README
|
||||
if use gecko ; then
|
||||
insinto /usr/share/wine/gecko
|
||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
||||
fi
|
||||
if use mono ; then
|
||||
insinto /usr/share/wine/mono
|
||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
||||
fi
|
||||
if ! use perl ; then
|
||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
if use win32 || ! use win64; then
|
||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
||||
fi
|
||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
||||
|
||||
if use win64 && ! use win32; then
|
||||
dosym /usr/bin/wine{64,} # 404331
|
||||
dosym /usr/bin/wine{64,}-preloader
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
diff --git a/engine/Makefile.in b/engine/Makefile.in
|
||||
index c9d1a42..4d25a09 100644
|
||||
--- a/engine/Makefile.in
|
||||
+++ b/engine/Makefile.in
|
||||
@@ -418,7 +418,7 @@ install-engine_tablePYTHON: $(engine_table_PYTHON)
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(engine_tabledir)" || exit $$?; \
|
||||
done || exit $$?; \
|
||||
if test -n "$$dlist"; then \
|
||||
- $(am__py_compile) --destdir "$(DESTDIR)" \
|
||||
+ $(py_compile) --destdir "$(DESTDIR)" \
|
||||
--basedir "$(engine_tabledir)" $$dlist; \
|
||||
else :; fi
|
||||
|
@ -1 +1 @@
|
||||
DIST libmspub-0.0.3.tar.xz 339552 SHA256 e27c3021006080298357101a724563c23835c89757527217fb7f9357549ab15f SHA512 45dc27f8576ac65716b630fa0589b9e73efe78ae00dee5a5bad63becc00373ccc594480ed3d2a21ff06434c108c9120d47e16d8dfdd07198f99645bd31466ea1 WHIRLPOOL 3194a4b6ad0c57fd22c773a6188b8f87321fde11f80a08b86a2f2379da61d61947d541b3617b4526dcb868983002842d6e45565b3412984efb022f9994b1712b
|
||||
DIST libmspub-0.0.4.tar.xz 348468 SHA256 5a3f17fc62758b6ee1c80b364a18e14e58f69f645848902cf3cedfd3539ad5e7 SHA512 8ff014a48fe399425a36f926dcc2249a40aa65d9eb9749c06399f8a2ff790436389107ad421aed2be00e9a29438a763f445009f60a2cb427cf1217c110b9c7c3 WHIRLPOOL 243569b1175079457943dde7cdb9bb73159689907b2f5e4a3e7877f9b952322d851ed948fe2624e0cc655fe21b580f344c07fd7b7113106f6283f2943518ab67
|
||||
|
@ -0,0 +1,62 @@
|
||||
From 5321959587ee0597703328213eb46716a3c0bb09 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||
Date: Tue, 5 Feb 2013 22:18:01 -0500
|
||||
Subject: [PATCH] Use gawk, not awk
|
||||
|
||||
Some other awk implementations (e.g. nawk) fail with a syntax error:
|
||||
|
||||
awk: syntax error at source line 2
|
||||
context is
|
||||
>>> BEGIN <<< {
|
||||
---
|
||||
tools/yelp-build.in | 4 ++--
|
||||
tools/yelp-check.in | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tools/yelp-build.in b/tools/yelp-build.in
|
||||
index 1d70145..5058d6e 100755
|
||||
--- a/tools/yelp-build.in
|
||||
+++ b/tools/yelp-build.in
|
||||
@@ -35,7 +35,7 @@ mkdir_p () {
|
||||
}
|
||||
|
||||
urlencode () {
|
||||
- LANG=C awk '
|
||||
+ LANG=C gawk '
|
||||
BEGIN {
|
||||
for (i = 1; i <= 255; i++) chars[sprintf("%c", i)] = i;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ BEGIN {
|
||||
}
|
||||
|
||||
urldecode () {
|
||||
- LANG=C awk '
|
||||
+ LANG=C gawk '
|
||||
BEGIN {
|
||||
for(i = 0; i < 10; i++) hex[i] = i;
|
||||
hex["A"] = hex["a"] = 10;
|
||||
diff --git a/tools/yelp-check.in b/tools/yelp-check.in
|
||||
index a258290..4961d67 100755
|
||||
--- a/tools/yelp-check.in
|
||||
+++ b/tools/yelp-check.in
|
||||
@@ -30,7 +30,7 @@ urlencode () {
|
||||
else
|
||||
urlencode_slash='\/'
|
||||
fi
|
||||
- echo "$1" | LANG=C awk '
|
||||
+ echo "$1" | LANG=C gawk '
|
||||
BEGIN {
|
||||
for (i = 1; i <= 255; i++) chars[sprintf("%c", i)] = i;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ BEGIN {
|
||||
}
|
||||
|
||||
urldecode () {
|
||||
- echo "$1" | LANG=C awk '
|
||||
+ echo "$1" | LANG=C gawk '
|
||||
BEGIN {
|
||||
for(i = 0; i < 10; i++) hex[i] = i;
|
||||
hex["A"] = hex["a"] = 10;
|
||||
--
|
||||
1.8.1.2
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/yelp-tools/yelp-tools-3.6.1-r1.ebuild,v 1.1 2013/02/06 03:29:14 tetromino Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
|
||||
inherit eutils gnome2
|
||||
|
||||
DESCRIPTION="Collection of tools for building and converting documentation"
|
||||
HOMEPAGE="http://www.gnome.org/"
|
||||
|
||||
LICENSE="|| ( GPL-2+ freedist ) GPL-2+" # yelp.m4 is GPL2 || freely distributable
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
|
||||
IUSE=""
|
||||
|
||||
# Requires gawk, not virtual/awk; using nawk as awk results in syntax errors
|
||||
RDEPEND=">=dev-libs/libxml2-2.6.12
|
||||
>=dev-libs/libxslt-1.1.8
|
||||
dev-util/itstool
|
||||
gnome-extra/yelp-xsl
|
||||
sys-apps/gawk"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.6.1-gawk.patch"
|
||||
default
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/google-gdata-sharp/google-gdata-sharp-1.4.0.2.ebuild,v 1.4 2010/07/12 17:49:04 fauli Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit base mono
|
||||
|
||||
MY_PN="libgoogle-data-mono"
|
||||
|
||||
DESCRIPTION="C# bindings for the Google GData API"
|
||||
HOMEPAGE="http://code.google.com/p/google-gdata/"
|
||||
SRC_URI="http://google-gdata.googlecode.com/files/${MY_PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
# tests are completely broken (bug #310101), revisit in future bumps.
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND=">=dev-lang/mono-2.0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
# The Makefile has prefix=/usr/local by default :|
|
||||
MAKEOPTS="PREFIX=/usr ${MAKEOPTS}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/pkgconfig-typo-fix.patch
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST v8-3.14.5.3.tar.bz2 10352249 SHA256 f91d851abd284589272f2b338c74e10f07ce667736e8e73cbd301172cb7f75a1 SHA512 ea090f390d9ec86b33393135d9e14f2a059e0341f65aaa86e4816ee9b2f0d9dbdb1ef1d86b6eab5742c93f62279bb4ce806a86eeacc4e0e0b04b0627c462b685 WHIRLPOOL fbb44dfed7c77fac28eb4d87e9f151ab0e70d6e57807de0f6af3c71ec7006cee15cc2935f3c75375f8a793a92fcd6a9f453ba2ea4b7e0d7353f5f0382ca9d937
|
||||
DIST v8-3.15.11.11.tar.bz2 10396271 SHA256 cb4d9c57921d836cce84c21b0c17b6aaa6ec312f432ac48844f02a194dc7ad39 SHA512 fd0b0674708fca37cc3edbadba161b97b4758f1e3264afe287858d908342b6f830723a85434d58f17708fc242bbf26be188e0a375c4c49c74d8b62b0bdf656ba WHIRLPOOL e581f2ad020f1c034d34f45b75bed0a114cec641a955cc2c13ae547480a98ff091e773c555c18c4a4fbc53730b65c189a4c450d718260e111c4dd06f2534bdb3
|
||||
DIST v8-3.15.11.13.tar.bz2 10390413 SHA256 7a9a0333c2faf081a4a950c9a3a2c599534e6b50eae17fd4a75ee0825e8c26ca SHA512 64b28f7a594d7b159d82ed0091b35bf845a49ab6a5d5a1d8c78f10548cbac2fc3f0c918e71002a63f42607b9e6a981455983ab9bd43dd55a7c8e0de0cdb3f7a2 WHIRLPOOL e8b36b66ea29a6c4dc9f09aa0caa04de31523491aa61c4325a5b05fa0de5585b6862ee2ad99ba074a99226d09039a854a57661d43d2cd675f40c5ad5a109fdc1
|
||||
DIST v8-3.15.11.15.tar.bz2 10396424 SHA256 b5064a3c9d27479532f2ad63182285fde5fe4fea0327715a60f8455f490603e0 SHA512 d24d83794ec41651f61c6d4df668100e64d8006478c2fb942a7df477356effef65edb0e8b71444bf0c3ba5b5ee95825bae845d80910c5e2ef81dee87f5449330 WHIRLPOOL 24b1b0daeda44a9ca0065617d3d3fffad35d510d2d3cc827d1aed7916356ef5d8e3b3ecc7e14f6e429fb3954c8eeeccc842ccd19bb607ea57e678673ad2efd31
|
||||
DIST v8-3.16.11.1.tar.bz2 10421956 SHA256 d8d3fc8032ca841db581719996883fbc7118b8e183b6ec474c7c8e01cff728fa SHA512 0ba7c9b40ec5829decea6b1a057c81e48834992c839674b833fd53bb1da24d952727a3825d2154e5f0f5723ebd1504aa4dd468fbaad870ede2751364a1be4f6d WHIRLPOOL ba69f9190efbf2d1dc262dfdbfed95e26cc43ba58b1ff4a933fdba526a4d2326259d44542b1a3a6fb8b74dfdd997d85854084cd87c601f299259b16dfb312121
|
||||
DIST v8-3.16.4.1.tar.bz2 10435189 SHA256 74ab3bc11f6761e5108affcbe15bc673d2ecbe06aa38ea4b27d850321c0fdc2b SHA512 c0db5b0c101cfc2fb6d303c3fbfd021ee293e165fd3bf22b1d39ac510ac94d8f37dccdd67485880fd677c92cb0b0f51e591091abad8811dab2efb184445da6d9 WHIRLPOOL 2f2cf17b6b958c2ebf5aa9aa3f7865186374c6f23ae7123bfaaae07a92edfaf066b41a9db5465428e6ca1d21113d57ce8a2ab16fe38d0e7e5955b300747301dc
|
||||
|
@ -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/dev-lang/v8/v8-3.15.11.11.ebuild,v 1.1 2013/01/24 02:41:49 floppym Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.15.11.15.ebuild,v 1.1 2013/02/06 02:30:42 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_{6,7} )
|
@ -0,0 +1,143 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8y.ebuild,v 1.1 2013/02/06 00:02:46 vapier Exp $
|
||||
|
||||
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
|
||||
HOMEPAGE="http://www.openssl.org/"
|
||||
SRC_URI="mirror://openssl/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0.9.8"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="bindist gmp kerberos sse2 test zlib"
|
||||
|
||||
RDEPEND="gmp? ( dev-libs/gmp )
|
||||
zlib? ( sys-libs/zlib )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
!=dev-libs/openssl-0.9.8*:0"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/diffutils
|
||||
>=dev-lang/perl-5
|
||||
test? ( sys-devel/bc )"
|
||||
|
||||
pkg_setup() {
|
||||
# avoid collisions with openssl-1 (preserve lib)
|
||||
if ! has_version dev-libs/openssl:${SLOT} ; then
|
||||
ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1"
|
||||
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
|
||||
epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
|
||||
|
||||
# disable fips in the build
|
||||
# make sure the man pages are suffixed #302165
|
||||
# don't bother building man pages if they're disabled
|
||||
sed -i \
|
||||
-e '/DIRS/s: fips : :g' \
|
||||
-e '/^MANSUFFIX/s:=.*:=ssl:' \
|
||||
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
|
||||
-e $(has noman FEATURES \
|
||||
&& echo '/^install:/s:install_docs::' \
|
||||
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
|
||||
Makefile{,.org} \
|
||||
|| die
|
||||
# show the actual commands in the log
|
||||
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
|
||||
# update the enginedir path.
|
||||
# punt broken config we don't care about as it fails sanity check.
|
||||
sed -i \
|
||||
-e '/^"debug-ben-debug-64"/d' \
|
||||
-e "/foo.*engines/s|/lib/engines|/$(get_libdir)/engines|" \
|
||||
Configure || die
|
||||
|
||||
# allow openssl to be cross-compiled
|
||||
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed"
|
||||
chmod a+rx gentoo.config
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags -Wa,--noexecstack
|
||||
|
||||
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
|
||||
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken
|
||||
./config --test-sanity || die "I AM NOT SANE"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
unset APPS #197996
|
||||
unset SCRIPTS #312551
|
||||
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code
|
||||
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
|
||||
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
|
||||
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
|
||||
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
|
||||
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
|
||||
|
||||
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; }
|
||||
echoit() { echo "$@" ; "$@" ; }
|
||||
|
||||
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
|
||||
|
||||
local sslout=$(./gentoo.config)
|
||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||
local config="Configure"
|
||||
[[ -z ${sslout} ]] && config="config"
|
||||
echoit \
|
||||
./${config} \
|
||||
${sslout} \
|
||||
$(use sse2 || echo "no-sse2") \
|
||||
enable-camellia \
|
||||
$(use_ssl !bindist ec) \
|
||||
enable-idea \
|
||||
enable-mdc2 \
|
||||
$(use_ssl !bindist rc5) \
|
||||
enable-tlsext \
|
||||
$(use_ssl gmp gmp -lgmp) \
|
||||
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
|
||||
$(use_ssl zlib) \
|
||||
--prefix=/usr \
|
||||
--openssldir=/etc/ssl \
|
||||
shared threads \
|
||||
|| die "Configure failed"
|
||||
|
||||
# Clean out hardcoded flags that openssl uses
|
||||
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
|
||||
-e 's:^CFLAG=::' \
|
||||
-e 's:-fomit-frame-pointer ::g' \
|
||||
-e 's:-O[0-9] ::g' \
|
||||
-e 's:-march=[-a-z0-9]* ::g' \
|
||||
-e 's:-mcpu=[-a-z0-9]* ::g' \
|
||||
-e 's:-m[a-z0-9]* ::g' \
|
||||
)
|
||||
sed -i \
|
||||
-e "/^LIBDIR=/s|=.*|=$(get_libdir)|" \
|
||||
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
|
||||
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# depend is needed to use $confopts
|
||||
emake -j1 depend || die "depend failed"
|
||||
emake -j1 build_libs || die "make build_libs failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die "make test failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so lib{crypto,ssl}.so.0.9.8 || die
|
||||
}
|
@ -0,0 +1,220 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1d.ebuild,v 1.1 2013/02/06 00:02:46 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
REV="1.7"
|
||||
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
|
||||
HOMEPAGE="http://www.openssl.org/"
|
||||
SRC_URI="mirror://openssl/source/${P}.tar.gz
|
||||
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/~checkout~/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
|
||||
|
||||
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
|
||||
# our libssl.a depends on libz.a/etc... at runtime.
|
||||
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
|
||||
zlib? ( sys-libs/zlib[static-libs(+)] )
|
||||
kerberos? ( app-crypt/mit-krb5 )"
|
||||
# The blocks are temporary just to make sure people upgrade to a
|
||||
# version that lack runtime version checking. We'll drop them in
|
||||
# the future.
|
||||
RDEPEND="static-libs? ( ${LIB_DEPEND} )
|
||||
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
!<net-misc/openssh-5.9_p1-r4
|
||||
!<net-libs/neon-0.29.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/diffutils
|
||||
>=dev-lang/perl-5
|
||||
test? ( sys-devel/bc )"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.gz
|
||||
SSL_CNF_DIR="/etc/ssl"
|
||||
sed \
|
||||
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
|
||||
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
|
||||
> "${WORKDIR}"/c_rehash || die #416717
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Make sure we only ever touch Makefile.org and avoid patching a file
|
||||
# that gets blown away anyways by the Configure script in src_configure
|
||||
rm -f Makefile
|
||||
|
||||
if ! use vanilla ; then
|
||||
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
|
||||
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
|
||||
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1-ipv6.patch
|
||||
epatch_user #332661
|
||||
fi
|
||||
|
||||
# disable fips in the build
|
||||
# make sure the man pages are suffixed #302165
|
||||
# don't bother building man pages if they're disabled
|
||||
sed -i \
|
||||
-e '/DIRS/s: fips : :g' \
|
||||
-e '/^MANSUFFIX/s:=.*:=ssl:' \
|
||||
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
|
||||
-e $(has noman FEATURES \
|
||||
&& echo '/^install:/s:install_docs::' \
|
||||
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
|
||||
Makefile.org \
|
||||
|| die
|
||||
# show the actual commands in the log
|
||||
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
|
||||
|
||||
# allow openssl to be cross-compiled
|
||||
cp "${FILESDIR}"/gentoo.config-1.0.0 gentoo.config || die
|
||||
chmod a+rx gentoo.config
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags $(test-flags-CC -Wa,--noexecstack)
|
||||
|
||||
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
|
||||
./config --test-sanity || die "I AM NOT SANE"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
unset APPS #197996
|
||||
unset SCRIPTS #312551
|
||||
unset CROSS_COMPILE #311473
|
||||
|
||||
tc-export CC AR RANLIB RC
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code
|
||||
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
|
||||
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
|
||||
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
|
||||
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
|
||||
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
|
||||
|
||||
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
|
||||
echoit() { echo "$@" ; "$@" ; }
|
||||
|
||||
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
|
||||
|
||||
local sslout=$(./gentoo.config)
|
||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||
local config="Configure"
|
||||
[[ -z ${sslout} ]] && config="config"
|
||||
echoit \
|
||||
./${config} \
|
||||
${sslout} \
|
||||
$(use sse2 || echo "no-sse2") \
|
||||
enable-camellia \
|
||||
$(use_ssl !bindist ec) \
|
||||
enable-idea \
|
||||
enable-mdc2 \
|
||||
$(use_ssl !bindist rc5) \
|
||||
enable-tlsext \
|
||||
$(use_ssl gmp gmp -lgmp) \
|
||||
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
|
||||
$(use_ssl rfc3779) \
|
||||
$(use_ssl zlib) \
|
||||
--prefix=/usr \
|
||||
--openssldir=${SSL_CNF_DIR} \
|
||||
--libdir=$(get_libdir) \
|
||||
shared threads \
|
||||
|| die
|
||||
|
||||
# Clean out hardcoded flags that openssl uses
|
||||
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
|
||||
-e 's:^CFLAG=::' \
|
||||
-e 's:-fomit-frame-pointer ::g' \
|
||||
-e 's:-O[0-9] ::g' \
|
||||
-e 's:-march=[-a-z0-9]* ::g' \
|
||||
-e 's:-mcpu=[-a-z0-9]* ::g' \
|
||||
-e 's:-m[a-z0-9]* ::g' \
|
||||
)
|
||||
sed -i \
|
||||
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
|
||||
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# depend is needed to use $confopts; it also doesn't matter
|
||||
# that it's -j1 as the code itself serializes subdirs
|
||||
emake -j1 depend
|
||||
emake all
|
||||
# rehash is needed to prep the certs/ dir; do this
|
||||
# separately to avoid parallel build issues.
|
||||
emake rehash
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_PREFIX="${D}" install
|
||||
dobin "${WORKDIR}"/c_rehash #333117
|
||||
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
|
||||
dohtml -r doc/*
|
||||
use rfc3779 && dodoc engines/ccgost/README.gost
|
||||
|
||||
# This is crappy in that the static archives are still built even
|
||||
# when USE=static-libs. But this is due to a failing in the openssl
|
||||
# build system: the static archives are built as PIC all the time.
|
||||
# Only way around this would be to manually configure+compile openssl
|
||||
# twice; once with shared lib support enabled and once without.
|
||||
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
|
||||
|
||||
# create the certs directory
|
||||
dodir ${SSL_CNF_DIR}/certs
|
||||
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
|
||||
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
|
||||
|
||||
# Namespace openssl programs to prevent conflicts with other man pages
|
||||
cd "${D}"/usr/share/man
|
||||
local m d s
|
||||
for m in $(find . -type f | xargs grep -L '#include') ; do
|
||||
d=${m%/*} ; d=${d#./} ; m=${m##*/}
|
||||
[[ ${m} == openssl.1* ]] && continue
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
|
||||
mv ${d}/{,ssl-}${m}
|
||||
# fix up references to renamed man pages
|
||||
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
|
||||
ln -s ssl-${m} ${d}/openssl-${m}
|
||||
# locate any symlinks that point to this man page ... we assume
|
||||
# that any broken links are due to the above renaming
|
||||
for s in $(find -L ${d} -type l) ; do
|
||||
s=${s##*/}
|
||||
rm -f ${d}/${s}
|
||||
ln -s ssl-${m} ${d}/ssl-${s}
|
||||
ln -s ssl-${s} ${d}/openssl-${s}
|
||||
done
|
||||
done
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
|
||||
|
||||
dodir /etc/sandbox.d #254521
|
||||
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
|
||||
|
||||
diropts -m0700
|
||||
keepdir ${SSL_CNF_DIR}/private
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
|
||||
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
|
||||
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
|
||||
eend $?
|
||||
|
||||
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
|
||||
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST APLpy-0.9.7.tar.gz 55747 SHA256 53d30083a6e9854c4afbf13b050feee2b4ebd2f7b36d22e39e7d7c663e7986da SHA512 7d101c963ff5e05821818d98e8a1ac5e0b8c7cf4335a4be4140e4eae57d408e47701636c067e88af81b10b0460ef9c0e14f7458fbfd683ce4628c3f92c5c69f8 WHIRLPOOL 1fb6b2ef9bac13582faf69949856113747dfb15ed302958753fccc52244ed946c856e222803c885a840b17b694f5492bd768e3b7abac1e94c5a8e96363ef8de8
|
||||
DIST APLpy-0.9.8.tar.gz 204013 SHA256 c8841815adf8e4a747a207db47452fc071bd1b010a53a0f490029c42a9e48264 SHA512 0a71109f27d7744d5257b5454701b4adc0b129059d28c199fd30f5b94e77348485a1a449de357a00298ff1fcf85ab631ad285904513ba831703a00e3519b472b WHIRLPOOL 093cad9598f4e1382b0be15199e1e2c5ecfe30084ecd210b14c79a78a58b8df4556297c649eaba36975f57c369eb42a5ccb76216c8f7e9c3d542999e9f17ef18
|
||||
|
@ -1,31 +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/aplpy/aplpy-0.9.7.ebuild,v 1.2 2012/04/23 20:06:28 mgorny Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MYP=APLpy-${PV}
|
||||
|
||||
DESCRIPTION="Astronomical Plotting Library in Python"
|
||||
HOMEPAGE="http://aplpy.github.com/ http://pypi.python.org/pypi/APLpy"
|
||||
SRC_URI="mirror://github/${PN}/${PN}/${MYP}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/numpy"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/matplotlib
|
||||
dev-python/pyfits
|
||||
dev-python/pywcs"
|
||||
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
S=${WORKDIR}/${MYP}
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/aplpy/aplpy-0.9.8-r1.ebuild,v 1.1 2013/02/05 22:42:52 bicatali Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MYP=APLpy-${PV}
|
||||
|
||||
DESCRIPTION="Astronomical Plotting Library in Python"
|
||||
HOMEPAGE="http://aplpy.github.com/"
|
||||
SRC_URI="mirror://github/${PN}/${PN}/${MYP}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/numpy
|
||||
dev-python/matplotlib
|
||||
dev-python/pyfits
|
||||
dev-python/pywcs"
|
||||
DEPEND="
|
||||
dev-python/numpy
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="${BUILD_DIR}"/lib "${EPYTHON}" runtests.py || die
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/apsw/apsw-3.7.15.2_p1.ebuild,v 1.1 2013/02/06 01:24:43 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${PN}-${PV/_p/-r}
|
||||
|
||||
DESCRIPTION="APSW - Another Python SQLite Wrapper"
|
||||
HOMEPAGE="http://code.google.com/p/apsw/"
|
||||
SRC_URI="http://apsw.googlecode.com/files/${MY_P}.zip"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=dev-db/sqlite-${PV%_p*}[extensions]"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-3.6.20.1-fix_tests.patch )
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2* ]]; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
distutils-r1_python_compile --enable=load_extension
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# tests use overlapping database files
|
||||
local DISTUTILS_NO_PARALLEL_BUILD=1
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed"
|
||||
"${PYTHON}" tests.py -v || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
if use doc ; then
|
||||
dohtml -r doc/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/gevent/gevent-1.0_beta2-r1.ebuild,v 1.1 2013/02/05 23:40:02 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# py2.5 needs http://pypi.python.org/pypi/ssl
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="ssl"
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PV=${PV/_beta/b}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="Python networking library that uses greenlet to provide synchronous API"
|
||||
HOMEPAGE="http://code.google.com/p/gevent/ http://pypi.python.org/pypi/gevent/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="dev-libs/libev
|
||||
net-dns/c-ares
|
||||
dev-python/greenlet[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
# Tests take long and fail terribly a few times.
|
||||
# It also seems that they require network access.
|
||||
RESTRICT="test"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
python_prepare_all() {
|
||||
rm -rf {libev,c-ares}
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd greentest || die
|
||||
"${PYTHON}" testrunner.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
dodoc changelog.rst
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycurl/pycurl-7.19.0-r2.ebuild,v 1.1 2013/02/05 22:37:49 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# The selftests fail with pypy, and urlgrabber segfaults for me.
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="python binding for curl/libcurl"
|
||||
HOMEPAGE="http://pycurl.sourceforge.net/ http://pypi.python.org/pypi/pycurl"
|
||||
SRC_URI="http://pycurl.sourceforge.net/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl"
|
||||
|
||||
# Depend on a curl with curl_ssl_* USE flags.
|
||||
# libcurl must not be using an ssl backend we do not support.
|
||||
# If the libcurl ssl backend changes pycurl should be recompiled.
|
||||
# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
|
||||
# does not need to initialize gcrypt threading and we do not need to
|
||||
# explicitly link to libgcrypt.
|
||||
DEPEND=">=net-misc/curl-7.25.0-r1[ssl=]
|
||||
ssl? (
|
||||
net-misc/curl[curl_ssl_gnutls=,curl_ssl_nss=,curl_ssl_openssl=,-curl_ssl_axtls,-curl_ssl_cyassl,-curl_ssl_polarssl]
|
||||
curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 )
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
local PATCHES=(
|
||||
"${FILESDIR}/${P}-linking-v2.patch"
|
||||
)
|
||||
|
||||
sed -e "/data_files=/d" -i setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" tests/test_internals.py -q || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local HTML_DOCS=( doc/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycurl/pycurl-7.19.0-r3.ebuild,v 1.1 2013/02/06 03:01:47 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# The selftests fail with pypy, and urlgrabber segfaults for me.
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="python binding for curl/libcurl"
|
||||
HOMEPAGE="http://pycurl.sourceforge.net/ http://pypi.python.org/pypi/pycurl"
|
||||
SRC_URI="http://pycurl.sourceforge.net/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl"
|
||||
|
||||
# Depend on a curl with curl_ssl_* USE flags.
|
||||
# libcurl must not be using an ssl backend we do not support.
|
||||
# If the libcurl ssl backend changes pycurl should be recompiled.
|
||||
# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
|
||||
# does not need to initialize gcrypt threading and we do not need to
|
||||
# explicitly link to libgcrypt.
|
||||
DEPEND=">=net-misc/curl-7.25.0-r1[ssl=]
|
||||
ssl? (
|
||||
net-misc/curl[curl_ssl_gnutls=,curl_ssl_nss=,curl_ssl_openssl=,-curl_ssl_axtls,-curl_ssl_cyassl,-curl_ssl_polarssl]
|
||||
curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 )
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
local PATCHES=(
|
||||
"${FILESDIR}/${P}-linking-v2.patch"
|
||||
"${FILESDIR}/${P}-python3.patch"
|
||||
)
|
||||
|
||||
sed -e "/data_files=/d" -i setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" tests/test_internals.py -q || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local HTML_DOCS=( doc/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/pyzmq-2.2.0.1-r1.ebuild,v 1.1 2013/02/06 00:38:50 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="PyZMQ is a lightweight and super-fast messaging library built on top of the ZeroMQ library"
|
||||
HOMEPAGE="http://www.zeromq.org/bindings:python http://pypi.python.org/pypi/pyzmq"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples test"
|
||||
|
||||
PY2_USEDEP=$(python_gen_usedep python2*)
|
||||
|
||||
RDEPEND=">=net-libs/zeromq-2.1.9"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/nose[${PY2_USEDEP}]
|
||||
dev-python/gevent[${PY2_USEDEP}]
|
||||
www-servers/tornado[${PY2_USEDEP}] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.2.0.1-python3.patch"
|
||||
)
|
||||
|
||||
# Configure checks write to cwd.
|
||||
# https://github.com/zeromq/pyzmq/issues/318
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_test() {
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
einfo "Skipping tests for ${EPYTHON}, not supported."
|
||||
continue
|
||||
fi
|
||||
|
||||
nosetests -svw build/lib* || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST Sphinx-1.0.7.tar.gz 2285875 SHA256 80d62f3f7913c3322bf279ec26bfb12c1ce70404b00f4c87dc3ac190d150b0ab SHA512 15a03a45f6c401c532e5c806f6a8453d89018a44afb1ec1906c5ccbf7bff2234f4d2d30979344991bb697c70cbdcc63b774590951cdc52cb7fe55ff083a8664d WHIRLPOOL 9ea18475b9489f88de551ffdbc924af933d09f937becba27d2f9aaa1ac4634c905891a179f8b3552b3843c42e1b5e70ad9e6e3ddd291b5dfa5b31727755ee446
|
||||
DIST Sphinx-1.1.2.tar.gz 2624636 SHA256 cf66ee61eef61b7c478907282bddcdd5e04eebd69a00a2bb93881427938fe688 SHA512 30124729c45ca4b08e22cb93084620290308720d832998630825764453676b56d61f107153e812b2b89d90336a0df736bb4b11df8e30292d93523a7fc97b1279 WHIRLPOOL d144bb26904900de64c2d3c423370eec5d7b97974c4f469adb2e79e1db3d2de95e7d4706ec899b4b2307193fcaa6cb19d48f1cd1518c2d260c881ef2e39fa013
|
||||
DIST Sphinx-1.1.3.tar.gz 2632059 SHA256 34dc95b70a2b07a61b5d61034c34b05f82514aab54ad27adedb49cee911bb8e9 SHA512 b8312140d752bf557c8e41728513812aff3e5d0a89af88dea9da0df21bf09c8315f13305d7a724a5596d0192b167d613065ea564c6d92e4ffb23f1f246dbf052 WHIRLPOOL a40c4d0f5c32cf1d4b9b662b0fb2b2b0956e0455abbc88d6b5f95c54f93cc2baae25e8b9196dd0b64090d30a1a796c336ca4b6866243be4198ccdf67a7e18b48
|
||||
|
@ -0,0 +1,35 @@
|
||||
# HG changeset patch
|
||||
# User Georg Brandl <georg@python.org>
|
||||
# Date 1351590528 -3600
|
||||
# Node ID ffb145b7884fc926d6a68f4aaeede1d4964f727c
|
||||
# Parent 2c107bc997e8817c451ba24089766eefb6e60fc3
|
||||
Closes #998: fix manpage writer in expectation of docutils 0.10 API change
|
||||
|
||||
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py
|
||||
--- a/sphinx/writers/manpage.py
|
||||
+++ b/sphinx/writers/manpage.py
|
||||
@@ -72,6 +72,11 @@
|
||||
# since self.append_header() is never called, need to do this here
|
||||
self.body.append(MACRO_DEF)
|
||||
|
||||
+ # Overwrite admonition label translations with our own
|
||||
+ for label, translation in admonitionlabels.items():
|
||||
+ self.language.labels[label] = self.deunicode(translation)
|
||||
+
|
||||
+
|
||||
# overwritten -- added quotes around all .TH arguments
|
||||
def header(self):
|
||||
tmpl = (".TH \"%(title_upper)s\" \"%(manual_section)s\""
|
||||
@@ -193,12 +198,6 @@
|
||||
def depart_seealso(self, node):
|
||||
self.depart_admonition(node)
|
||||
|
||||
- # overwritten -- use our own label translations
|
||||
- def visit_admonition(self, node, name=None):
|
||||
- if name:
|
||||
- self.body.append('.IP %s\n' %
|
||||
- self.deunicode(admonitionlabels.get(name, name)))
|
||||
-
|
||||
def visit_productionlist(self, node):
|
||||
self.ensure_eol()
|
||||
names = []
|
@ -1,85 +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/sphinx/sphinx-1.0.7.ebuild,v 1.11 2012/03/10 17:50:10 jlec Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex"
|
||||
|
||||
DEPEND=">=dev-python/docutils-0.5
|
||||
>=dev-python/jinja-2.2
|
||||
>=dev-python/pygments-0.8
|
||||
dev-python/setuptools
|
||||
latex? ( dev-texlive/texlive-latexextra )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="CHANGES"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc > /dev/null
|
||||
einfo "Generation of documentation"
|
||||
PYTHONPATH=".." emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
# Generate the Grammar pickle to avoid sandbox violations.
|
||||
generation_of_grammar_pickle() {
|
||||
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')"
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
generation_of_grammar_pickle
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
|
||||
deletion_of_grammar_pickle() {
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1
|
||||
|
||||
# Delete empty parent directories.
|
||||
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode"
|
||||
while [[ "${dir}" != "${EROOT%/}" ]]; do
|
||||
rmdir "${dir}" 2> /dev/null || break
|
||||
dir="${dir%/*}"
|
||||
done
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
deletion_of_grammar_pickle
|
||||
}
|
@ -1,85 +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/sphinx/sphinx-1.1.2.ebuild,v 1.11 2012/05/28 14:15:36 armin76 Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex"
|
||||
|
||||
DEPEND=">=dev-python/docutils-0.7
|
||||
>=dev-python/jinja-2.3
|
||||
>=dev-python/pygments-1.2
|
||||
dev-python/setuptools
|
||||
latex? ( dev-texlive/texlive-latexextra )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="CHANGES"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc > /dev/null
|
||||
einfo "Generation of documentation"
|
||||
PYTHONPATH=".." emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
# Generate the Grammar pickle to avoid sandbox violations.
|
||||
generation_of_grammar_pickle() {
|
||||
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')"
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
generation_of_grammar_pickle
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
|
||||
deletion_of_grammar_pickle() {
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1
|
||||
|
||||
# Delete empty parent directories.
|
||||
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode"
|
||||
while [[ "${dir}" != "${EROOT%/}" ]]; do
|
||||
rmdir "${dir}" 2> /dev/null || break
|
||||
dir="${dir%/*}"
|
||||
done
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
deletion_of_grammar_pickle
|
||||
}
|
@ -1,86 +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/sphinx/sphinx-1.1.3-r1.ebuild,v 1.1 2012/03/31 19:55:28 floppym Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex"
|
||||
|
||||
DEPEND=">=dev-python/docutils-0.7
|
||||
>=dev-python/jinja-2.3
|
||||
>=dev-python/pygments-1.2
|
||||
dev-python/setuptools
|
||||
latex? ( dev-texlive/texlive-latexextra )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="CHANGES"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc > /dev/null
|
||||
einfo "Generation of documentation"
|
||||
PYTHONPATH=".." emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/sphinx-build"
|
||||
|
||||
if use doc; then
|
||||
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
# Generate the Grammar pickle to avoid sandbox violations.
|
||||
generation_of_grammar_pickle() {
|
||||
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')"
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
generation_of_grammar_pickle
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
|
||||
deletion_of_grammar_pickle() {
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1
|
||||
|
||||
# Delete empty parent directories.
|
||||
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode"
|
||||
while [[ "${dir}" != "${EROOT%/}" ]]; do
|
||||
rmdir "${dir}" 2> /dev/null || break
|
||||
dir="${dir%/*}"
|
||||
done
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
deletion_of_grammar_pickle
|
||||
}
|
@ -1,120 +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/sphinx/sphinx-1.1.3-r2.ebuild,v 1.3 2012/05/01 12:00:37 xarthisius Exp $
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
PYTHON_TESTS_RESTRICTED_ABIS="2.5 *-pypy-*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex"
|
||||
|
||||
DEPEND=">=dev-python/docutils-0.7
|
||||
>=dev-python/jinja-2.3
|
||||
>=dev-python/pygments-1.2
|
||||
dev-python/setuptools
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
app-text/dvipng
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="CHANGES"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
|
||||
prepare_tests() {
|
||||
mkdir -p build-${PYTHON_ABI}
|
||||
cp -r tests build-${PYTHON_ABI}/tests
|
||||
if [[ $(python_get_version -l --major) == "3" ]]; then
|
||||
2to3-${PYTHON_ABI} -nw --no-diffs build-${PYTHON_ABI}/tests
|
||||
fi
|
||||
}
|
||||
use test && python_execute_function prepare_tests
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
sed -e "/import sys/a sys.path.insert(0, '${S}/build-$(PYTHON -f --ABI)/lib')" -i sphinx-build.py
|
||||
pushd doc > /dev/null
|
||||
emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
pushd build-${PYTHON_ABI} > /dev/null
|
||||
echo PYTHONPATH=lib nosetests --verbosity=1
|
||||
PYTHONPATH=lib nosetests --verbosity=1
|
||||
local rv=$?
|
||||
popd > /dev/null
|
||||
return $rv
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/sphinx-build"
|
||||
|
||||
delete_grammar_pickle() {
|
||||
rm -f "${ED}$(python_get_sitedir)/sphinx/pycode/Grammar$(python_get_version -l).pickle"
|
||||
}
|
||||
python_execute_function -q delete_grammar_pickle
|
||||
|
||||
if use doc; then
|
||||
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
# Generate the Grammar pickle to avoid sandbox violations.
|
||||
generation_of_grammar_pickle() {
|
||||
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')"
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
generation_of_grammar_pickle
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
|
||||
deletion_of_grammar_pickle() {
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1
|
||||
|
||||
# Delete empty parent directories.
|
||||
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode"
|
||||
while [[ "${dir}" != "${EROOT%/}" ]]; do
|
||||
rmdir "${dir}" 2> /dev/null || break
|
||||
dir="${dir%/*}"
|
||||
done
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
deletion_of_grammar_pickle
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r6.ebuild,v 1.1 2013/02/06 01:04:42 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex test"
|
||||
|
||||
RDEPEND=">=dev-python/docutils-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-1.2[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
app-text/dvipng
|
||||
)"
|
||||
DEPEND="${DEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-python3.patch
|
||||
"${FILESDIR}"/${P}-docutils-manpage.patch
|
||||
)
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
# Generate the grammar. It will be caught by install somehow.
|
||||
# Note that the tests usually do it for us. However, I don't want
|
||||
# to trust USE=test really running all the tests, especially
|
||||
# with FEATURES=test-fail-continue.
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
"${PYTHON}" -m sphinx.pycode.__init__ \
|
||||
|| die "Grammar generation failed."
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc SPHINXBUILD="${PYTHON} -m sphinx.__init__" html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l tests "${BUILD_DIR}"/ || die
|
||||
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
2to3 -w --no-diffs "${BUILD_DIR}"/tests || die
|
||||
fi
|
||||
|
||||
nosetests -w "${BUILD_DIR}"/tests \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
replacing_python_eclass() {
|
||||
local pv
|
||||
for pv in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 1.1.3-r4 ${pv}; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if replacing_python_eclass; then
|
||||
# the old python.eclass ebuild will want to remove our pickles...
|
||||
backup_pickle() {
|
||||
# array to enable filename expansion
|
||||
local pickle_name=(
|
||||
"${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle
|
||||
)
|
||||
|
||||
local dest=${ROOT}${pickle_name[0]#${D}}.backup
|
||||
|
||||
cp -p -v "${pickle_name[0]}" "${dest}" \
|
||||
|| die "Unable to backup grammar pickle from overwriting"
|
||||
}
|
||||
|
||||
python_foreach_impl backup_pickle
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if replacing_python_eclass; then
|
||||
restore_pickle() {
|
||||
local backup_name=(
|
||||
"${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup
|
||||
)
|
||||
local dest=${backup_name[0]%.backup}
|
||||
|
||||
mv -v "${backup_name[0]}" "${dest}" \
|
||||
|| die "Unable to restore grammar pickle backup"
|
||||
}
|
||||
|
||||
python_foreach_impl restore_pickle
|
||||
fi
|
||||
}
|
@ -1,85 +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/sphinx/sphinx-1.1.3.ebuild,v 1.1 2012/03/29 08:56:46 djc Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex"
|
||||
|
||||
DEPEND=">=dev-python/docutils-0.7
|
||||
>=dev-python/jinja-2.3
|
||||
>=dev-python/pygments-1.2
|
||||
dev-python/setuptools
|
||||
latex? ( dev-texlive/texlive-latexextra )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="CHANGES"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc > /dev/null
|
||||
einfo "Generation of documentation"
|
||||
PYTHONPATH=".." emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
# Generate the Grammar pickle to avoid sandbox violations.
|
||||
generation_of_grammar_pickle() {
|
||||
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')"
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
generation_of_grammar_pickle
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
|
||||
deletion_of_grammar_pickle() {
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1
|
||||
|
||||
# Delete empty parent directories.
|
||||
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode"
|
||||
while [[ "${dir}" != "${EROOT%/}" ]]; do
|
||||
rmdir "${dir}" 2> /dev/null || break
|
||||
dir="${dir%/*}"
|
||||
done
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
deletion_of_grammar_pickle
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST chicken-3.3.0.tar.gz 4228441 SHA256 5ce2519bac9956de5700a5777b2bbc2cd89202ef2d2252a40a0d1e8c9854bec6
|
||||
DIST chicken-4.6.0.tar.gz 3019126 SHA256 c55d1dadf9941b3efbc7be9181d5c7cbc304a20c614625fbf710c0acaa1cd245
|
||||
DIST chicken-4.7.3.tar.gz 3316152 SHA256 00c82bc2208d74463a69356d2a30a3771f87048ea87fb9c024d464b3c9d4e230
|
||||
DIST chicken-4.8.0.tar.gz 3970818 SHA256 5b2e8c6b4b13b502d8c684b394d80ed490d2884c03789353d895ab85d19979ab SHA512 5ea40ca240d9d6ab9a250947288fda3cc1202b6cb689207dc603c1ca86f537f407b1c4a8020533ccfc7b48fa01d3bf8f7229f883a2a95edb3f39863d43aa6c63 WHIRLPOOL 52010977034e0661af4c692d828303ebaad8d6d2517908b2474e64c0f8840c0a8e8342577853d66c1921033926fdefa21db66857786e659d92260390e98b879f
|
||||
DIST chicken-4.8.0.1.tar.gz 3965638 SHA256 a60efa9d2a621ecb9e03b41ebdd03ae27ecb32c1292671fd969506c9baf88d0c SHA512 736f9503e29e5d36bdf17439bdf38ea8a6c0cfdcfa3ada5d49ff72d82599a9da1bccbd6f2787fcf3b85fb650161032744030f98d2f74e02b73bf7b5bfd12d3d6 WHIRLPOOL 6a0e5891f30793dc828052b03e6ed720689d5b608e4ab34216ce9f95b073ad13812a85f86facd948beb1030b22caf561ac203ac988b7c4d7764b61d3774a8fe5
|
||||
|
@ -1,12 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>wxwidgets@gentoo.org</email>
|
||||
</maintainer>
|
||||
<herd>wxwidgets</herd>
|
||||
<longdescription>
|
||||
Anthemion DialogBlocks is a sizer-based resource editor that quickly gets
|
||||
you creating professional-looking dialogs, wizards and frames for deployment
|
||||
Anthemion DialogBlocks is a sizer-based resource editor that quickly gets
|
||||
you creating professional-looking dialogs, wizards and frames for deployment
|
||||
on Windows, Linux, Mac or any other supported wxWidgets platform.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
@ -1,12 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>wxwidgets@gentoo.org</email>
|
||||
</maintainer>
|
||||
<herd>wxwidgets</herd>
|
||||
<longdescription>
|
||||
Anthemion HelpBlocks is an HTML authoring tool specifically designed for
|
||||
writing cross-platform application help, generating Microsoft HTML Help
|
||||
Anthemion HelpBlocks is an HTML authoring tool specifically designed for
|
||||
writing cross-platform application help, generating Microsoft HTML Help
|
||||
and wxWidgets HTML Help files.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
@ -1 +1 @@
|
||||
DIST connman-gnome-0.5.tar.gz 194674 RMD160 4bffd09ac3f9cb93aec43d4a185f3292e981a8ed SHA1 8a1248ae22339c5795d056eecc4f03adb0978467 SHA256 4d5fe481b444fc3e64fd9caa149dbcd76de166a25733f18fd93da01d2abf5d1c
|
||||
DIST connman-gnome-0.5.tar.gz 194674 SHA256 4d5fe481b444fc3e64fd9caa149dbcd76de166a25733f18fd93da01d2abf5d1c
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST yelp-xsl-3.2.1.tar.xz 556512 SHA256 76159759ccff4003c13a9fd14de82f334978165f88dd3716efa98382285a06a6 SHA512 08f94c8e5668aaa1f2e9c01d699aeccf644631d238574b0de295d0813368e05434abeef126e8dca3a01029beb5f09947a56c3b6402e31f90ca2ad4441910bc66 WHIRLPOOL 9982d8b389b711ce49a57918336cca6bfe983293dd868cdb37b5005d71782de7c21fd9eeef80d710d5ad437409eb5be61401003354cd47b4fa0f0b8a6d56361a
|
||||
DIST yelp-xsl-3.4.2.tar.xz 585248 SHA256 421b622da421f310add15c9d0cf23f3d66c3e0847292f45341e2f6b2db326325 SHA512 31a662ba0ba20871f89a26c254c3f13030541f592901913f76d1c0010148ad84a809cbd0c7335fa1ba534c5d6da64bca49ea1b79775c927107c21425a7fb77b9 WHIRLPOOL 388515bfbd9dc6910c57452e92b28d747278ad0e47a4356aef6821e4fab0c46fc510a98b03ad5a7c885cf53ebf76f5006b188a306cd000b6c286158d81f8db3e
|
||||
DIST yelp-xsl-3.6.1.tar.xz 589500 SHA256 9cac9770d6ace354f3e56a2e60933bb0cd894a4263a3bf1db6e8900f86f8cdd6 SHA512 8c097361d1f238b02d750e702f4eb72d56630e71b168634f4cabbfa9724719fced9b582c6c2e693b94f9045ec00313478b04e8d7a1f3fc87fd7ad140f7e5847a WHIRLPOOL 15e90968cf321ae8ca5f9acc6e1407f6b15a3d17b779ffdbe0380c4b5905870b3e3917f46e4a87ac19c07eccd105f1513e3f0041932af25d68abc9abc6c53475
|
||||
|
@ -0,0 +1,59 @@
|
||||
From 7dfe59cd3ed75a245804ea3081460988c4affdee Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||
Date: Tue, 5 Feb 2013 22:41:14 -0500
|
||||
Subject: [PATCH] Use gawk, not awk
|
||||
|
||||
Despite all attempts to be compatible with other awks, using some (e.g.
|
||||
nawk) still results in syntax errors:
|
||||
|
||||
nawk: syntax error at source line 3 source file
|
||||
doc/yelp-xsl/xsldoc-scan.awk
|
||||
context is
|
||||
# -*- indent-tabs-mode: nil -*- >>>
|
||||
<<<
|
||||
2 extra }'s
|
||||
---
|
||||
doc/yelp-xsl/mal2cache | 2 +-
|
||||
doc/yelp-xsl/xsldoc-scan | 2 +-
|
||||
doc/yelp-xsl/xsldoc-scan.awk | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/doc/yelp-xsl/mal2cache b/doc/yelp-xsl/mal2cache
|
||||
index a7a23ee..6beaa64 100755
|
||||
--- a/doc/yelp-xsl/mal2cache
|
||||
+++ b/doc/yelp-xsl/mal2cache
|
||||
@@ -2,7 +2,7 @@
|
||||
# -*- indent-tabs-mode: nil -*-
|
||||
export LANG=C
|
||||
urlencode() {
|
||||
- echo "$1" | awk --posix '
|
||||
+ echo "$1" | gawk --posix '
|
||||
BEGIN {
|
||||
for (i = 1; i <= 256; i++) {
|
||||
bytes[sprintf("%c", i)] = i;
|
||||
diff --git a/doc/yelp-xsl/xsldoc-scan b/doc/yelp-xsl/xsldoc-scan
|
||||
index 63e713b..892bb3a 100755
|
||||
--- a/doc/yelp-xsl/xsldoc-scan
|
||||
+++ b/doc/yelp-xsl/xsldoc-scan
|
||||
@@ -9,7 +9,7 @@ while [ "$#" != "0" ]; do
|
||||
else
|
||||
fullfile=$(cd $(dirname "$1") && pwd)/$(basename "$1")
|
||||
outfile=$(basename "$1" .xsl)
|
||||
- awk -f $(dirname "$0")/xsldoc-scan.awk "$1" | \
|
||||
+ gawk -f $(dirname "$0")/xsldoc-scan.awk "$1" | \
|
||||
xsltproc -o "$outdir/$outfile".page \
|
||||
--stringparam xsldoc.id "$outfile" \
|
||||
--stringparam xsldoc.xslt_file "$fullfile" \
|
||||
diff --git a/doc/yelp-xsl/xsldoc-scan.awk b/doc/yelp-xsl/xsldoc-scan.awk
|
||||
index a8859df..83e976a 100644
|
||||
--- a/doc/yelp-xsl/xsldoc-scan.awk
|
||||
+++ b/doc/yelp-xsl/xsldoc-scan.awk
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/awk
|
||||
+#!/usr/bin/env gawk
|
||||
# -*- indent-tabs-mode: nil -*-
|
||||
# xsldoc.awk - Convert inline documentation to XML suitable for xsldoc.xsl
|
||||
# Copyright (C) 2006 Shaun McCance <shaunm@gnome.org>
|
||||
--
|
||||
1.8.1.2
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/yelp-xsl/yelp-xsl-3.2.1.ebuild,v 1.5 2012/12/16 10:12:24 tetromino Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit gnome.org
|
||||
|
||||
DESCRIPTION="XSL stylesheets for yelp"
|
||||
HOMEPAGE="http://www.gnome.org/"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+ MIT FDL-1.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-libs/libxml2-2.6.12
|
||||
>=dev-libs/libxslt-1.1.8"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/gawk
|
||||
sys-devel/gettext
|
||||
>=dev-util/intltool-0.40
|
||||
dev-util/itstool
|
||||
virtual/pkgconfig"
|
@ -1,109 +0,0 @@
|
||||
This code contains changes by
|
||||
Gunnar Ritter, Freiburg i. Br., Germany, 2002. All rights reserved.
|
||||
|
||||
Conditions 1, 2, and 4 and the no-warranty notice below apply
|
||||
to these changes.
|
||||
|
||||
Copyright (c) 1980, 1993
|
||||
The Regents of the University of California. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. All advertising materials mentioning features or use of this software
|
||||
must display the following acknowledgement:
|
||||
This product includes software developed by the University of
|
||||
California, Berkeley and its contributors.
|
||||
4. Neither the name of the University nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
|
||||
Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
Redistributions of source code and documentation must retain the
|
||||
above copyright notice, this list of conditions and the following
|
||||
disclaimer.
|
||||
Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
All advertising materials mentioning features or use of this software
|
||||
must display the following acknowledgement:
|
||||
This product includes software developed or owned by Caldera
|
||||
International, Inc.
|
||||
Neither the name of Caldera International, Inc. nor the names of
|
||||
other contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
|
||||
INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
The mmap-based memory allocation code is derived from mm-1.1.3:
|
||||
|
||||
Copyright (c) 1999-2000 Ralf S. Engelschall. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
3. All advertising materials mentioning features or use of this
|
||||
software must display the following acknowledgment:
|
||||
"This product includes software developed by
|
||||
Ralf S. Engelschall <rse@engelschall.com>."
|
||||
|
||||
4. Redistributions of any form whatsoever must retain the following
|
||||
acknowledgment:
|
||||
"This product includes software developed by
|
||||
Ralf S. Engelschall <rse@engelschall.com>."
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY RALF S. ENGELSCHALL ``AS IS'' AND ANY
|
||||
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RALF S. ENGELSCHALL OR
|
||||
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
@ -0,0 +1,26 @@
|
||||
Copyright (C) 1996-2002 by Jorn Lind-Nielsen
|
||||
All rights reserved
|
||||
|
||||
Permission is hereby granted, without written agreement and without
|
||||
license or royalty fees, to use, reproduce, prepare derivative
|
||||
works, distribute, and display this software and its documentation
|
||||
for any purpose, provided that (1) the above copyright notice and
|
||||
the following two paragraphs appear in all copies of the source code
|
||||
and (2) redistributions, including without limitation binaries,
|
||||
reproduce these notices in the supporting documentation. Substantial
|
||||
modifications to this software may be copyrighted by their authors
|
||||
and need not follow the licensing terms described here, provided
|
||||
that the new terms are clearly indicated in all files where they apply.
|
||||
|
||||
IN NO EVENT SHALL JORN LIND-NIELSEN, OR DISTRIBUTORS OF THIS
|
||||
SOFTWARE BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL,
|
||||
INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS
|
||||
SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS OR ANY OF THE
|
||||
ABOVE PARTIES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
JORN LIND-NIELSEN SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
||||
ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO
|
||||
OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
|
||||
MODIFICATIONS.
|
@ -0,0 +1,8 @@
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the original work is
|
||||
properly attributed to Greg Page and Caldera, Inc.
|
||||
Neither the name of Greg Page nor Caldera, Inc. may be used to
|
||||
endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
This software is provided by Greg Page and Caldera, Inc. "AS IS"
|
||||
and without any express or implied warranties.
|
@ -0,0 +1,51 @@
|
||||
Minpack Copyright Notice (1999) University of Chicago. All rights reserved
|
||||
|
||||
Redistribution and use in source and binary forms, with or
|
||||
without modification, are permitted provided that the
|
||||
following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials
|
||||
provided with the distribution.
|
||||
|
||||
3. The end-user documentation included with the
|
||||
redistribution, if any, must include the following
|
||||
acknowledgment:
|
||||
|
||||
"This product includes software developed by the
|
||||
University of Chicago, as Operator of Argonne National
|
||||
Laboratory.
|
||||
|
||||
Alternately, this acknowledgment may appear in the software
|
||||
itself, if and wherever such third-party acknowledgments
|
||||
normally appear.
|
||||
|
||||
4. WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS"
|
||||
WITHOUT WARRANTY OF ANY KIND. THE COPYRIGHT HOLDER, THE
|
||||
UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND
|
||||
THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE
|
||||
OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY
|
||||
OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR
|
||||
USEFULNESS OF THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF
|
||||
THE SOFTWARE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS, (4)
|
||||
DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION
|
||||
UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL
|
||||
BE CORRECTED.
|
||||
|
||||
5. LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT
|
||||
HOLDER, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF
|
||||
ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT,
|
||||
INCIDENTAL, CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF
|
||||
ANY KIND OR NATURE, INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER, WHETHER
|
||||
SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT
|
||||
(INCLUDING NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE,
|
||||
EVEN IF ANY OF SAID PARTIES HAS BEEN WARNED OF THE
|
||||
POSSIBILITY OF SUCH LOSS OR DAMAGES.
|
@ -0,0 +1,18 @@
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that neither the name of Stephen
|
||||
M. Rumble nor the names of any contributors are used to endorse or
|
||||
promote products derived from this software without specific prior
|
||||
written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGE.
|
@ -0,0 +1,39 @@
|
||||
TMalign.f:
|
||||
|
||||
This program is to identify the best alignment of two protein
|
||||
structures that gives the highest TM-score. Input structures must
|
||||
be in the PDB format. By default, TM-score is normalized by the
|
||||
second protein. Users can obtain a brief instruction by simply
|
||||
running the program without arguments. For comments/suggestions,
|
||||
please contact email: zhng@umich.edu.
|
||||
|
||||
Reference to cite:
|
||||
Yang Zhang, Jeffrey Skolnick, Nucl. Acid Res. 2005 33: 2303-9
|
||||
|
||||
Permission to use, copy, modify, and distribute this program for
|
||||
any purpose, with or without fee, is hereby granted, provided that
|
||||
the notices on the head, the reference information, and this
|
||||
copyright notice appear in all copies or substantial portions of
|
||||
the Software. It is provided "as is" without express or implied
|
||||
warranty.
|
||||
|
||||
---
|
||||
|
||||
TMscore.f:
|
||||
|
||||
This program is to compare two protein structures and identify the
|
||||
best superposition that has the highest TM-score. Input structures
|
||||
must be in the PDB format. By default, TM-score is normalized by
|
||||
the second protein. Users can obtain a brief instruction by simply
|
||||
running the program without arguments. For comments/suggestions,
|
||||
please contact email: zhng@umich.edu.
|
||||
|
||||
Reference:
|
||||
Yang Zhang, Jeffrey Skolnick, Proteins, 2004 57:702-10.
|
||||
|
||||
Permission to use, copy, modify, and distribute this program for
|
||||
any purpose, with or without fee, is hereby granted, provided that
|
||||
the notices on the head, the reference information, and this
|
||||
copyright notice appear in all copies or substantial portions of
|
||||
the Software. It is provided "as is" without express or implied
|
||||
warranty.
|
@ -1 +1 @@
|
||||
DIST opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz 11563203 RMD160 f9abd1af544923ec38c2ba0cd797d73adc1eceab SHA1 57dd13ab58c0005d3ee2932539e4987ab0242bc7 SHA256 ab77beea3b051abf606cd8cd3badf6cb24141ef145c60f508fcfef1e3852bb9d
|
||||
DIST opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz 11563203 SHA256 ab77beea3b051abf606cd8cd3badf6cb24141ef145c60f508fcfef1e3852bb9d
|
||||
|
@ -1 +1 @@
|
||||
DIST sazanami-20040629.tar.bz2 8622710 RMD160 97a8fb0edb7045928d886c81ac09fc94048a749a SHA1 a6e558f49de8ab9884d92327905ce45698ca5429 SHA256 3467ce2f70a9a3fbbf8d4d97355a2f334a6351baa6722251403637a8cbebf6b7
|
||||
DIST sazanami-20040629.tar.bz2 8622710 SHA256 3467ce2f70a9a3fbbf8d4d97355a2f334a6351baa6722251403637a8cbebf6b7
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST blender-2.49b.tar.gz 22918377 SHA256 23554db4aa10b00e0e760a8bf9c4a9f749670d815c8bc874a04746adc4752488 SHA512 0e83388849898a61a308584be05307697ef8d0e67c5f161eea0d11f75a29d14c26547aa7b20f356065e70db823082e11a39dc06e59d3d73ef8c87738d2f88460 WHIRLPOOL d8b54b39eb47841c7e93157726f55c855d0930b89e4cbe8f093dcd7110978ed267ca96517281861bd6d62c1108a8068c5a863452d3208b1f4ad3d374f1e74f7d
|
||||
DIST blender-2.64a-patches-1.tar.xz 14388 SHA256 047f3231f4b21dd813e7b052be0b28b9391345422fb335d4cca578820977bc8b SHA512 f0dc73769a74ca9098380640ae28508b204f4c198a97219bb2ac8445eff6120dbda64a9d2d80e5dcab48df34d7de844489702510b5a8d32677b5cb8e70c7b4d9 WHIRLPOOL e8bfaf0ca1a51991e3109a51068bea2619da7d3a93bba623d78f67f98681c43ad7dc3a1452fd13929081b3a118ae6a35ff07994251c857e3b6d35aabcd4b732e
|
||||
DIST blender-2.64a.tar.gz 31388178 SHA256 a5b1c3f1919b041a253d8d6d7c4f54e2b7f8a9531795675ab468ae742350cc7b SHA512 77d171a36f1c87a82613ed7601df9cef444069a2a6600e05260607e9a2009c292068a2b4753f3cbd53d820cdc8d9ed88ddd1685f20647b943f75bfbeb905b9b5 WHIRLPOOL 7f4878a606379dad9d121b0ad08f17e8691baf944147dc72dd33defd33a2303116a7090f7b8f8a186760fdd65ba9c0a0e523ed7d231fd23c070c31b52693178f
|
||||
|
@ -1,188 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.49b-r2.ebuild,v 1.19 2013/01/17 16:52:21 ssuominen Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit scons-utils multilib eutils python
|
||||
|
||||
IUSE="blender-game ffmpeg nls ogg openmp verse openal"
|
||||
|
||||
DESCRIPTION="3D Creation/Animation/Publishing System"
|
||||
HOMEPAGE="http://www.blender.org/"
|
||||
SRC_URI="http://download.blender.org/source/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="|| ( GPL-2 BL BSD )"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="ffmpeg? ( virtual/ffmpeg[encode,theora] )
|
||||
>=media-libs/openjpeg-1.5.0
|
||||
media-libs/tiff:0
|
||||
nls? ( >=media-libs/freetype-2.0
|
||||
virtual/libintl
|
||||
>=media-libs/ftgl-2.1 )
|
||||
openal? ( >=media-libs/openal-1.6.372
|
||||
>=media-libs/freealut-1.1.0-r1 )
|
||||
media-libs/openexr
|
||||
media-libs/libpng:0
|
||||
blender-game? ( >=media-libs/libsdl-1.2[joystick] )
|
||||
>=media-libs/libsdl-1.2
|
||||
ogg? ( media-libs/libogg )
|
||||
virtual/jpeg
|
||||
virtual/opengl"
|
||||
DEPEND=">=dev-util/scons-2
|
||||
sys-devel/gcc[openmp?]
|
||||
x11-base/xorg-server
|
||||
${RDEPEND}"
|
||||
|
||||
blend_with() {
|
||||
local UWORD="$2"
|
||||
if [ -z "${UWORD}" ]; then
|
||||
UWORD="$1"
|
||||
fi
|
||||
if use $1; then
|
||||
echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
|
||||
>> "${S}"/user-config.py
|
||||
else
|
||||
echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
|
||||
>> "${S}"/user-config.py
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/blender-2.48a-CVE-2008-4863.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.37-dirs.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.44-scriptsdir.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.49a-sys-openjpeg.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.49b-CVE-2009-3850-v4.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.49b-linux-3.patch # Bug #381099
|
||||
epatch "${FILESDIR}"/${PN}-2.49b-subversion-1.7.patch
|
||||
epatch "${FILESDIR}"/${P}-libav-0.7.patch
|
||||
epatch "${FILESDIR}"/${P}-gcc46.patch
|
||||
rm -f "${S}/release/scripts/bpymodules/"*.pyc
|
||||
|
||||
# Fix building with >=media-libs/openjpeg-1.5.0 (bug #409283)
|
||||
sed -i \
|
||||
-e '/parameters.*tile_size_on/s:false:FALSE:' \
|
||||
source/blender/imbuf/intern/jp2.c || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
# add ffmpeg info to the scons build info
|
||||
cat <<- EOF >> "${S}"/user-config.py
|
||||
BF_FFMPEG="/usr"
|
||||
BF_FFMPEG_LIB="avdevice avformat avcodec swscale avutil"
|
||||
EOF
|
||||
|
||||
# set python version to current version in use
|
||||
cat <<- EOF >> "${S}"/user-config.py
|
||||
BF_PYTHON_VERSION="$(python_get_version)"
|
||||
BF_PYTHON_INC="$(python_get_includedir)"
|
||||
BF_PYTHON_BINARY="$(PYTHON -a)"
|
||||
BF_PYTHON_LIB="python$(python_get_version)"
|
||||
EOF
|
||||
|
||||
# add system openjpeg into scons build.
|
||||
cat <<- EOF >> "${S}"/user-config.py
|
||||
BF_OPENJPEG = "/usr"
|
||||
BF_OPENJPEG_INC = "/usr/include"
|
||||
BF_OPENJPEG_LIB = "openjpeg"
|
||||
EOF
|
||||
|
||||
#set CFLAGS used in /etc/make.conf correctly
|
||||
|
||||
echo "CFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \
|
||||
| sed -e "s:,]: ]:" >> "${S}"/user-config.py
|
||||
|
||||
echo "CXXFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`]" \
|
||||
| sed -e "s:,]: ]:" >> "${S}"/user-config.py
|
||||
|
||||
# check for blender-game USE flag.
|
||||
# blender-game will merge with blenderplayer.
|
||||
|
||||
for arg in \
|
||||
'openal'\
|
||||
'ffmpeg' \
|
||||
'blender-game player' \
|
||||
'blender-game gameengine' \
|
||||
'nls international' \
|
||||
'ogg' \
|
||||
'openmp' \
|
||||
'verse' ; do
|
||||
blend_with ${arg}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons || die \
|
||||
'!!! Please add "${S}/scons.config" when filing bugs reports \
|
||||
to bugs.gentoo.org'
|
||||
|
||||
cd "${WORKDIR}"/install/linux2/plugins
|
||||
chmod 755 bmake
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin/
|
||||
doexe "${WORKDIR}"/install/linux2/blender
|
||||
use blender-game && doexe "${WORKDIR}"/install/linux2/blenderplayer
|
||||
|
||||
dodir /usr/share/${PN}
|
||||
|
||||
exeinto /usr/$(get_libdir)/${PN}/textures
|
||||
doexe "${WORKDIR}"/install/linux2/plugins/texture/*.so
|
||||
exeinto /usr/$(get_libdir)/${PN}/sequences
|
||||
doexe "${WORKDIR}"/install/linux2/plugins/sequence/*.so
|
||||
insinto /usr/include/${PN}
|
||||
doins "${WORKDIR}"/install/linux2/plugins/include/*.h
|
||||
|
||||
if use nls ; then
|
||||
mv "${WORKDIR}"/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
|
||||
"${D}"/usr/share/${PN}
|
||||
mv "${WORKDIR}"/install/linux2/.blender/locale \
|
||||
"${D}"/usr/share/locale
|
||||
fi
|
||||
|
||||
mv "${WORKDIR}"/install/linux2/.blender/scripts "${D}"/usr/share/${PN}
|
||||
|
||||
insinto /usr/share/pixmaps
|
||||
doins "${WORKDIR}"/install/linux2/icons/scalable/blender.svg
|
||||
domenu "${FILESDIR}"/${PN}.desktop || die
|
||||
domenu "${FILESDIR}"/${P}-insecure.desktop || die
|
||||
|
||||
dodoc INSTALL README
|
||||
dodoc "${WORKDIR}"/install/linux2/BlenderQuickStart.pdf
|
||||
|
||||
}
|
||||
|
||||
pkg_preinst(){
|
||||
if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
|
||||
then
|
||||
rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
elog "blender uses python integration. As such, may have some"
|
||||
elog "inherit risks with running unknown python scripting."
|
||||
elog " "
|
||||
elog "CVE-2008-1103-1.patch has been removed as it interferes"
|
||||
elog "with autosave undo features. Up stream blender coders"
|
||||
elog "have not addressed the CVE issue as the status is still"
|
||||
elog "a CANDIDATE and not CONFIRMED."
|
||||
elog " "
|
||||
elog "It is recommended to change your blender temp directory"
|
||||
elog "from /tmp to ~tmp or another tmp file under your home"
|
||||
elog "directory. This can be done by starting blender, then"
|
||||
elog "dragging the main menu down do display all paths."
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
diff -ruN blender.orig/source/blender/src/language.c blender/source/blender/src/language.c
|
||||
--- blender.orig/source/blender/src/language.c 2005-06-01 10:59:36.000000000 +0200
|
||||
+++ blender/source/blender/src/language.c 2005-06-01 11:07:15.000000000 +0200
|
||||
@@ -358,9 +358,9 @@
|
||||
strcpy(name, bundlePath);
|
||||
strcat(name, "/Contents/Resources/.Blanguages");
|
||||
#else
|
||||
- /* Check the CWD. Takes care of the case where users
|
||||
- * unpack blender tarball; cd blender-dir; ./blender */
|
||||
- strcpy(name, ".blender/.Blanguages");
|
||||
+ /* Check the standar location. Takes care of the case
|
||||
+ * in which the distribution installs blender */
|
||||
+ strcpy(name, "/usr/share/blender/.Blanguages");
|
||||
#endif
|
||||
lines= BLI_read_file_as_lines(name);
|
||||
|
@ -1,91 +0,0 @@
|
||||
--- blender-2.44/source/blender/python/api2_2x/EXPP_interface.c.orig 2006-05-01 14:24:56.000000000 +0200
|
||||
+++ blender-2.44/source/blender/python/api2_2x/EXPP_interface.c 2007-06-21 22:25:39.000000000 +0200
|
||||
@@ -52,85 +52,13 @@
|
||||
*/
|
||||
char *bpy_gethome(int append_scriptsdir)
|
||||
{
|
||||
- static char homedir[FILE_MAXDIR];
|
||||
- static char scriptsdir[FILE_MAXDIR];
|
||||
- char tmpdir[FILE_MAXDIR];
|
||||
- char bprogdir[FILE_MAXDIR];
|
||||
- char *s;
|
||||
- int i;
|
||||
+ static char homedir[FILE_MAXDIR]="/usr/share/blender";
|
||||
+ static char scriptsdir[FILE_MAXDIR]="/usr/share/blender/scripts";
|
||||
|
||||
if (append_scriptsdir) {
|
||||
- if (scriptsdir[0] != '\0')
|
||||
return scriptsdir;
|
||||
}
|
||||
- else if (homedir[0] != '\0')
|
||||
- return homedir;
|
||||
-
|
||||
- /* BLI_gethome() can return NULL if env vars are not set */
|
||||
- s = BLI_gethome();
|
||||
-
|
||||
- if( !s ) /* bail if no $HOME */
|
||||
- {
|
||||
- printf("$HOME is NOT set\n");
|
||||
- return NULL;
|
||||
- }
|
||||
-
|
||||
- if( strstr( s, ".blender" ) )
|
||||
- PyOS_snprintf( homedir, FILE_MAXDIR, s );
|
||||
- else
|
||||
- BLI_make_file_string( "/", homedir, s, ".blender" );
|
||||
-
|
||||
- /* if userhome/.blender/ exists, return it */
|
||||
- if( BLI_exists( homedir ) ) {
|
||||
- if (append_scriptsdir) {
|
||||
- BLI_make_file_string("/", scriptsdir, homedir, "scripts");
|
||||
- if (BLI_exists (scriptsdir)) return scriptsdir;
|
||||
- }
|
||||
- else return homedir;
|
||||
- }
|
||||
- else homedir[0] = '\0';
|
||||
-
|
||||
- /* if either:
|
||||
- * no homedir was found or
|
||||
- * append_scriptsdir = 1 but there's no scripts/ inside homedir,
|
||||
- * use argv[0] (bprogname) to get .blender/ in
|
||||
- * Blender's installation dir */
|
||||
- s = BLI_last_slash( bprogname );
|
||||
-
|
||||
- i = s - bprogname + 1;
|
||||
-
|
||||
- PyOS_snprintf( bprogdir, i, "%s", bprogname );
|
||||
-
|
||||
- /* using tmpdir to preserve homedir (if) found above:
|
||||
- * the ideal is to have a home dir with scripts dir inside
|
||||
- * it, but if that isn't available, it's possible to
|
||||
- * have a 'broken' home dir somewhere and a scripts dir in the
|
||||
- * cvs sources */
|
||||
- BLI_make_file_string( "/", tmpdir, bprogdir, ".blender" );
|
||||
-
|
||||
- if (BLI_exists(tmpdir)) {
|
||||
- if (append_scriptsdir) {
|
||||
- BLI_make_file_string("/", scriptsdir, tmpdir, "scripts");
|
||||
- if (BLI_exists(scriptsdir)) {
|
||||
- PyOS_snprintf(homedir, FILE_MAXDIR, "%s", tmpdir);
|
||||
- return scriptsdir;
|
||||
- }
|
||||
- else {
|
||||
- homedir[0] = '\0';
|
||||
- scriptsdir[0] = '\0';
|
||||
- }
|
||||
- }
|
||||
- else return homedir;
|
||||
- }
|
||||
-
|
||||
- /* last try for scripts dir: blender in cvs dir, scripts/ inside release/: */
|
||||
- if (append_scriptsdir) {
|
||||
- BLI_make_file_string("/", scriptsdir, bprogdir, "release/scripts");
|
||||
- if (BLI_exists(scriptsdir)) return scriptsdir;
|
||||
- else scriptsdir[0] = '\0';
|
||||
- }
|
||||
-
|
||||
- return NULL;
|
||||
+ return homedir;
|
||||
}
|
||||
|
||||
/* PyDrivers */
|
@ -1,15 +0,0 @@
|
||||
diff -up blender-2.48a/source/blender/python/BPY_interface.c.cve blender-2.48a/source/blender/python/BPY_interface.c
|
||||
--- blender-2.48a/source/blender/python/BPY_interface.c.cve 2008-11-03 17:31:19.000000000 +0100
|
||||
+++ blender-2.48a/source/blender/python/BPY_interface.c 2008-11-03 17:35:01.000000000 +0100
|
||||
@@ -225,6 +225,11 @@ void BPY_start_python( int argc, char **
|
||||
Py_Initialize( );
|
||||
|
||||
PySys_SetArgv( argc_copy, argv_copy );
|
||||
+
|
||||
+ /* Sanitize sys.path to prevent relative imports loading modules in
|
||||
+ the current working directory */
|
||||
+ PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
|
||||
+
|
||||
/* Initialize thread support (also acquires lock) */
|
||||
PyEval_InitThreads();
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- blender/tools/Blender.py.orig 2009-06-16 14:57:16.000000000 +0200
|
||||
+++ blender/tools/Blender.py 2009-07-02 15:53:49.000000000 +0200
|
||||
@@ -170,6 +170,8 @@
|
||||
if lenv['WITH_BF_OPENAL']:
|
||||
if not lenv['WITH_BF_STATICOPENAL']:
|
||||
syslibs += Split(lenv['BF_OPENAL_LIB'])
|
||||
+ if lenv['WITH_BF_OPENJPEG']:
|
||||
+ syslibs += Split(lenv['BF_OPENJPEG_LIB'])
|
||||
if lenv['WITH_BF_OPENMP'] and lenv['CC'] != 'icc':
|
||||
if lenv['CC'] == 'cl.exe':
|
||||
syslibs += ['vcomp']
|
@ -1,139 +0,0 @@
|
||||
From f3a8d00d03cc8bdf1739936998a784c9e4e64bb9 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Pipping <sebastian@pipping.org>
|
||||
Date: Sun, 24 Apr 2011 00:00:36 +0200
|
||||
Subject: [PATCH] Disable execution of embedded Python code unless run with
|
||||
-666 (CVE-2009-3850)
|
||||
|
||||
---
|
||||
source/blender/blenkernel/intern/blender.c | 11 ++++++++++-
|
||||
source/blender/python/api2_2x/sceneRender.c | 3 ++-
|
||||
source/blender/src/buttons_script.c | 4 +++-
|
||||
source/creator/creator.c | 18 ++++++++++++++----
|
||||
4 files changed, 29 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c
|
||||
index bf208c8..029b7cf 100644
|
||||
--- a/source/blender/blenkernel/intern/blender.c
|
||||
+++ b/source/blender/blenkernel/intern/blender.c
|
||||
@@ -388,7 +388,16 @@ static void setup_app_data(BlendFileData *bfd, char *filename)
|
||||
if (G.f & G_DEBUG) bfd->globalf |= G_DEBUG;
|
||||
else bfd->globalf &= ~G_DEBUG;
|
||||
|
||||
- if ((U.flag & USER_DONT_DOSCRIPTLINKS)) bfd->globalf &= ~G_DOSCRIPTLINKS;
|
||||
+ if (G.f & G_DOSCRIPTLINKS) {
|
||||
+ /* Blender running in -666 mode */
|
||||
+ /* NOTE: In background mode U.flag has not been initialized from ~/.B.blend */
|
||||
+ if (! G.background && (U.flag & USER_DONT_DOSCRIPTLINKS))
|
||||
+ /* Prefer disabled "Auto Run Python Scripts" over -666 */
|
||||
+ bfd->globalf &= ~G_DOSCRIPTLINKS;
|
||||
+ } else {
|
||||
+ /* Blender NOT running in -666 mode, deny pulling G_DOSCRIPTLINKS in */
|
||||
+ bfd->globalf &= ~G_DOSCRIPTLINKS;
|
||||
+ }
|
||||
|
||||
G.f= bfd->globalf;
|
||||
|
||||
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c
|
||||
index 1bf2b75..e34a361 100644
|
||||
--- a/source/blender/python/api2_2x/sceneRender.c
|
||||
+++ b/source/blender/python/api2_2x/sceneRender.c
|
||||
@@ -498,7 +498,8 @@ static PyObject *RenderData_Render( BPy_RenderData * self )
|
||||
|
||||
RE_BlenderFrame(re, G.scene, G.scene->r.cfra);
|
||||
|
||||
- BPY_do_all_scripts(SCRIPT_POSTRENDER, 0);
|
||||
+ if (G.f & G_DOSCRIPTLINKS)
|
||||
+ BPY_do_all_scripts(SCRIPT_POSTRENDER, 0);
|
||||
|
||||
set_scene_bg( oldsce );
|
||||
}
|
||||
diff --git a/source/blender/src/buttons_script.c b/source/blender/src/buttons_script.c
|
||||
index 647fc66..6166133 100644
|
||||
--- a/source/blender/src/buttons_script.c
|
||||
+++ b/source/blender/src/buttons_script.c
|
||||
@@ -107,6 +107,8 @@
|
||||
#include "blendef.h"
|
||||
#include "butspace.h"
|
||||
|
||||
+extern int button_enable_script_links_enabled;
|
||||
+
|
||||
/* ************************ function prototypes ********************** */
|
||||
void draw_scriptlink(uiBlock *, ScriptLink *, int , int , int ) ;
|
||||
|
||||
@@ -323,7 +325,7 @@ static void script_panel_scriptlink(void)
|
||||
block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win);
|
||||
if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return;
|
||||
|
||||
- uiDefButBitI(block, TOG, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT,
|
||||
+ uiDefButBitI(block, button_enable_script_links_enabled ? TOG : BUT, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT,
|
||||
"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0,
|
||||
"Enable execution of all assigned Script links and Space Handelers");
|
||||
/* for proper alignment: */
|
||||
diff --git a/source/creator/creator.c b/source/creator/creator.c
|
||||
index a562fc3..ccea569 100644
|
||||
--- a/source/creator/creator.c
|
||||
+++ b/source/creator/creator.c
|
||||
@@ -108,6 +108,8 @@
|
||||
#include "binreloc.h"
|
||||
#endif
|
||||
|
||||
+int button_enable_script_links_enabled = 0;
|
||||
+
|
||||
// from buildinfo.c
|
||||
#ifdef BUILD_DATE
|
||||
extern char * build_date;
|
||||
@@ -232,7 +234,8 @@ static void print_help(void)
|
||||
printf (" -nojoystick\tDisable joystick support\n");
|
||||
printf (" -noglsl\tDisable GLSL shading\n");
|
||||
printf (" -h\t\tPrint this help text\n");
|
||||
- printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n");
|
||||
+ printf (" -666\t\tEnables automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n");
|
||||
+ printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes) (default)\n");
|
||||
printf (" -P <filename>\tRun the given Python script (filename or Blender Text)\n");
|
||||
#ifdef WIN32
|
||||
printf (" -R\t\tRegister .blend extension\n");
|
||||
@@ -366,7 +369,7 @@ int main(int argc, char **argv)
|
||||
|
||||
/* first test for background */
|
||||
|
||||
- G.f |= G_DOSCRIPTLINKS; /* script links enabled by default */
|
||||
+ G.f &= ~G_DOSCRIPTLINKS; /* script links disabled by default */
|
||||
|
||||
for(a=1; a<argc; a++) {
|
||||
|
||||
@@ -388,6 +391,11 @@ int main(int argc, char **argv)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
+ if (!strcmp(argv[a], "-666")){
|
||||
+ G.f |= G_DOSCRIPTLINKS;
|
||||
+ button_enable_script_links_enabled = 1;
|
||||
+ }
|
||||
+
|
||||
/* Handle -* switches */
|
||||
else if(argv[a][0] == '-') {
|
||||
switch(argv[a][1]) {
|
||||
@@ -405,8 +413,9 @@ int main(int argc, char **argv)
|
||||
a= argc;
|
||||
break;
|
||||
|
||||
- case 'y':
|
||||
+ case 'y': /* NOTE: -y works the exact opposite way in version 2.57! */
|
||||
G.f &= ~G_DOSCRIPTLINKS;
|
||||
+ button_enable_script_links_enabled = 0;
|
||||
break;
|
||||
|
||||
case 'Y':
|
||||
@@ -680,7 +689,8 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
RE_BlenderAnim(re, G.scene, frame, frame, G.scene->frame_step);
|
||||
#ifndef DISABLE_PYTHON
|
||||
- BPY_do_all_scripts(SCRIPT_POSTRENDER, 0);
|
||||
+ if (G.f & G_DOSCRIPTLINKS)
|
||||
+ BPY_do_all_scripts(SCRIPT_POSTRENDER, 0);
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
--
|
||||
1.7.5.rc1
|
||||
|
@ -1,32 +0,0 @@
|
||||
http://bugs.gentoo.org/452694
|
||||
|
||||
--- extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h
|
||||
+++ extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h
|
||||
@@ -18,6 +18,7 @@
|
||||
#define _BT_SOFT_BODY_INTERNALS_H
|
||||
|
||||
#include "btSoftBody.h"
|
||||
+#include <string.h>
|
||||
|
||||
#include "LinearMath/btQuickprof.h"
|
||||
#include "BulletCollision/BroadphaseCollision/btBroadphaseInterface.h"
|
||||
@@ -171,8 +172,7 @@
|
||||
template <typename T>
|
||||
static inline void ZeroInitialize(T& value)
|
||||
{
|
||||
- static const T zerodummy;
|
||||
- value=zerodummy;
|
||||
+ memset(&value,0,sizeof(T));
|
||||
}
|
||||
//
|
||||
template <typename T>
|
||||
--- intern/memutil/MEM_Allocator.h
|
||||
+++ intern/memutil/MEM_Allocator.h
|
||||
@@ -24,6 +24,7 @@
|
||||
#ifndef __MEM_Allocator_h_included__
|
||||
#define __MEM_Allocator_h_included__ 1
|
||||
|
||||
+#include <cstddef>
|
||||
#include "guardedalloc/MEM_guardedalloc.h"
|
||||
#include "guardedalloc/BLO_sys_types.h"
|
||||
|
@ -1,9 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Blender 2.4x (reduced security)
|
||||
Comment=3D modeling, animation, rendering and post-production.
|
||||
Exec=blender -666
|
||||
Icon=blender
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=Graphics;Application;
|
@ -1,425 +0,0 @@
|
||||
diff -urN blender-2.49b.orig//source/blender/blenkernel/intern/writeffmpeg.c blender-2.49b/source/blender/blenkernel/intern/writeffmpeg.c
|
||||
--- blender-2.49b.orig//source/blender/blenkernel/intern/writeffmpeg.c 2009-09-01 17:21:17.000000000 +0200
|
||||
+++ blender-2.49b/source/blender/blenkernel/intern/writeffmpeg.c 2011-11-13 05:36:23.000000000 +0100
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavutil/rational.h>
|
||||
+#include <libavutil/mathematics.h>
|
||||
#include <libswscale/swscale.h>
|
||||
#include <libavcodec/opt.h>
|
||||
|
||||
@@ -149,10 +150,9 @@
|
||||
#else
|
||||
pkt.pts = c->coded_frame->pts;
|
||||
#endif
|
||||
- fprintf(stderr, "Audio Frame PTS: %lld\n", pkt.pts);
|
||||
|
||||
pkt.stream_index = audio_stream->index;
|
||||
- pkt.flags |= PKT_FLAG_KEY;
|
||||
+ pkt.flags |= AV_PKT_FLAG_KEY;
|
||||
if (av_interleaved_write_frame(outfile, &pkt) != 0) {
|
||||
error("Error writing audio packet");
|
||||
return -1;
|
||||
@@ -271,7 +271,7 @@
|
||||
fprintf(stderr, "Video Frame PTS: not set\n");
|
||||
}
|
||||
if (c->coded_frame->key_frame)
|
||||
- packet.flags |= PKT_FLAG_KEY;
|
||||
+ packet.flags |= AV_PKT_FLAG_KEY;
|
||||
packet.stream_index = video_stream->index;
|
||||
packet.data = video_buffer;
|
||||
packet.size = outsize;
|
||||
@@ -373,7 +373,7 @@
|
||||
switch(prop->type) {
|
||||
case IDP_STRING:
|
||||
fprintf(stderr, "%s.\n", IDP_String(prop));
|
||||
- rv = av_set_string(c, prop->name, IDP_String(prop));
|
||||
+ av_set_string3(c, prop->name, IDP_String(prop), 0, &rv);
|
||||
break;
|
||||
case IDP_FLOAT:
|
||||
fprintf(stderr, "%g.\n", IDP_Float(prop));
|
||||
@@ -384,12 +384,12 @@
|
||||
|
||||
if (param) {
|
||||
if (IDP_Int(prop)) {
|
||||
- rv = av_set_string(c, name, param);
|
||||
+ av_set_string3(c, name, param, 0, &rv);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
- rv = av_set_int(c, prop->name, IDP_Int(prop));
|
||||
+ av_set_int(c, prop->name, IDP_Int(prop));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -438,7 +438,7 @@
|
||||
|
||||
c = get_codec_from_stream(st);
|
||||
c->codec_id = codec_id;
|
||||
- c->codec_type = CODEC_TYPE_VIDEO;
|
||||
+ c->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
|
||||
|
||||
/* Get some values from the current render settings */
|
||||
@@ -496,7 +496,7 @@
|
||||
c->pix_fmt = PIX_FMT_YUV422P;
|
||||
}
|
||||
|
||||
- if (codec_id == CODEC_ID_XVID) {
|
||||
+ if (codec_id == CODEC_ID_MPEG4) {
|
||||
/* arghhhh ... */
|
||||
c->pix_fmt = PIX_FMT_YUV420P;
|
||||
}
|
||||
@@ -557,7 +557,7 @@
|
||||
|
||||
c = get_codec_from_stream(st);
|
||||
c->codec_id = codec_id;
|
||||
- c->codec_type = CODEC_TYPE_AUDIO;
|
||||
+ c->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
|
||||
c->sample_rate = G.scene->audio.mixrate;
|
||||
c->bit_rate = ffmpeg_audio_bitrate*1000;
|
||||
@@ -652,14 +652,14 @@
|
||||
error("No valid formats found");
|
||||
return;
|
||||
}
|
||||
- fmt = guess_format(NULL, exts[0], NULL);
|
||||
+ fmt = av_guess_format(NULL, exts[0], NULL);
|
||||
if (!fmt) {
|
||||
G.afbreek = 1; /* Abort render */
|
||||
error("No valid formats found");
|
||||
return;
|
||||
}
|
||||
|
||||
- of = av_alloc_format_context();
|
||||
+ of = avformat_alloc_context();
|
||||
if (!of) {
|
||||
G.afbreek = 1;
|
||||
error("Error opening output file");
|
||||
@@ -699,7 +699,7 @@
|
||||
fmt->video_codec = CODEC_ID_H264;
|
||||
break;
|
||||
case FFMPEG_XVID:
|
||||
- fmt->video_codec = CODEC_ID_XVID;
|
||||
+ fmt->video_codec = CODEC_ID_MPEG4;
|
||||
break;
|
||||
case FFMPEG_FLV:
|
||||
fmt->video_codec = CODEC_ID_FLV1;
|
||||
diff -urN blender-2.49b.orig//source/blender/imbuf/intern/anim.c blender-2.49b/source/blender/imbuf/intern/anim.c
|
||||
--- blender-2.49b.orig//source/blender/imbuf/intern/anim.c 2009-09-01 17:21:50.000000000 +0200
|
||||
+++ blender-2.49b/source/blender/imbuf/intern/anim.c 2011-11-13 06:21:37.000000000 +0100
|
||||
@@ -550,7 +550,7 @@
|
||||
videoStream=-1;
|
||||
for(i=0; i<pFormatCtx->nb_streams; i++)
|
||||
if(get_codec_from_stream(pFormatCtx->streams[i])->codec_type
|
||||
- == CODEC_TYPE_VIDEO) {
|
||||
+ == AVMEDIA_TYPE_VIDEO) {
|
||||
videoStream=i;
|
||||
break;
|
||||
}
|
||||
@@ -683,10 +683,10 @@
|
||||
&& position - (anim->curposition + 1) < anim->preseek) {
|
||||
while(av_read_frame(anim->pFormatCtx, &packet)>=0) {
|
||||
if (packet.stream_index == anim->videoStream) {
|
||||
- avcodec_decode_video(
|
||||
+ avcodec_decode_video2(
|
||||
anim->pCodecCtx,
|
||||
anim->pFrame, &frameFinished,
|
||||
- packet.data, packet.size);
|
||||
+ &packet);
|
||||
|
||||
if (frameFinished) {
|
||||
anim->curposition++;
|
||||
@@ -741,9 +741,9 @@
|
||||
|
||||
while(av_read_frame(anim->pFormatCtx, &packet)>=0) {
|
||||
if(packet.stream_index == anim->videoStream) {
|
||||
- avcodec_decode_video(anim->pCodecCtx,
|
||||
+ avcodec_decode_video2(anim->pCodecCtx,
|
||||
anim->pFrame, &frameFinished,
|
||||
- packet.data, packet.size);
|
||||
+ &packet);
|
||||
|
||||
if (frameFinished && !pos_found) {
|
||||
if (packet.dts >= pts_to_search) {
|
||||
diff -urN blender-2.49b.orig//source/blender/imbuf/intern/util.c blender-2.49b/source/blender/imbuf/intern/util.c
|
||||
--- blender-2.49b.orig//source/blender/imbuf/intern/util.c 2009-09-01 17:21:50.000000000 +0200
|
||||
+++ blender-2.49b/source/blender/imbuf/intern/util.c 2011-11-13 04:37:27.000000000 +0100
|
||||
@@ -324,7 +324,7 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
- if(UTIL_DEBUG) dump_format(pFormatCtx, 0, filename, 0);
|
||||
+ if(UTIL_DEBUG) av_dump_format(pFormatCtx, 0, filename, 0);
|
||||
|
||||
|
||||
/* Find the first video stream */
|
||||
@@ -332,7 +332,7 @@
|
||||
for(i=0; i<pFormatCtx->nb_streams; i++)
|
||||
if(pFormatCtx->streams[i] &&
|
||||
get_codec_from_stream(pFormatCtx->streams[i]) &&
|
||||
- (get_codec_from_stream(pFormatCtx->streams[i])->codec_type==CODEC_TYPE_VIDEO))
|
||||
+ (get_codec_from_stream(pFormatCtx->streams[i])->codec_type==AVMEDIA_TYPE_VIDEO))
|
||||
{
|
||||
videoStream=i;
|
||||
break;
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/BGL.o and blender-2.49b/source/blender/python/api2_2x/BGL.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/bpy_internal_import.o and blender-2.49b/source/blender/python/api2_2x/bpy_internal_import.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/constant.o and blender-2.49b/source/blender/python/api2_2x/constant.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/euler.o and blender-2.49b/source/blender/python/api2_2x/euler.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/Geometry.o and blender-2.49b/source/blender/python/api2_2x/Geometry.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/Mathutils.o and blender-2.49b/source/blender/python/api2_2x/Mathutils.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/matrix.o and blender-2.49b/source/blender/python/api2_2x/matrix.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/quat.o and blender-2.49b/source/blender/python/api2_2x/quat.o differ
|
||||
Binary files blender-2.49b.orig//source/blender/python/api2_2x/vector.o and blender-2.49b/source/blender/python/api2_2x/vector.o differ
|
||||
diff -urN blender-2.49b.orig//source/blender/src/buttons_scene.c blender-2.49b/source/blender/src/buttons_scene.c
|
||||
--- blender-2.49b.orig//source/blender/src/buttons_scene.c 2009-09-01 17:21:46.000000000 +0200
|
||||
+++ blender-2.49b/source/blender/src/buttons_scene.c 2011-11-13 05:38:04.000000000 +0100
|
||||
@@ -2169,7 +2169,7 @@
|
||||
"Quicktime", FFMPEG_MOV,
|
||||
"DV", FFMPEG_DV,
|
||||
"H264", FFMPEG_H264,
|
||||
- "XVid", FFMPEG_XVID,
|
||||
+ "XVID", FFMPEG_XVID,
|
||||
#if 0
|
||||
/* ifdef WITH_OGG, disabled, since broken within ffmpeg bundled with blender */
|
||||
"OGG", FFMPEG_OGG,
|
||||
@@ -2212,7 +2212,7 @@
|
||||
"HuffYUV", CODEC_ID_HUFFYUV,
|
||||
"DV", CODEC_ID_DVVIDEO,
|
||||
"H264", CODEC_ID_H264,
|
||||
- "XVid", CODEC_ID_XVID,
|
||||
+ "XVid", CODEC_ID_MPEG4,
|
||||
#ifdef WITH_OGG
|
||||
"Theora", CODEC_ID_THEORA,
|
||||
#endif
|
||||
@@ -2723,12 +2723,12 @@
|
||||
switch (o->type) {
|
||||
case FF_OPT_TYPE_INT:
|
||||
case FF_OPT_TYPE_INT64:
|
||||
- val.i = o->default_val;
|
||||
+ val.i = o->default_val.dbl;
|
||||
idp_type = IDP_INT;
|
||||
break;
|
||||
case FF_OPT_TYPE_DOUBLE:
|
||||
case FF_OPT_TYPE_FLOAT:
|
||||
- val.f = o->default_val;
|
||||
+ val.f = o->default_val.dbl;
|
||||
idp_type = IDP_FLOAT;
|
||||
break;
|
||||
case FF_OPT_TYPE_STRING:
|
||||
diff -urN blender-2.49b.orig//source/blender/src/hddaudio.c blender-2.49b/source/blender/src/hddaudio.c
|
||||
--- blender-2.49b.orig//source/blender/src/hddaudio.c 2009-09-01 17:21:45.000000000 +0200
|
||||
+++ blender-2.49b/source/blender/src/hddaudio.c 2011-11-13 06:27:23.000000000 +0100
|
||||
@@ -126,7 +126,7 @@
|
||||
audioStream=-1;
|
||||
for(i=0; i<pFormatCtx->nb_streams; i++)
|
||||
if(get_codec_from_stream(pFormatCtx->streams[i])
|
||||
- ->codec_type == CODEC_TYPE_AUDIO)
|
||||
+ ->codec_type == AVMEDIA_TYPE_AUDIO)
|
||||
{
|
||||
audioStream=i;
|
||||
break;
|
||||
@@ -382,39 +382,30 @@
|
||||
continue;
|
||||
}
|
||||
|
||||
- audio_pkt_data = packet.data;
|
||||
- audio_pkt_size = packet.size;
|
||||
-
|
||||
- while (audio_pkt_size > 0) {
|
||||
- data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE;
|
||||
- len = avcodec_decode_audio2(
|
||||
- hdaudio->pCodecCtx,
|
||||
- hdaudio->decode_cache
|
||||
- + decode_pos
|
||||
- * hdaudio->decode_sample_format_size,
|
||||
- &data_size,
|
||||
- audio_pkt_data,
|
||||
- audio_pkt_size);
|
||||
- if (len <= 0) {
|
||||
- audio_pkt_size = 0;
|
||||
- break;
|
||||
- }
|
||||
-
|
||||
- audio_pkt_size -= len;
|
||||
- audio_pkt_data += len;
|
||||
-
|
||||
- if (data_size <= 0) {
|
||||
- continue;
|
||||
- }
|
||||
-
|
||||
- decode_pos += data_size
|
||||
- / hdaudio->decode_sample_format_size;
|
||||
- if (decode_pos + data_size
|
||||
- / hdaudio->decode_sample_format_size
|
||||
- > hdaudio->decode_cache_size) {
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
+ data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE;
|
||||
+ len = avcodec_decode_audio3(
|
||||
+ hdaudio->pCodecCtx,
|
||||
+ hdaudio->decode_cache
|
||||
+ + decode_pos
|
||||
+ * hdaudio->decode_sample_format_size,
|
||||
+ &data_size,
|
||||
+ &packet);
|
||||
+ if (len <= 0) {
|
||||
+ audio_pkt_size = 0;
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ if (data_size <= 0) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ decode_pos += data_size
|
||||
+ / hdaudio->decode_sample_format_size;
|
||||
+ if (decode_pos + data_size
|
||||
+ / hdaudio->decode_sample_format_size
|
||||
+ > hdaudio->decode_cache_size) {
|
||||
+ break;
|
||||
+ }
|
||||
av_free_packet(&packet);
|
||||
|
||||
if (decode_pos + data_size / hdaudio->decode_sample_format_size
|
||||
@@ -534,36 +525,29 @@
|
||||
decode_cache_zero_init = 1;
|
||||
}
|
||||
|
||||
- while (audio_pkt_size > 0) {
|
||||
- data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE;
|
||||
- len = avcodec_decode_audio2(
|
||||
- hdaudio->pCodecCtx,
|
||||
- hdaudio->decode_cache
|
||||
- + decode_pos
|
||||
- * hdaudio->decode_sample_format_size,
|
||||
- &data_size,
|
||||
- audio_pkt_data,
|
||||
- audio_pkt_size);
|
||||
- if (len <= 0) {
|
||||
- audio_pkt_size = 0;
|
||||
- break;
|
||||
- }
|
||||
-
|
||||
- audio_pkt_size -= len;
|
||||
- audio_pkt_data += len;
|
||||
-
|
||||
- if (data_size <= 0) {
|
||||
- continue;
|
||||
- }
|
||||
-
|
||||
- decode_pos += data_size
|
||||
- / hdaudio->decode_sample_format_size;
|
||||
- if (decode_pos + data_size
|
||||
- / hdaudio->decode_sample_format_size
|
||||
- > hdaudio->decode_cache_size) {
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
+ data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE;
|
||||
+ len = avcodec_decode_audio3(
|
||||
+ hdaudio->pCodecCtx,
|
||||
+ hdaudio->decode_cache
|
||||
+ + decode_pos
|
||||
+ * hdaudio->decode_sample_format_size,
|
||||
+ &data_size,
|
||||
+ &packet);
|
||||
+ if (len <= 0) {
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ if (data_size <= 0) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ decode_pos += data_size
|
||||
+ / hdaudio->decode_sample_format_size;
|
||||
+ if (decode_pos + data_size
|
||||
+ / hdaudio->decode_sample_format_size
|
||||
+ > hdaudio->decode_cache_size) {
|
||||
+ break;
|
||||
+ }
|
||||
|
||||
av_free_packet(&packet);
|
||||
|
||||
diff -urN blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.cpp blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.cpp
|
||||
--- blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.cpp 2009-09-01 17:20:53.000000000 +0200
|
||||
+++ blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.cpp 2011-11-13 07:56:56.000000000 +0100
|
||||
@@ -26,7 +26,6 @@
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
#include <stdint.h>
|
||||
|
||||
-
|
||||
#include "MEM_guardedalloc.h"
|
||||
#include "PIL_time.h"
|
||||
|
||||
@@ -177,7 +176,7 @@
|
||||
{
|
||||
if(formatCtx->streams[i] &&
|
||||
get_codec_from_stream(formatCtx->streams[i]) &&
|
||||
- (get_codec_from_stream(formatCtx->streams[i])->codec_type==CODEC_TYPE_VIDEO))
|
||||
+ (get_codec_from_stream(formatCtx->streams[i])->codec_type==AVMEDIA_TYPE_VIDEO))
|
||||
{
|
||||
videoStream=i;
|
||||
break;
|
||||
@@ -358,9 +357,9 @@
|
||||
BLI_remlink(&video->m_packetCacheBase, cachePacket);
|
||||
// use m_frame because when caching, it is not used in main thread
|
||||
// we can't use currentFrame directly because we need to convert to RGB first
|
||||
- avcodec_decode_video(video->m_codecCtx,
|
||||
+ avcodec_decode_video2(video->m_codecCtx,
|
||||
video->m_frame, &frameFinished,
|
||||
- cachePacket->packet.data, cachePacket->packet.size);
|
||||
+ &cachePacket->packet);
|
||||
if(frameFinished)
|
||||
{
|
||||
AVFrame * input = video->m_frame;
|
||||
@@ -628,7 +627,7 @@
|
||||
if (m_captRate <= 0.f)
|
||||
m_captRate = defFrameRate;
|
||||
sprintf(rateStr, "%f", m_captRate);
|
||||
- av_parse_video_frame_rate(&frameRate, rateStr);
|
||||
+ av_parse_video_rate(&frameRate, rateStr);
|
||||
// populate format parameters
|
||||
// need to specify the time base = inverse of rate
|
||||
formatParams.time_base.num = frameRate.den;
|
||||
@@ -887,10 +886,10 @@
|
||||
{
|
||||
if (packet.stream_index == m_videoStream)
|
||||
{
|
||||
- avcodec_decode_video(
|
||||
+ avcodec_decode_video2(
|
||||
m_codecCtx,
|
||||
m_frame, &frameFinished,
|
||||
- packet.data, packet.size);
|
||||
+ &packet);
|
||||
if (frameFinished)
|
||||
m_curPosition++;
|
||||
}
|
||||
@@ -966,9 +965,9 @@
|
||||
{
|
||||
if(packet.stream_index == m_videoStream)
|
||||
{
|
||||
- avcodec_decode_video(m_codecCtx,
|
||||
+ avcodec_decode_video2(m_codecCtx,
|
||||
m_frame, &frameFinished,
|
||||
- packet.data, packet.size);
|
||||
+ &packet);
|
||||
|
||||
if (frameFinished && !posFound)
|
||||
{
|
||||
diff -urN blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.h blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.h
|
||||
--- blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.h 2009-09-01 17:20:53.000000000 +0200
|
||||
+++ blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.h 2011-11-13 08:03:51.000000000 +0100
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavutil/rational.h>
|
||||
+#include <libavutil/parseutils.h>
|
||||
#include <libswscale/swscale.h>
|
||||
#include "DNA_listBase.h"
|
||||
#include "BLI_threads.h"
|
@ -1,12 +0,0 @@
|
||||
--- SConstruct 2011-10-29 05:18:43.149564401 +0200
|
||||
+++ SConstruct 2011-10-29 05:19:37.332887017 +0200
|
||||
@@ -165,6 +165,9 @@
|
||||
if crossbuild and platform not in ('win32-vc', 'win64-vc'):
|
||||
platform = 'linuxcross'
|
||||
|
||||
+if platform == 'linux3':
|
||||
+ platform = 'linux2' # Workaround for Linux 3.x
|
||||
+
|
||||
env['OURPLATFORM'] = platform
|
||||
|
||||
configfile = os.path.join("build_files", "scons", "config", platform + "-config.py")
|
@ -1,14 +0,0 @@
|
||||
--- tools/Blender.py 2011-10-29 06:32:11.706449854 +0200
|
||||
+++ tools/Blender.py 2011-10-29 06:32:15.923397138 +0200
|
||||
@@ -219,7 +219,10 @@
|
||||
"""
|
||||
build_date = time.strftime ("%Y-%m-%d")
|
||||
build_time = time.strftime ("%H:%M:%S")
|
||||
- build_rev = os.popen('svnversion').read()[:-1] # remove \n
|
||||
+ # svn 1.6 says "exported"
|
||||
+ # svn 1.7 says "Unversioned directory"
|
||||
+ # Latter breaks the build somewhere, former doesn't.
|
||||
+ build_rev = 'exported'
|
||||
|
||||
obj = []
|
||||
if lenv['BF_BUILDINFO']:
|
@ -1,9 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Blender 2.4x
|
||||
Comment=3D modeling, animation, rendering and post-production.
|
||||
Exec=blender
|
||||
Icon=blender
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=Graphics;Application;
|
@ -1,7 +1,3 @@
|
||||
DIST netpbm-10.51.00-libpng-1.5.patch.bz2 8120 SHA256 260a5f0e9834e7e1aa5c2dcc292695aa43b5aa198af1cb33e5705f7cac10da7b SHA512 3bebffb798e72e5ff872b482d43dffbd174496d1ca46e88bcb3c19f2b94cdfe2037aa1f19a22a40996503ccc03929bd28570722874a0c74265b083fbc66b24c4 WHIRLPOOL cbf1efd16ac7acef1fa318454f24afbd7f68eded7343168783ce8fd5dd389b9d97e7a9237cf4d6315cdeba462c9d84fb7011ddfa2df592b1fe15f4462ca0d623
|
||||
DIST netpbm-10.51.00.tar.xz 1834148 SHA256 6d7bb30d1d0e7f6a23b55c6f03bbb20b539909ad84281dc944b1072656dc1d0e SHA512 07b621bfebbd051a80eff09886bc2b3b4f82b01fa9087d6a76ed70a042493b69fb3295d471640a4576101ba19352a57eadf69c5721d9cc416d25ff563ee07c76 WHIRLPOOL 25cbfbdd575fe1c032ce1bb700181175b1386d481990e516ce62d953b1d37091c32ca2016c487d4963af1b8c79ec04953e59181334d2a53b9d5701acedabdf2a
|
||||
DIST netpbm-10.56.00.tar.xz 1881348 SHA256 2169916c7c03bea90449f87b911a97f961565aa2b0123ab9f72b70d9429b172f SHA512 0a44fa235fe701026390953bf1d98b823fd81ddb78470d5ea5339ad130e7ffb3b146a32957a8d5f69eea40e1b2fa894706470ca6d5e4e435d7a5d90e1dcf6590 WHIRLPOOL f990118f5341f390cf6031e88fe8c9d2e6d084c65cb64cd33dae23284f389909af8411ca7beb88e43727f96af9f3c7d26497e5b988f05721cfc89442159003e1
|
||||
DIST netpbm-10.57.00.tar.xz 1884452 SHA256 128ee11c173d8ae96c4c1fa71084200ed22cca9df7b1b7fbdd4e23dbf78a8357 SHA512 24dea478599b189d7ed845d62f4b4de5a6c18e3cdf00c35edeb71f179a68a69233a7ce43d6a1be50c218dd32cedbe546e2344f2201e335f9d6d64475510dbb30 WHIRLPOOL f585dd5356b37555562a1094578b6161828b5df5a455022cc85aa2c7435b623edd2e67e6d836a1329da2e64ce23f27d5d201d97280f0080590fb795c3b111583
|
||||
DIST netpbm-10.58.00.tar.xz 2521144 SHA256 e98eb3a039b401981825cad746a7733ea07750e5b6bde0adf68ea1ac31987bd5 SHA512 ffa1506114d03c237e0bfea27f09563268063bbc49db672a09ebfbfc836faa4fe4c4e707a4a32854bb84a4accd8e53cc66117146eb4c3d23464c5cb3e4dacfc2 WHIRLPOOL 9f6a798d4ae943b9f930fe5d11abb8fbe4692a68cf3fca29ecbc4eb65d6cd9836126e8c18a8006f7debbcca26588bbb669e4ff3a004ee7f7444d411bb1972791
|
||||
DIST netpbm-10.59.00.tar.xz 2526328 SHA256 66a8202d393edf51c2d2adde54b46f7b533fb4f732adb26a8aa4f1ce4777dc04 SHA512 789095667b0adaaf4ae768dbc52226106caf35dc7fd01a3d352c88dfb699f90e74c5f0a6c002768acb673bcf9e36830b1f2951bfbe27a0159c1c73453b74efc5 WHIRLPOOL abd4e1d021b1908b4a12606f588e72dd477eeb6efce9b42dc92a04d02ac0640306134bb9824cd5bf85a7cef8a5dd4cec846b79e9cec9588f4c11ccb85a36684a
|
||||
DIST netpbm-10.61.00.tar.xz 2547964 SHA256 7900a267987533e51f99449618389391f792250a12bc56ea52dd33d660ce71d4 SHA512 8876fea4e4b7d1c5b0317130ef18e14ce0b531bfaff1dd5615c266d50cc3ffcfb70ec62246e1c5770229572b8796e5dd36bf2fbdb1cf4e390f2fe3b247df693c WHIRLPOOL 52ac23b73f4db8b31650fd29a776cdf696f47fb9c1b2f463382c145b67f3a2ad6b909625e6c550d89b49871dc24d7f7250223bb1657e3d1f940ea4ae0ffcbf5e
|
||||
|
@ -1,12 +0,0 @@
|
||||
https://bugs.gentoo.org/341565
|
||||
|
||||
--- a/editor/specialty/pampaintspill.c
|
||||
+++ b/editor/specialty/pampaintspill.c
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
-#include <alloca.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "mallocvar.h"
|
@ -1,151 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.56.00.ebuild,v 1.2 2012/01/03 01:36:12 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit toolchain-funcs eutils multilib
|
||||
|
||||
DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
|
||||
HOMEPAGE="http://netpbm.sourceforge.net/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="jbig jpeg jpeg2k png rle svga tiff X xml zlib"
|
||||
|
||||
RDEPEND="jbig? ( media-libs/jbigkit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
png? ( >=media-libs/libpng-1.4:0 )
|
||||
rle? ( media-libs/urt )
|
||||
svga? ( media-libs/svgalib )
|
||||
tiff? ( >=media-libs/tiff-3.5.5:0 )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
X? ( x11-libs/libX11 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex"
|
||||
|
||||
netpbm_libtype() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo dylib;;
|
||||
*) echo unixshared;;
|
||||
esac
|
||||
}
|
||||
netpbm_libsuffix() {
|
||||
local suffix=$(get_libname)
|
||||
echo ${suffix//\.}
|
||||
}
|
||||
netpbm_ldshlib() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';;
|
||||
*) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';;
|
||||
esac
|
||||
}
|
||||
netpbm_config() {
|
||||
if use $1 ; then
|
||||
[[ $2 != "!" ]] && echo -l${2:-$1}
|
||||
else
|
||||
echo NONE
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/netpbm-10.31-build.patch
|
||||
epatch "${FILESDIR}"/netpbm-10.56.00-alloca.patch #341565
|
||||
|
||||
# make sure we use system urt
|
||||
sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die
|
||||
rm -rf urt
|
||||
|
||||
# take care of the importinc stuff ourselves by only doing it once
|
||||
# at the top level and having all subdirs use that one set #149843
|
||||
sed -i \
|
||||
-e '/^importinc:/s|^|importinc:\nmanual_|' \
|
||||
-e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\
|
||||
common.mk || die
|
||||
sed -i \
|
||||
-e '/%.c/s: importinc$::' \
|
||||
common.mk lib/Makefile lib/util/Makefile || die
|
||||
|
||||
# avoid ugly depend.mk warnings
|
||||
touch $(find . -name Makefile | sed s:Makefile:depend.mk:g)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cat config.mk.in - >> config.mk <<-EOF
|
||||
# Misc crap
|
||||
BUILD_FIASCO = N
|
||||
SYMLINK = ln -sf
|
||||
|
||||
# Toolchain options
|
||||
CC = $(tc-getCC) -Wall
|
||||
LD = \$(CC)
|
||||
CC_FOR_BUILD = $(tc-getBUILD_CC)
|
||||
LD_FOR_BUILD = \$(CC_FOR_BUILD)
|
||||
AR = $(tc-getAR)
|
||||
RANLIB = $(tc-getRANLIB)
|
||||
|
||||
STRIPFLAG =
|
||||
CFLAGS_SHLIB = -fPIC
|
||||
|
||||
LDRELOC = \$(LD) -r
|
||||
LDSHLIB = $(netpbm_ldshlib)
|
||||
LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to
|
||||
LINKERISCOMPILER = Y
|
||||
NETPBMLIBSUFFIX = $(netpbm_libsuffix)
|
||||
NETPBMLIBTYPE = $(netpbm_libtype)
|
||||
|
||||
# Gentoo build options
|
||||
TIFFLIB = $(netpbm_config tiff)
|
||||
# Let tiff worry about its own dependencies #395753
|
||||
TIFFLIB_NEEDS_JPEG = N
|
||||
TIFFLIB_NEEDS_Z = N
|
||||
JPEGLIB = $(netpbm_config jpeg)
|
||||
PNGLIB = $(netpbm_config png)
|
||||
ZLIB = $(netpbm_config zlib z)
|
||||
LINUXSVGALIB = $(netpbm_config svga vga)
|
||||
XML2_LIBS = $(netpbm_config xml xml2)
|
||||
JBIGLIB = -ljbig
|
||||
JBIGHDR_DIR = $(netpbm_config jbig "!")
|
||||
JASPERLIB = -ljasper
|
||||
JASPERHDR_DIR = $(netpbm_config jpeg2k "!")
|
||||
URTLIB = $(netpbm_config rle)
|
||||
URTHDR_DIR =
|
||||
X11LIB = $(netpbm_config X X11)
|
||||
X11HDR_DIR =
|
||||
EOF
|
||||
# cannot chain the die with the heredoc above as bash-3
|
||||
# has a parser bug in that setup #282902
|
||||
[ $? -eq 0 ] || die "writing config.mk failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 pm_config.h version.h manual_importinc || die #149843
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Subdir make targets like to use `mkdir` all over the place
|
||||
# without any actual dependencies, thus the -j1.
|
||||
emake -j1 package pkgdir="${D}"/usr || die
|
||||
|
||||
[[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir)
|
||||
|
||||
# Remove cruft that we don't need, and move around stuff we want
|
||||
rm "${D}"/usr/bin/{doc.url,manweb} || die
|
||||
rm -r "${D}"/usr/man/web || die
|
||||
rm -r "${D}"/usr/link || die
|
||||
rm "${D}"/usr/{README,VERSION,config_template,pkginfo} || die
|
||||
dodir /usr/share
|
||||
mv "${D}"/usr/man "${D}"/usr/share/ || die
|
||||
mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die
|
||||
|
||||
dodoc README
|
||||
cd doc
|
||||
dodoc HISTORY Netpbm.programming USERDOC
|
||||
dohtml -r .
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.57.00.ebuild,v 1.1 2012/01/03 01:37:19 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit toolchain-funcs eutils multilib
|
||||
|
||||
DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
|
||||
HOMEPAGE="http://netpbm.sourceforge.net/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="jbig jpeg jpeg2k png rle svga tiff X xml zlib"
|
||||
|
||||
RDEPEND="jbig? ( media-libs/jbigkit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
png? ( >=media-libs/libpng-1.4:0 )
|
||||
rle? ( media-libs/urt )
|
||||
svga? ( media-libs/svgalib )
|
||||
tiff? ( >=media-libs/tiff-3.5.5:0 )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
X? ( x11-libs/libX11 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex"
|
||||
|
||||
netpbm_libtype() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo dylib;;
|
||||
*) echo unixshared;;
|
||||
esac
|
||||
}
|
||||
netpbm_libsuffix() {
|
||||
local suffix=$(get_libname)
|
||||
echo ${suffix//\.}
|
||||
}
|
||||
netpbm_ldshlib() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';;
|
||||
*) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';;
|
||||
esac
|
||||
}
|
||||
netpbm_config() {
|
||||
if use $1 ; then
|
||||
[[ $2 != "!" ]] && echo -l${2:-$1}
|
||||
else
|
||||
echo NONE
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/netpbm-10.31-build.patch
|
||||
|
||||
# make sure we use system urt
|
||||
sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die
|
||||
rm -rf urt
|
||||
|
||||
# take care of the importinc stuff ourselves by only doing it once
|
||||
# at the top level and having all subdirs use that one set #149843
|
||||
sed -i \
|
||||
-e '/^importinc:/s|^|importinc:\nmanual_|' \
|
||||
-e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\
|
||||
common.mk || die
|
||||
sed -i \
|
||||
-e '/%.c/s: importinc$::' \
|
||||
common.mk lib/Makefile lib/util/Makefile || die
|
||||
|
||||
# avoid ugly depend.mk warnings
|
||||
touch $(find . -name Makefile | sed s:Makefile:depend.mk:g)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cat config.mk.in - >> config.mk <<-EOF
|
||||
# Misc crap
|
||||
BUILD_FIASCO = N
|
||||
SYMLINK = ln -sf
|
||||
|
||||
# Toolchain options
|
||||
CC = $(tc-getCC) -Wall
|
||||
LD = \$(CC)
|
||||
CC_FOR_BUILD = $(tc-getBUILD_CC)
|
||||
LD_FOR_BUILD = \$(CC_FOR_BUILD)
|
||||
AR = $(tc-getAR)
|
||||
RANLIB = $(tc-getRANLIB)
|
||||
|
||||
STRIPFLAG =
|
||||
CFLAGS_SHLIB = -fPIC
|
||||
|
||||
LDRELOC = \$(LD) -r
|
||||
LDSHLIB = $(netpbm_ldshlib)
|
||||
LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to
|
||||
LINKERISCOMPILER = Y
|
||||
NETPBMLIBSUFFIX = $(netpbm_libsuffix)
|
||||
NETPBMLIBTYPE = $(netpbm_libtype)
|
||||
|
||||
# Gentoo build options
|
||||
TIFFLIB = $(netpbm_config tiff)
|
||||
# Let tiff worry about its own dependencies #395753
|
||||
TIFFLIB_NEEDS_JPEG = N
|
||||
TIFFLIB_NEEDS_Z = N
|
||||
JPEGLIB = $(netpbm_config jpeg)
|
||||
PNGLIB = $(netpbm_config png)
|
||||
ZLIB = $(netpbm_config zlib z)
|
||||
LINUXSVGALIB = $(netpbm_config svga vga)
|
||||
XML2_LIBS = $(netpbm_config xml xml2)
|
||||
JBIGLIB = -ljbig
|
||||
JBIGHDR_DIR = $(netpbm_config jbig "!")
|
||||
JASPERLIB = -ljasper
|
||||
JASPERHDR_DIR = $(netpbm_config jpeg2k "!")
|
||||
URTLIB = $(netpbm_config rle)
|
||||
URTHDR_DIR =
|
||||
X11LIB = $(netpbm_config X X11)
|
||||
X11HDR_DIR =
|
||||
EOF
|
||||
# cannot chain the die with the heredoc above as bash-3
|
||||
# has a parser bug in that setup #282902
|
||||
[ $? -eq 0 ] || die "writing config.mk failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 pm_config.h version.h manual_importinc || die #149843
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Subdir make targets like to use `mkdir` all over the place
|
||||
# without any actual dependencies, thus the -j1.
|
||||
emake -j1 package pkgdir="${D}"/usr || die
|
||||
|
||||
[[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir)
|
||||
|
||||
# Remove cruft that we don't need, and move around stuff we want
|
||||
rm "${D}"/usr/bin/{doc.url,manweb} || die
|
||||
rm -r "${D}"/usr/man/web || die
|
||||
rm -r "${D}"/usr/link || die
|
||||
rm "${D}"/usr/{README,VERSION,config_template,pkginfo} || die
|
||||
dodir /usr/share
|
||||
mv "${D}"/usr/man "${D}"/usr/share/ || die
|
||||
mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die
|
||||
|
||||
dodoc README
|
||||
cd doc
|
||||
dodoc HISTORY Netpbm.programming USERDOC
|
||||
dohtml -r .
|
||||
}
|
@ -1,152 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.58.00.ebuild,v 1.1 2012/07/03 16:25:35 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit toolchain-funcs eutils multilib
|
||||
|
||||
DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
|
||||
HOMEPAGE="http://netpbm.sourceforge.net/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="doc jbig jpeg jpeg2k png rle svga tiff X xml zlib"
|
||||
|
||||
RDEPEND="jbig? ( media-libs/jbigkit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
png? ( >=media-libs/libpng-1.4:0 )
|
||||
rle? ( media-libs/urt )
|
||||
svga? ( media-libs/svgalib )
|
||||
tiff? ( >=media-libs/tiff-3.5.5:0 )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
X? ( x11-libs/libX11 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex"
|
||||
|
||||
netpbm_libtype() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo dylib;;
|
||||
*) echo unixshared;;
|
||||
esac
|
||||
}
|
||||
netpbm_libsuffix() {
|
||||
local suffix=$(get_libname)
|
||||
echo ${suffix//\.}
|
||||
}
|
||||
netpbm_ldshlib() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';;
|
||||
*) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';;
|
||||
esac
|
||||
}
|
||||
netpbm_config() {
|
||||
if use $1 ; then
|
||||
[[ $2 != "!" ]] && echo -l${2:-$1}
|
||||
else
|
||||
echo NONE
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/netpbm-10.31-build.patch
|
||||
|
||||
# make sure we use system urt
|
||||
sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die
|
||||
rm -rf urt
|
||||
|
||||
# take care of the importinc stuff ourselves by only doing it once
|
||||
# at the top level and having all subdirs use that one set #149843
|
||||
sed -i \
|
||||
-e '/^importinc:/s|^|importinc:\nmanual_|' \
|
||||
-e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\
|
||||
common.mk || die
|
||||
sed -i \
|
||||
-e '/%.c/s: importinc$::' \
|
||||
common.mk lib/Makefile lib/util/Makefile || die
|
||||
|
||||
# avoid ugly depend.mk warnings
|
||||
touch $(find . -name Makefile | sed s:Makefile:depend.mk:g)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cat config.mk.in - >> config.mk <<-EOF
|
||||
# Misc crap
|
||||
BUILD_FIASCO = N
|
||||
SYMLINK = ln -sf
|
||||
|
||||
# Toolchain options
|
||||
CC = $(tc-getCC) -Wall
|
||||
LD = \$(CC)
|
||||
CC_FOR_BUILD = $(tc-getBUILD_CC)
|
||||
LD_FOR_BUILD = \$(CC_FOR_BUILD)
|
||||
AR = $(tc-getAR)
|
||||
RANLIB = $(tc-getRANLIB)
|
||||
|
||||
STRIPFLAG =
|
||||
CFLAGS_SHLIB = -fPIC
|
||||
|
||||
LDRELOC = \$(LD) -r
|
||||
LDSHLIB = $(netpbm_ldshlib)
|
||||
LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to
|
||||
LINKERISCOMPILER = Y
|
||||
NETPBMLIBSUFFIX = $(netpbm_libsuffix)
|
||||
NETPBMLIBTYPE = $(netpbm_libtype)
|
||||
|
||||
# Gentoo build options
|
||||
TIFFLIB = $(netpbm_config tiff)
|
||||
# Let tiff worry about its own dependencies #395753
|
||||
TIFFLIB_NEEDS_JPEG = N
|
||||
TIFFLIB_NEEDS_Z = N
|
||||
JPEGLIB = $(netpbm_config jpeg)
|
||||
PNGLIB = $(netpbm_config png)
|
||||
ZLIB = $(netpbm_config zlib z)
|
||||
LINUXSVGALIB = $(netpbm_config svga vga)
|
||||
XML2_LIBS = $(netpbm_config xml xml2)
|
||||
JBIGLIB = -ljbig
|
||||
JBIGHDR_DIR = $(netpbm_config jbig "!")
|
||||
JASPERLIB = -ljasper
|
||||
JASPERHDR_DIR = $(netpbm_config jpeg2k "!")
|
||||
URTLIB = $(netpbm_config rle)
|
||||
URTHDR_DIR =
|
||||
X11LIB = $(netpbm_config X X11)
|
||||
X11HDR_DIR =
|
||||
EOF
|
||||
# cannot chain the die with the heredoc above as bash-3
|
||||
# has a parser bug in that setup #282902
|
||||
[ $? -eq 0 ] || die "writing config.mk failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 pm_config.h version.h manual_importinc #149843
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Subdir make targets like to use `mkdir` all over the place
|
||||
# without any actual dependencies, thus the -j1.
|
||||
emake -j1 package pkgdir="${D}"/usr
|
||||
|
||||
[[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir)
|
||||
|
||||
# Remove cruft that we don't need, and move around stuff we want
|
||||
rm "${D}"/usr/bin/{doc.url,manweb} || die
|
||||
rm -r "${D}"/usr/man/web || die
|
||||
rm -r "${D}"/usr/link || die
|
||||
rm "${D}"/usr/{README,VERSION,config_template,pkginfo} || die
|
||||
dodir /usr/share
|
||||
mv "${D}"/usr/man "${D}"/usr/share/ || die
|
||||
mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die
|
||||
|
||||
doman userguide/*.[0-9]
|
||||
use doc && dohtml -r userguide
|
||||
dodoc README
|
||||
cd doc
|
||||
dodoc HISTORY Netpbm.programming USERDOC
|
||||
dohtml -r .
|
||||
}
|
@ -1,152 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.59.00.ebuild,v 1.1 2012/07/18 21:50:27 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit toolchain-funcs eutils multilib
|
||||
|
||||
DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
|
||||
HOMEPAGE="http://netpbm.sourceforge.net/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="doc jbig jpeg jpeg2k png rle svga tiff X xml zlib"
|
||||
|
||||
RDEPEND="jbig? ( media-libs/jbigkit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
png? ( >=media-libs/libpng-1.4:0 )
|
||||
rle? ( media-libs/urt )
|
||||
svga? ( media-libs/svgalib )
|
||||
tiff? ( >=media-libs/tiff-3.5.5:0 )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
X? ( x11-libs/libX11 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex"
|
||||
|
||||
netpbm_libtype() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo dylib;;
|
||||
*) echo unixshared;;
|
||||
esac
|
||||
}
|
||||
netpbm_libsuffix() {
|
||||
local suffix=$(get_libname)
|
||||
echo ${suffix//\.}
|
||||
}
|
||||
netpbm_ldshlib() {
|
||||
case ${CHOST} in
|
||||
*-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';;
|
||||
*) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';;
|
||||
esac
|
||||
}
|
||||
netpbm_config() {
|
||||
if use $1 ; then
|
||||
[[ $2 != "!" ]] && echo -l${2:-$1}
|
||||
else
|
||||
echo NONE
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/netpbm-10.31-build.patch
|
||||
|
||||
# make sure we use system urt
|
||||
sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die
|
||||
rm -rf urt
|
||||
|
||||
# take care of the importinc stuff ourselves by only doing it once
|
||||
# at the top level and having all subdirs use that one set #149843
|
||||
sed -i \
|
||||
-e '/^importinc:/s|^|importinc:\nmanual_|' \
|
||||
-e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\
|
||||
common.mk || die
|
||||
sed -i \
|
||||
-e '/%.c/s: importinc$::' \
|
||||
common.mk lib/Makefile lib/util/Makefile || die
|
||||
|
||||
# avoid ugly depend.mk warnings
|
||||
touch $(find . -name Makefile | sed s:Makefile:depend.mk:g)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cat config.mk.in - >> config.mk <<-EOF
|
||||
# Misc crap
|
||||
BUILD_FIASCO = N
|
||||
SYMLINK = ln -sf
|
||||
|
||||
# Toolchain options
|
||||
CC = $(tc-getCC) -Wall
|
||||
LD = \$(CC)
|
||||
CC_FOR_BUILD = $(tc-getBUILD_CC)
|
||||
LD_FOR_BUILD = \$(CC_FOR_BUILD)
|
||||
AR = $(tc-getAR)
|
||||
RANLIB = $(tc-getRANLIB)
|
||||
|
||||
STRIPFLAG =
|
||||
CFLAGS_SHLIB = -fPIC
|
||||
|
||||
LDRELOC = \$(LD) -r
|
||||
LDSHLIB = $(netpbm_ldshlib)
|
||||
LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to
|
||||
LINKERISCOMPILER = Y
|
||||
NETPBMLIBSUFFIX = $(netpbm_libsuffix)
|
||||
NETPBMLIBTYPE = $(netpbm_libtype)
|
||||
|
||||
# Gentoo build options
|
||||
TIFFLIB = $(netpbm_config tiff)
|
||||
# Let tiff worry about its own dependencies #395753
|
||||
TIFFLIB_NEEDS_JPEG = N
|
||||
TIFFLIB_NEEDS_Z = N
|
||||
JPEGLIB = $(netpbm_config jpeg)
|
||||
PNGLIB = $(netpbm_config png)
|
||||
ZLIB = $(netpbm_config zlib z)
|
||||
LINUXSVGALIB = $(netpbm_config svga vga)
|
||||
XML2_LIBS = $(netpbm_config xml xml2)
|
||||
JBIGLIB = -ljbig
|
||||
JBIGHDR_DIR = $(netpbm_config jbig "!")
|
||||
JASPERLIB = -ljasper
|
||||
JASPERHDR_DIR = $(netpbm_config jpeg2k "!")
|
||||
URTLIB = $(netpbm_config rle)
|
||||
URTHDR_DIR =
|
||||
X11LIB = $(netpbm_config X X11)
|
||||
X11HDR_DIR =
|
||||
EOF
|
||||
# cannot chain the die with the heredoc above as bash-3
|
||||
# has a parser bug in that setup #282902
|
||||
[ $? -eq 0 ] || die "writing config.mk failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 pm_config.h version.h manual_importinc #149843
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Subdir make targets like to use `mkdir` all over the place
|
||||
# without any actual dependencies, thus the -j1.
|
||||
emake -j1 package pkgdir="${D}"/usr
|
||||
|
||||
[[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir)
|
||||
|
||||
# Remove cruft that we don't need, and move around stuff we want
|
||||
rm "${D}"/usr/bin/{doc.url,manweb} || die
|
||||
rm -r "${D}"/usr/man/web || die
|
||||
rm -r "${D}"/usr/link || die
|
||||
rm "${D}"/usr/{README,VERSION,config_template,pkginfo} || die
|
||||
dodir /usr/share
|
||||
mv "${D}"/usr/man "${D}"/usr/share/ || die
|
||||
mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die
|
||||
|
||||
doman userguide/*.[0-9]
|
||||
use doc && dohtml -r userguide
|
||||
dodoc README
|
||||
cd doc
|
||||
dodoc HISTORY Netpbm.programming USERDOC
|
||||
dohtml -r .
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST pitivi-0.14.1.tar.bz2 1597657 SHA256 0abf7206c84cd1b6e24170a5100c7b69234291ac2fa3b79a6bf73ea586156f0b SHA512 ed58ac434fb3e60847054435395de8687b50ed99cc175ed3eccccb6a83e727cf41b753656e45fd455af1393d43be812c7c95358d7156b34e4a4125f201940202 WHIRLPOOL c49d7b50245f05e14d6c1cf1847b72db407d8d0cff78ce0f084d0a4e5e83af4fd0105a9d8eda3e5d15b27e535705fa924be197d51ac740e6dc7595679e32f17f
|
||||
DIST pitivi-0.15.2.tar.xz 2171536 SHA256 4f89f78c44d8a2ee03de854d8d973ca9f10b6165e6e2d2da4862fe7a1b4f8bbf SHA512 dbf02bf8c5c253c3914998a7f03913afe3815480321ffd5b58eaeba5628310a01907e64307f4e2f3a10762dc07c7a8b481ba67e784d0ee5f427a26624aacdc2b WHIRLPOOL 88f2527f0f7fb555f374a2dec3c43b76449400952c289ce257501c6631959cfed3ef44f7805a60b04c98e20b8cf6fd214b5d305fcf132daea926d4eba611d65d
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue