parent
9e15cb986c
commit
f86ba3f472
@ -1,3 +1,3 @@
|
||||
DIST homebank-4.6.3.tar.gz 1899045 SHA256 f6e31bb789d626b507c2af9d176a0bac0cbaec770ede73048ba7a6df113a6948 SHA512 aab7374d90ffc52a40188eb334fc9b3461c299014d6134f236488991400fffe9f6dcb69247501857fe4caafbb08f0c5d729211b13551203f1231d136e99e024d WHIRLPOOL e8f6a421c64eb1bf6f2d97910e4687b00cf794fd27c8aff83ce9d39e18393cccca1984e73a44110ff5e87427fd0ed74963dcb997490d97614116800100daca5b
|
||||
DIST homebank-5.0.0.tar.gz 2553476 SHA256 28d4342d989997ce63acdf5b92354f6142bb6d87d57fc37dd7610beb73305918 SHA512 85fbd42658c5427a69d69b11394ba5d7a4eedf05ab6b480399a5bf253822175f91eeac874b271b816b7bd44a387f40fd6c686f791b3575f5cf02465fd10a50a2 WHIRLPOOL ea46a06b7f08b85976d9b1c61843188bc2f9dd2e5075707be263f46eed8719ccc1aca15c246276972f7fc6fbf707c9e5364da334869cc166c8eb43445398c504
|
||||
DIST homebank-5.0.3.tar.gz 2551525 SHA256 eac04a19f5d7644a5bf254a22f737d562b41503f280e339192f39745bf0d7839 SHA512 727802950570aac29c9a578c6332cad3cf4c9d71a8f059db9ff4acec7fca5e85148b4aad8eea825dcf76cf751e44b4ab94be5c6c70fa09b0ddc7d40948ea4ac5 WHIRLPOOL 937f3734e97d3294633192dab593c1042ea550eb1fce70b85f37c3980eef65c1a63a392da86bfe9bcebab77efa556a77db3eeef21b41e637eed4e29a0d6cfa5c
|
||||
DIST homebank-5.0.5.tar.gz 2554967 SHA256 67c47709517d325fc8d601bb8552e3c8a1ad3b820a2c0a403ed20f00c795903c SHA512 9e23565041de9a4b4f7cf6374618022d89b99119d54a6375a17880e4cb284f7af7e83bef7d58b943c107d28ac56751987960a17e2bf2cc0a3e0c10d6442a40ed WHIRLPOOL 8423d22687bc7851c4d51ccc88a1a4ade53eb813875beae7bf2137a209c57b3d08c63eebceed963f91db78f07cbba9a46dcb3fce68999b62fbbd55c826ddc1b5
|
||||
|
@ -0,0 +1 @@
|
||||
DIST antlr-2.7.7.tar.gz 1816180 SHA256 853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9 SHA512 faa72d2ddcba434ef1233e70c1549e63eba67c00793966322e821cf7f015cccb804448cb92d8fbef0429f59928fad65ec954f8ffbda0acbb8e983de0806d349d WHIRLPOOL def5ac0ddfe5a65f9f7d5489d039048c5d630b46cd5626593bd12e9b393d5ec26884f90b013bcdf58511e26abbf06e0d7b3789a11298b017f7e70af2ec8dde4a
|
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
# Upstream only installs a static library. The original antlr ebuild
|
||||
# built a shared library manually, which isn't so great either. This
|
||||
# ebuild applies libtool instead and therefore an autoreconf is
|
||||
# required. A couple of errors concerning tr have been seen but the
|
||||
# final result still looks good. This also sidesteps bug #554344 plus
|
||||
# the need to call einstall.
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit eutils autotools-multilib
|
||||
|
||||
MY_P="${PN%-cpp}-${PV}"
|
||||
DESCRIPTION="The ANTLR 2 C++ Runtime"
|
||||
HOMEPAGE="http://www.antlr2.org/"
|
||||
SRC_URI="http://www.antlr2.org/download/${MY_P}.tar.gz"
|
||||
LICENSE="public-domain"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc examples static-libs"
|
||||
|
||||
DEPEND="doc? ( app-doc/doxygen )"
|
||||
RDEPEND="!!dev-java/antlr:0[cxx]"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DOCS=( lib/cpp/AUTHORS lib/cpp/ChangeLog lib/cpp/README lib/cpp/TODO )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-{gcc,libtool}.patch
|
||||
|
||||
mv -v configure.in configure.ac || die
|
||||
mv -v aclocal.m4 acinclude.m4 || die
|
||||
|
||||
# These silly test -z lines break badly under recent autoconfs.
|
||||
sed -i '/AC_PATH_PROG/s/test -z "\$[^"]*" *&& *//' configure.ac || die
|
||||
|
||||
# Delete build files from examples.
|
||||
find examples -name Makefile.in -delete || die
|
||||
|
||||
# Fix make invocations. See bug #256880.
|
||||
find -name "*.in" -exec sed -i 's/@MAKE@/$(MAKE)/g' {} + || die
|
||||
|
||||
# Turn Makefile.in files into libtool-style Makefile.am
|
||||
# files. Countable.hpp is actually missing.
|
||||
local HPP=$(grep -E -o "\w+\.hpp" lib/cpp/antlr/Makefile.in | grep -v "Countable\.hpp" | tr "\n" " " || die)
|
||||
local CPP=$(grep -E -o "\w+\.cpp" lib/cpp/src/Makefile.in | tr "\n" " " || die)
|
||||
|
||||
cat <<EOF > lib/cpp/antlr/Makefile.am || die
|
||||
antlr_includedir = \$(includedir)/antlr
|
||||
antlr_include_HEADERS = ${HPP}
|
||||
EOF
|
||||
|
||||
cat <<EOF > lib/cpp/src/Makefile.am || die
|
||||
AM_CPPFLAGS = -I\$(abs_top_srcdir)/lib/cpp
|
||||
lib_LTLIBRARIES = libantlr.la
|
||||
libantlr_la_LDFLAGS = -version-info 2
|
||||
libantlr_la_SOURCES = ${CPP}
|
||||
EOF
|
||||
|
||||
autotools-multilib_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--disable-csharp
|
||||
--enable-cxx
|
||||
--disable-examples
|
||||
--disable-java
|
||||
--disable-python
|
||||
--enable-verbose
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-multilib_src_compile
|
||||
|
||||
if use doc; then
|
||||
cd "${S}/lib/cpp" || die
|
||||
doxygen -u doxygen.cfg || die
|
||||
doxygen doxygen.cfg || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# We only care about the C++ stuff.
|
||||
emake -C lib/cpp install DESTDIR="${D}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-multilib_src_install
|
||||
|
||||
cd "${S}" || die
|
||||
use doc && dohtml -r lib/cpp/gen_doc/html/
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r examples/cpp/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
diff -Naur antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp
|
||||
--- antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp 2006-11-01 21:37:17.000000000 +0000
|
||||
+++ antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp 2015-10-06 23:01:53.083655950 +0100
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
#include <antlr/config.hpp>
|
||||
|
||||
+#include <cstdio>
|
||||
+#include <cstring>
|
||||
#include <map>
|
||||
|
||||
#ifdef HAS_NOT_CCTYPE_H
|
@ -0,0 +1,21 @@
|
||||
diff -Naur antlr-2.7.7.orig/configure.in antlr-2.7.7/configure.in
|
||||
--- antlr-2.7.7.orig/configure.in 2006-11-01 21:37:18.000000000 +0000
|
||||
+++ antlr-2.7.7/configure.in 2015-10-11 13:49:09.166308712 +0100
|
||||
@@ -13,6 +13,9 @@
|
||||
AC_CONFIG_SRCDIR([LICENSE.txt])
|
||||
AC_CONFIG_AUX_DIR(scripts)
|
||||
|
||||
+LT_INIT
|
||||
+AM_INIT_AUTOMAKE
|
||||
+
|
||||
## This shall be the very first config file. Do not change
|
||||
## this.
|
||||
AC_CONFIG_FILES([scripts/config.vars])
|
||||
@@ -841,7 +844,6 @@
|
||||
AC_PROG_RANLIB
|
||||
|
||||
test -z "$MKDIR" && AC_PATH_PROG(MKDIR, mkdir$EXEEXT, mkdir$EXEEXT )
|
||||
-test -z "$RM" && AC_PATH_PROG(RM, rm$EXEEXT, rm$EXEEXT )
|
||||
|
||||
AX_PATH_PROGS(
|
||||
[TAR],
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
</pkgmetadata>
|
@ -1,173 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
DISTUTILS_OPTIONAL="y"
|
||||
DISTUTILS_SINGLE_IMPL="y"
|
||||
DISTUTILS_IN_SOURCE_BUILD="y"
|
||||
|
||||
inherit base java-pkg-2 mono autotools distutils-r1 multilib toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="A parser generator for C++, C#, Java, and Python"
|
||||
HOMEPAGE="http://www.antlr2.org/"
|
||||
SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc debug examples mono +cxx +java python script source static-libs"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# TODO do we actually need jdk at runtime?
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )
|
||||
>=virtual/jdk-1.6
|
||||
mono? ( dev-lang/mono )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/automake-1.15
|
||||
script? ( !dev-util/pccts )
|
||||
source? ( app-arch/zip )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PV}-{gcc-4.3,gcc-4.4,makefixes}.patch )
|
||||
|
||||
make_shared_lib() {
|
||||
local soname=$(basename "${1%.a}")$(get_libname $(get_major_version))
|
||||
einfo "Making ${soname}"
|
||||
[[ ${CHOST} == *-darwin* ]] \
|
||||
&& make_shared_lib_macho "${soname}" "$1" "$2"\
|
||||
|| make_shared_lib_elf "${soname}" "$1" "$2"
|
||||
}
|
||||
|
||||
make_shared_lib_elf() {
|
||||
local soname=$1 archive=$2 cc=$3
|
||||
${cc:-$(tc-getCXX)} ${LDFLAGS} \
|
||||
-shared -Wl,-soname="${soname}" \
|
||||
-Wl,--whole-archive "${archive}" -Wl,--no-whole-archive \
|
||||
-o $(dirname "${archive}")/"${soname}" || return 1
|
||||
}
|
||||
|
||||
make_shared_lib_macho() {
|
||||
local soname=$1 archive=$2 cc=$3
|
||||
${cc:-$(tc-getCXX)} ${LDFLAGS} \
|
||||
-dynamiclib -install_name "${EPREFIX}/usr/$(get_libdir)/${soname}" \
|
||||
-force_load "${archive}" \
|
||||
-o $(dirname "${archive}")/"${soname}" || return 1
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
if use python ; then
|
||||
python-single-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
|
||||
sed -i \
|
||||
-e 's/install:.*this-install/install:/' \
|
||||
lib/cpp/src/Makefile.in || die
|
||||
|
||||
use static-libs || epatch "${FILESDIR}/${PV}-static-libs-fix.patch"
|
||||
|
||||
# See bug #468540, this can be removed once bug #469150 is fixed.
|
||||
sed -i 's/tlib lib ar/ar/' configure.in || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# don't ask why, but this is needed for stuff to get built properly
|
||||
# across the various JDKs
|
||||
JAVACFLAGS="+ ${JAVACFLAGS}"
|
||||
|
||||
# mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104
|
||||
CSHARPC="mcs" econf $(use_enable java) \
|
||||
$(use_enable python) \
|
||||
$(use_enable mono csharp) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable examples) \
|
||||
$(use_enable cxx) \
|
||||
--enable-verbose
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CXXFLAGS="${CXXFLAGS} -fPIC"
|
||||
if use cxx; then
|
||||
pushd lib/cpp/src > /dev/null
|
||||
make_shared_lib libantlr.a || die
|
||||
if use static-libs; then
|
||||
make clean
|
||||
emake
|
||||
fi
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
pushd "${S}"/lib/python > /dev/null
|
||||
distutils-r1_src_compile
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin scripts/antlr-config
|
||||
|
||||
if use cxx ; then
|
||||
pushd lib/cpp > /dev/null
|
||||
einstall
|
||||
dolib.so src/libantlr$(get_libname $(get_major_version))
|
||||
dosym libantlr$(get_libname $(get_major_version)) \
|
||||
/usr/$(get_libdir)/libantlr$(get_libname)
|
||||
use static-libs && dolib.a src/libantlr.a
|
||||
newdoc AUTHORS{,.cpp}
|
||||
newdoc ChangeLog{,.cpp}
|
||||
newdoc TODO{,.cpp}
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
java-pkg_dojar antlr/antlr.jar
|
||||
use script && java-pkg_dolauncher antlr --main antlr.Tool
|
||||
use source && java-pkg_dosrc antlr
|
||||
use doc && java-pkg_dohtml -r doc/*
|
||||
fi
|
||||
|
||||
if use mono ; then
|
||||
pushd lib > /dev/null
|
||||
dodir /usr/$(get_libdir)/antlr/
|
||||
insinto /usr/$(get_libdir)/antlr/
|
||||
doins antlr.astframe.dll
|
||||
doins antlr.runtime.dll
|
||||
sed -e "s|@prefix@|${EPREFIX}/usr|" \
|
||||
-e 's|@exec_prefix@|${prefix}|' \
|
||||
-e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
|
||||
-e 's|@libs@|-r:${libdir}/antlr.astframe.dll -r:${libdir}/antlr.runtime.dll|' \
|
||||
-e "s|@VERSION@|${PV}|" \
|
||||
"${FILESDIR}"/antlr.pc.in > antlr.pc
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins antlr.pc
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
pushd "${S}"/lib/python > /dev/null
|
||||
distutils-r1_src_install
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
find "${S}"/examples -iname Makefile\* -exec rm \{\} \;
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
use cxx && doins -r "${S}"/examples/cpp
|
||||
use java && doins -r "${S}"/examples/java
|
||||
use mono && doins -r "${S}"/examples/csharp
|
||||
use python && doins -r "${S}"/examples/python
|
||||
fi
|
||||
|
||||
dodoc README.txt
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="A parser generator for many languages"
|
||||
HOMEPAGE="http://www.antlr2.org/"
|
||||
SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="examples source"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
source? ( app-arch/zip )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
JAVA_SRC_DIR="${S}/${PN}"
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_clean
|
||||
|
||||
# Delete build files from examples.
|
||||
find examples \( -name Makefile.in -o -name shiplist \) -delete || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
: # Avoid configure script.
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
java-pkg_dolauncher antlr --main antlr.Tool
|
||||
dodoc {CHANGES,README}.txt
|
||||
|
||||
use doc && java-pkg_dohtml -r doc/*
|
||||
use examples && java-pkg_doexamples examples/java
|
||||
use source && java-pkg_dosrc antlr
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="htmlparser" default="jar">
|
||||
<path id="build.classpath">
|
||||
<fileset dir="lib/">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<target name="compile">
|
||||
<mkdir dir="build"/>
|
||||
<javac srcdir="src" destdir="build" classpathref="build.classpath"/>
|
||||
</target>
|
||||
<target name="jar" depends="compile">
|
||||
<jar destfile="htmlparser.jar" basedir="build"/>
|
||||
</target>
|
||||
<target name="javadoc" depends="compile">
|
||||
<mkdir dir="docs"/>
|
||||
<javadoc sourcepath="src" destdir="docs" classpathref="build.classpath"/>
|
||||
</target>
|
||||
</project>
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Java port of Mozilla's Automatic Charset Detection algorithm"
|
||||
HOMEPAGE="http://jchardet.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
JAVA_SRC_DIR="src"
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_clean
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Java port of Mozilla's Automatic Charset Detection algorithm"
|
||||
HOMEPAGE="http://jchardet.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
app-arch/unzip"
|
||||
|
||||
EANT_BUILD_TARGET="dist"
|
||||
|
||||
src_prepare() {
|
||||
rm -f dist/lib/chardet.jar
|
||||
|
||||
mkdir -p src/org/mozilla/intl/chardet/ || die
|
||||
mv src/*.java src/org/mozilla/intl/chardet || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar dist/lib/chardet.jar
|
||||
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST axis-src-1_4.tar.gz 17041546 SHA256 911b4467f3d6cfe2e50fb7baea7a754e6aa717902d6ed91cef78f8f52bef8572 SHA512 7d08212b04702e76c960ad772a475f5765fef7f9ebe0aea3d4b949c6ba28a62500e8a76a43c7364b7caf36b7f27aee8592744256154670c7a24d29c5c1518258 WHIRLPOOL cf359caa9e645bdefb7c2ff012673dc64af9d4cc4bbe2a082cb64bcb0211d3a844ef797738ae1a3e9f978d0bbd8dc42bac9ecbdf4c734dd30ff52da18bdd7a91
|
||||
DIST jsr101-1.4.tar.bz2 18614 SHA256 2f2e793c0ece7240d7b117e2f05eb4b32d29e7fa7b2fbf85d912fb8693b0a55e SHA512 a29cca7e0ed1eb8aff4b70da6d804cb1cd61cdd9a800f420be6794aa927bca6a4146a95d71c8521d4dc16a0da56419f3e82079d942194380dbddb9d44d773317 WHIRLPOOL ad710d84c000f7711d0bcc3d93071160bb85daa0a854ade778ad3e636b49860a25739bd8e175b7c4a2a1b19f6c59451c0781b6b59f8331ce87cfb1c589d1e8f3
|
||||
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE=""
|
||||
|
||||
inherit versionator java-pkg-2
|
||||
|
||||
DESCRIPTION="Java(TM) API for XML-Based RPC Specification Interface Classes"
|
||||
HOMEPAGE="http://jcp.org/aboutJava/communityprocess/first/jsr101/"
|
||||
MY_PN=axis
|
||||
MY_PV=$(replace_all_version_separators _)
|
||||
SRC_URI="mirror://apache/ws/${MY_PN}/${MY_PV}/${MY_PN}-src-${MY_PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="java-virtuals/servlet-api:2.5
|
||||
java-virtuals/saaj-api:0"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
src_compile() {
|
||||
mkdir build
|
||||
ejavac \
|
||||
-classpath $(java-pkg_getjars servlet-api-2.5,saaj-api) \
|
||||
$(find src/javax/xml/rpc -name "*.java") -d build
|
||||
cd build
|
||||
jar cf jaxrpc-api.jar $(find . -type f) || die "jar failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/*.jar
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST gdl-0.9.4.tar.gz 2191342 SHA256 e18010cd874cad7b1fd8c752e9386571156e1fb066f2d27ecbcc15bbfc9514fa SHA512 46921eb3333a6b890187a6c75f71758e5e234b76d61a194e17de81ace10760659a4a676060490a5ef7374fd1acadf47c7f565133c19ea165e04c54a577b3c723 WHIRLPOOL a760fcf37e47235e3d21c8c852b65560894e29cfe3684bfee6e83f2d1d060dcaa41a2f9e60e41cbae55d9e5a2036518a5aad22cfd6f07b951a978e1ba2446eae
|
||||
DIST gdl-0.9.5.tar.gz 2341992 SHA256 cc9635e836b5ea456cad93f8a07d589aed8649668fbd14c4aad22091991137e2 SHA512 10f004956fedc1ae5a99a9398f82e64982267a59637fc8823591b9573df9ce136b303a0fcebd774475b9bea266a640e2b66cd590c85b57b6cf505f40448e0d3a WHIRLPOOL 6ef59fc574ce26e798d30e9b4fdec9f49b82933b500901c8013c60de884ed6601d99c58ecd17221191cea121914dffce4c59211ce86b2c43fb40d43ce7ce033b
|
||||
|
@ -1,76 +0,0 @@
|
||||
diff -Nur gdl-0.9.2.orig/CMakeLists.txt gdl-0.9.2/CMakeLists.txt
|
||||
--- gdl-0.9.2.orig/CMakeLists.txt 2011-12-22 20:18:17.000000000 +0000
|
||||
+++ gdl-0.9.2/CMakeLists.txt 2011-12-22 20:32:20.000000000 +0000
|
||||
@@ -94,6 +94,8 @@
|
||||
|
||||
set(GDL_DATA_DIR "/share/gnudatalanguage" CACHE PATH "Choose data install directory relative to CMAKE_INSTALL_PREFIX")
|
||||
|
||||
+set(BUNDLED_ANTLR OFF CACHE BOOL "Use bundled ANTLR grammar ?")
|
||||
+set(ANTLRDIR "" CACHE PATH "Specify the system ANTLR directory tree")
|
||||
|
||||
# check for 64-bit OS
|
||||
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
||||
@@ -143,9 +145,15 @@
|
||||
# mpi
|
||||
check_include_file(mpi.h HAVE_MPI_H)
|
||||
|
||||
-# SA: whithout it compilation of antlr fails if there's a conflicting
|
||||
-# version of antlr in system-wide directories
|
||||
-include_directories(src)
|
||||
+if(BUNDLED_ANTLR)
|
||||
+ # SA: whithout it compilation of antlr fails if there's a conflicting
|
||||
+ # version of antlr in system-wide directories
|
||||
+ include_directories(src)
|
||||
+else(BUNDLED_ANTLR)
|
||||
+ find_package(ANTLR QUIET)
|
||||
+ set(LIBRARIES ${LIBRARIES} ${ANTLR_LIBRARIES})
|
||||
+ include_directories(${ANTLR_INCLUDE_DIR})
|
||||
+endif(BUNDLED_ANTLR)
|
||||
|
||||
# Ncurses MANDATORY
|
||||
# -DNCURSESDIR=DIR
|
||||
diff -Nur gdl-0.9.2.orig/CMakeModules/FindANTLR.cmake gdl-0.9.2/CMakeModules/FindANTLR.cmake
|
||||
--- gdl-0.9.2.orig/CMakeModules/FindANTLR.cmake 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ gdl-0.9.2/CMakeModules/FindANTLR.cmake 2011-12-22 21:03:34.000000000 +0000
|
||||
@@ -0,0 +1,11 @@
|
||||
+
|
||||
+
|
||||
+find_library(ANTLR_LIBRARIES NAMES antlr)
|
||||
+find_path(ANTLR_INCLUDE_DIR NAMES antlr/ANTLRUtil.hpp)
|
||||
+include(FindPackageHandleStandardArgs)
|
||||
+find_package_handle_standard_args(ANTLR DEFAULT_MSG ANTLR_LIBRARIES ANTLR_INCLUDE_DIR)
|
||||
+
|
||||
+mark_as_advanced(
|
||||
+ANTLR_LIBRARIES
|
||||
+ANTLR_INCLUDE_DIR
|
||||
+)
|
||||
diff -Nur gdl-0.9.2.orig/src/CMakeLists.txt gdl-0.9.2/src/CMakeLists.txt
|
||||
--- gdl-0.9.2.orig/src/CMakeLists.txt 2011-12-22 20:18:17.000000000 +0000
|
||||
+++ gdl-0.9.2/src/CMakeLists.txt 2011-12-22 20:31:27.000000000 +0000
|
||||
@@ -224,9 +224,8 @@
|
||||
widget.cpp
|
||||
)
|
||||
|
||||
-add_subdirectory(antlr)
|
||||
|
||||
-include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/antlr ${CMAKE_BINARY_DIR})
|
||||
+include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR})
|
||||
link_directories(${LINK_DIRECTORIES})
|
||||
|
||||
if(PYTHON_MODULE) #libgdl
|
||||
@@ -237,8 +236,13 @@
|
||||
add_executable(gdl ${SOURCES})
|
||||
endif(PYTHON_MODULE)
|
||||
|
||||
-add_dependencies(gdl antlr) # be sure that antlr is built before gdl
|
||||
-target_link_libraries(gdl antlr) # link antlr against gdl
|
||||
+if(BUNDLED_ANTLR)
|
||||
+ add_subdirectory(antlr)
|
||||
+ include_directories(${CMAKE_SOURCE_DIR}/src/antlr)
|
||||
+ add_dependencies(gdl antlr) # be sure that antlr is built before gdl
|
||||
+ target_link_libraries(gdl antlr) # link antlr against gdl
|
||||
+endif(BUNDLED_ANTLR)
|
||||
+
|
||||
target_link_libraries(gdl ${LIBRARIES})
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
|
@ -1,27 +0,0 @@
|
||||
--- gdl-0.9.2.orig/CMakeLists.txt 2011-12-22 20:18:17.000000000 +0000
|
||||
+++ gdl-0.9.2/CMakeLists.txt 2011-12-24 06:12:08.000000000 +0000
|
||||
@@ -412,17 +420,17 @@
|
||||
find_package(Libproj4 QUIET)
|
||||
if(LIBPROJ4_FOUND)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${LIBPROJ4_LIBRARIES} ${GSL_LIBRARIES} m)
|
||||
- check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4_NEW)
|
||||
- if(USE_LIBPROJ4_NEW)
|
||||
+ check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4)
|
||||
+ if(USE_LIBPROJ4)
|
||||
set(USE_LIBPROJ4 1)
|
||||
- else(USE_LIBPROJ4_NEW)
|
||||
- check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4)
|
||||
- if(NOT USE_LIBPROJ4)
|
||||
+ else(USE_LIBPROJ4)
|
||||
+ check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4_NEW)
|
||||
+ if(NOT USE_LIBPROJ4_NEW)
|
||||
message(FATAL_ERROR "Libproj4 is required but was not found.\n"
|
||||
"Use -DLIBPROJ4DIR=DIR to specify the Libproj4 directory tree.\n"
|
||||
"Use -DLIBPRJ4=OFF to not use it.")
|
||||
- endif(NOT USE_LIBPROJ4)
|
||||
- endif(USE_LIBPROJ4_NEW)
|
||||
+ endif(NOT USE_LIBPROJ4_NEW)
|
||||
+ endif(USE_LIBPROJ4)
|
||||
include_directories(${LIBPROJ4_INCLUDE_DIR})
|
||||
set(LIBRARIES ${LIBRARIES} ${LIBPROJ4_LIBRARIES})
|
||||
set(CMAKE_REQUIRED_LIBRARIES)
|
@ -1,22 +0,0 @@
|
||||
--- gdl-0.9.2/CMakeLists.txt 2011-11-06 22:39:45.000000000 +0000
|
||||
+++ gdl-0.9.2/CMakeLists.txt.new 2012-06-21 00:02:42.000000000 +0100
|
||||
@@ -217,6 +217,19 @@
|
||||
add_definitions(${OpenMP_CXX_FLAGS})
|
||||
set(LIBRARIES ${LIBRARIES} ${OpenMP_CXX_FLAGS})
|
||||
endif(OPENMP_FOUND)
|
||||
+else(OPENMP)
|
||||
+ # we need to define those semaphore posix symbols, do it with threads libs
|
||||
+ find_package(Threads)
|
||||
+ if(THREADS_FOUND)
|
||||
+ set(LIBRARIES ${LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||
+ else(THREADS_FOUND)
|
||||
+ check_library_exists(rt sem_unlink "" HAVE_RT)
|
||||
+ if(HAVE_RT)
|
||||
+ set(LIBRARIES ${LIBRARIES} rt)
|
||||
+ else(HAVE_RT)
|
||||
+ message(FATAL_ERROR "Missing a POSIX semaphore symbols (rt or threads).\n")
|
||||
+ endif(HAVE_RT)
|
||||
+ endif(THREADS_FOUND)
|
||||
endif(OPENMP)
|
||||
|
||||
# GSL MANDATORY
|
@ -1,158 +0,0 @@
|
||||
diff -up gdl-0.9.3/CMakeLists.txt.plwidth gdl-0.9.3/CMakeLists.txt
|
||||
--- gdl-0.9.3/CMakeLists.txt.plwidth 2013-08-27 16:55:33.806600443 -0600
|
||||
+++ gdl-0.9.3/CMakeLists.txt 2013-08-27 16:55:36.589590528 -0600
|
||||
@@ -23,6 +23,7 @@ include(CheckLibraryExists)
|
||||
include(CheckFunctionExists)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckCSourceRuns)
|
||||
+include(CheckCXXSourceCompiles)
|
||||
include(FindPkgConfig)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
@@ -302,6 +303,18 @@ if(PLPLOT_FOUND)
|
||||
message(STATUS "warning, due to old plplot library, [XYZ]TICKFORMAT option for plot axis will not be supported.\n"
|
||||
"you should upgrade to plplot version > 5.9.6")
|
||||
endif(HAVE_PLPLOT_SLABELFUNC)
|
||||
+ set(CMAKE_REQUIRED_INCLUDES "${PLPLOT_INCLUDE_DIR}")
|
||||
+ set(CMAKE_REQUIRED_LIBRARIES "${PLPLOT_LIBRARIES}")
|
||||
+ check_cxx_source_compiles("
|
||||
+#include <plplot/plstream.h>
|
||||
+int main(int argc, char **argv) {
|
||||
+ plstream *p = new plstream();
|
||||
+ PLFLT w = 0.5;
|
||||
+ p->width(w);
|
||||
+}" HAVE_PLPLOT_WIDTH)
|
||||
+ if(HAVE_PLPLOT_WIDTH)
|
||||
+ set(HAVE_PLPLOT_WIDTH 1)
|
||||
+ endif(HAVE_PLPLOT_WIDTH)
|
||||
check_library_exists("${PLPLOT_LIBRARIES}" plstrl "" PLPLOT_PRIVATE_NOT_HIDDEN)
|
||||
if(PLPLOT_PRIVATE_NOT_HIDDEN)
|
||||
set(PLPLOT_PRIVATE_NOT_HIDDEN 1)
|
||||
diff -up gdl-0.9.3/config.h.cmake.plwidth gdl-0.9.3/config.h.cmake
|
||||
--- gdl-0.9.3/config.h.cmake.plwidth 2013-08-27 16:55:33.808600436 -0600
|
||||
+++ gdl-0.9.3/config.h.cmake 2013-08-27 16:55:36.589590528 -0600
|
||||
@@ -28,6 +28,7 @@
|
||||
#cmakedefine HAVE_NEXTTOWARD 1
|
||||
#cmakedefine HAVE_OLDPLPLOT 1
|
||||
#cmakedefine HAVE_PLPLOT_SLABELFUNC 1
|
||||
+#cmakedefine HAVE_PLPLOT_WIDTH 1
|
||||
#cmakedefine PLPLOT_PRIVATE_NOT_HIDDEN 1
|
||||
#cmakedefine PLPLOT_HAS_LEGEND
|
||||
#ifndef HAVE_STDINT_H
|
||||
diff -up gdl-0.9.3/src/plotting_contour.cpp.plwidth gdl-0.9.3/src/plotting_contour.cpp
|
||||
--- gdl-0.9.3/src/plotting_contour.cpp.plwidth 2013-08-27 16:55:33.883600169 -0600
|
||||
+++ gdl-0.9.3/src/plotting_contour.cpp 2013-08-27 16:55:36.590590524 -0600
|
||||
@@ -705,7 +705,11 @@ namespace lib
|
||||
actStream->pat(1,&ori,&spa);
|
||||
|
||||
if (docolors) actStream->Color ( ( *colors )[i%colors->N_Elements ( )], decomposed, (PLINT)colorindex_table_0_color );
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ if (dothick) actStream->width ( static_cast<PLFLT>(( *thick )[i%thick->N_Elements ( )]));
|
||||
+#else
|
||||
if (dothick) actStream->wid ( ( *thick )[i%thick->N_Elements ( )]);
|
||||
+#endif
|
||||
if (dostyle) gdlLineStyle(actStream, ( *style )[i%style->N_Elements ( )]);
|
||||
actStream->shade( map, xEl, yEl, isLog?doIt:NULL, xStart, xEnd, yStart, yEnd,
|
||||
clevel[i], clevel[i+1],
|
||||
@@ -788,7 +792,11 @@ namespace lib
|
||||
actStream->stransform(gdl3dTo2dTransformContour, &Data3d);
|
||||
}
|
||||
if (docolors) actStream->Color ( ( *colors )[i%colors->N_Elements ( )], decomposed, 2);
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ if (dothick) actStream->width ( static_cast<PLFLT>(( *thick )[i%thick->N_Elements ( )]));
|
||||
+#else
|
||||
if (dothick) actStream->wid ( ( *thick )[i%thick->N_Elements ( )]);
|
||||
+#endif
|
||||
if (dostyle) gdlLineStyle(actStream, ( *style )[i%style->N_Elements ( )]);
|
||||
if (dolabels) actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING,
|
||||
(PLINT)(*labels)[i%labels->N_Elements()] );
|
||||
diff -up gdl-0.9.3/src/plotting.cpp.plwidth gdl-0.9.3/src/plotting.cpp
|
||||
--- gdl-0.9.3/src/plotting.cpp.plwidth 2013-08-27 16:55:33.886600158 -0600
|
||||
+++ gdl-0.9.3/src/plotting.cpp 2013-08-27 16:58:33.707952697 -0600
|
||||
@@ -1891,7 +1891,11 @@ namespace lib
|
||||
DFloatGDL* charthickVect=e->GetKWAs<DFloatGDL>( charthickIx );
|
||||
charthick=(*charthickVect)[0];
|
||||
}
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ a->width(static_cast<PLFLT>(charthick));
|
||||
+#else
|
||||
a->wid(charthick);
|
||||
+#endif
|
||||
}
|
||||
|
||||
void gdlSetAxisCharsize(EnvT *e, GDLGStream *a, string axis)
|
||||
@@ -1919,7 +1923,11 @@ namespace lib
|
||||
|
||||
e->AssureFloatScalarKWIfPresent("THICK", thick);
|
||||
if ( thick<=0.0 ) thick=1.0;
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ a->width(static_cast<PLFLT>(thick));
|
||||
+#else
|
||||
a->wid(static_cast<PLINT>(floor(thick-0.5)));
|
||||
+#endif
|
||||
}
|
||||
|
||||
//LINESTYLE
|
||||
@@ -2932,7 +2940,11 @@ namespace lib
|
||||
a->smaj((PLFLT)OtherAxisSizeInMm, 1.0); //set base ticks to default 0.02 viewport converted to mm.
|
||||
a->smin((PLFLT)OtherAxisSizeInMm/2.0,1.0); //idem min (plplt defaults)
|
||||
//thick for box and ticks.
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ a->width(static_cast<PLFLT>(Thick));
|
||||
+#else
|
||||
a->wid(Thick);
|
||||
+#endif
|
||||
//ticks or grid eventually with style and length:
|
||||
if (abs(TickLen)<1e-6) Opt=""; else Opt="st"; //remove ticks if ticklen=0
|
||||
if (TickLen<0) {Opt+="i"; TickLen=-TickLen;}
|
||||
@@ -2977,7 +2989,11 @@ namespace lib
|
||||
else if (axis=="Y") a->box("", 0.0, 0 , Opt.c_str(), 0.0, 0);
|
||||
}
|
||||
//reset charsize & thick
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ a->width(1.0);
|
||||
+#else
|
||||
a->wid(1);
|
||||
+#endif
|
||||
a->sizeChar(1.0);
|
||||
}
|
||||
return 0;
|
||||
@@ -3120,7 +3136,11 @@ namespace lib
|
||||
a->smaj((PLFLT)OtherAxisSizeInMm, 1.0); //set base ticks to default 0.02 viewport converted to mm.
|
||||
a->smin((PLFLT)OtherAxisSizeInMm/2.0,1.0); //idem min (plplt defaults)
|
||||
//thick for box and ticks.
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ a->width(static_cast<PLFLT>(Thick));
|
||||
+#else
|
||||
a->wid(Thick);
|
||||
+#endif
|
||||
//ticks or grid eventually with style and length:
|
||||
if (abs(TickLen)<1e-6) Opt=""; else Opt="st"; //remove ticks if ticklen=0
|
||||
if (TickLen<0) {Opt+="i"; TickLen=-TickLen;}
|
||||
@@ -3145,7 +3165,11 @@ namespace lib
|
||||
else if (axis=="Z") a->box3("","",0,0,"","",0,0, Opt.c_str(), "", TickInterval, Minor);
|
||||
}
|
||||
//reset charsize & thick
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ a->width(1.0);
|
||||
+#else
|
||||
a->wid(1);
|
||||
+#endif
|
||||
a->sizeChar(1.0);
|
||||
}
|
||||
return 0;
|
||||
diff -up gdl-0.9.3/src/plotting_xyouts.cpp.plwidth gdl-0.9.3/src/plotting_xyouts.cpp
|
||||
--- gdl-0.9.3/src/plotting_xyouts.cpp.plwidth 2013-08-27 16:55:33.892600137 -0600
|
||||
+++ gdl-0.9.3/src/plotting_xyouts.cpp 2013-08-27 16:55:36.591590521 -0600
|
||||
@@ -339,7 +339,11 @@ namespace lib
|
||||
//plot!
|
||||
if (docharsize) actStream->sizeChar(( *size )[i%size->N_Elements ( )]);
|
||||
if (docolor) actStream->Color ( ( *color )[i%color->N_Elements ( )], decomposed, 2);
|
||||
+#if (HAVE_PLPLOT_WIDTH)
|
||||
+ if (docharthick) actStream->width ( static_cast<PLFLT>(( *charthick )[i%charthick->N_Elements ( )]));
|
||||
+#else
|
||||
if (docharthick) actStream->wid ( ( *charthick )[i%charthick->N_Elements ( )]);
|
||||
+#endif
|
||||
//orientation word is not orientation page depending on axes increment direction [0..1] vs. [1..0]
|
||||
PLFLT oriD=(( *orientation )[i%orientation->N_Elements ( )]); //ori DEVICE
|
||||
PLFLT oriW=oriD; //ori WORLD
|
@ -1,62 +0,0 @@
|
||||
diff -up gdl-0.9.4/src/gsl_matrix.cpp.gsl gdl-0.9.4/src/gsl_matrix.cpp
|
||||
--- gdl-0.9.4/src/gsl_matrix.cpp.gsl 2013-09-20 10:10:02.000000000 -0600
|
||||
+++ gdl-0.9.4/src/gsl_matrix.cpp 2013-10-03 13:50:41.089660703 -0600
|
||||
@@ -41,10 +41,11 @@ namespace lib {
|
||||
const int szdbl=sizeof(DDouble);
|
||||
const int szflt=sizeof(DFloat);
|
||||
const int szlng=sizeof(DLong);
|
||||
+ const int szlng64=sizeof(DLong64);
|
||||
|
||||
void ludc_pro( EnvT* e)
|
||||
{
|
||||
- // cout << szdbl << " " <<szflt << " " << szlng << endl;
|
||||
+ // cout << szdbl << " " <<szflt << " " << szlng << " " szlng64 << endl;
|
||||
|
||||
SizeT nParam=e->NParam(1);
|
||||
// if( nParam == 0)
|
||||
@@ -120,9 +121,15 @@ namespace lib {
|
||||
dimension dim1(&n, (SizeT) 1);
|
||||
BaseGDL** p1D = &e->GetPar( 1);
|
||||
GDLDelete((*p1D));
|
||||
- *p1D = new DLongGDL(dim1, BaseGDL::NOZERO);
|
||||
- memcpy(&(*(DLongGDL*) *p1D)[0], p->data,
|
||||
- p0->Dim(0)*szlng);
|
||||
+ if (sizeof(size_t) == szlng) {
|
||||
+ *p1D = new DLongGDL(dim1, BaseGDL::NOZERO);
|
||||
+ memcpy(&(*(DLongGDL*) *p1D)[0], p->data,
|
||||
+ p0->Dim(0)*szlng);
|
||||
+ } else {
|
||||
+ *p1D = new DLong64GDL(dim1, BaseGDL::NOZERO);
|
||||
+ memcpy(&(*(DLong64GDL*) *p1D)[0], p->data,
|
||||
+ p0->Dim(0)*szlng64);
|
||||
+ }
|
||||
|
||||
// gsl_matrix_free(mat);
|
||||
// gsl_permutation_free(p);
|
||||
@@ -189,10 +196,15 @@ namespace lib {
|
||||
GDLGuard<gsl_matrix> g1(mat,gsl_matrix_free);
|
||||
memcpy(mat->data, &(*p0D)[0], nEl*szdbl);
|
||||
|
||||
- DLongGDL* p1L =e->GetParAs<DLongGDL>(1);
|
||||
gsl_permutation *p = gsl_permutation_alloc (nEl1);
|
||||
GDLGuard<gsl_permutation> g2(p,gsl_permutation_free);
|
||||
- memcpy(p->data, &(*p1L)[0], nEl1*szlng);
|
||||
+ if (sizeof(size_t) == szlng) {
|
||||
+ DLongGDL* p1L =e->GetParAs<DLongGDL>(1);
|
||||
+ memcpy(p->data, &(*p1L)[0], nEl1*szlng);
|
||||
+ } else {
|
||||
+ DLong64GDL* p1L =e->GetParAs<DLong64GDL>(1);
|
||||
+ memcpy(p->data, &(*p1L)[0], nEl1*szlng64);
|
||||
+ }
|
||||
|
||||
DDoubleGDL *p2D = e->GetParAs<DDoubleGDL>(2);
|
||||
gsl_vector *b = gsl_vector_alloc(nEl2);
|
||||
@@ -222,7 +234,7 @@ namespace lib {
|
||||
DDoubleGDL* res = new DDoubleGDL( p2->Dim(), BaseGDL::NOZERO);
|
||||
memcpy(&(*res)[0], x->data, nEl1*szdbl);
|
||||
|
||||
-// gsl_matrix_free(mat);
|
||||
+// gsl_matrix_free(mat);Parameter
|
||||
// gsl_vector_free(x);
|
||||
// gsl_permutation_free(p);
|
||||
// b ???
|
@ -1,18 +0,0 @@
|
||||
CMakeModules/FindPlplot.cmake | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeModules/FindPlplot.cmake b/CMakeModules/FindPlplot.cmake
|
||||
index a503f8c..cdaeb24 100644
|
||||
--- a/CMakeModules/FindPlplot.cmake
|
||||
+++ b/CMakeModules/FindPlplot.cmake
|
||||
@@ -9,8 +9,8 @@
|
||||
#
|
||||
|
||||
|
||||
-find_library(PLPLOT_LIBRARY NAMES plplotd)
|
||||
-find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd)
|
||||
+find_library(PLPLOT_LIBRARY NAMES plplotd plplot)
|
||||
+find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd plplotcxx)
|
||||
set(PLPLOT_LIBRARIES ${PLPLOT_LIBRARY} ${PLPLOTCXX_LIBRARY})
|
||||
find_path(PLPLOT_INCLUDE_DIR NAMES plplot/plplot.h)
|
||||
include(FindPackageHandleStandardArgs)
|
@ -1,12 +0,0 @@
|
||||
diff -up gdl-0.9.4/src/pythongdl.cpp.python gdl-0.9.4/src/pythongdl.cpp
|
||||
--- gdl-0.9.4/src/pythongdl.cpp.python 2013-07-26 03:30:32.000000000 -0600
|
||||
+++ gdl-0.9.4/src/pythongdl.cpp 2013-09-30 10:24:27.092666180 -0600
|
||||
@@ -373,7 +373,7 @@ PyObject *GDLSub( PyObject *self, PyObje
|
||||
if( libCall)
|
||||
e = new EnvT( NULL, sub);
|
||||
else
|
||||
- e = new EnvUDT( NULL, sub);
|
||||
+ e = new EnvUDT( NULL, static_cast<DSubUD*>(sub));
|
||||
|
||||
Guard< EnvBaseT> e_guard( e);
|
||||
|
@ -1,17 +0,0 @@
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1fda8ee..e2170b2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -615,8 +615,8 @@ if(PYTHON OR PYTHON_MODULE)
|
||||
else()
|
||||
set(PythonLibs_FIND_VERSION 2)
|
||||
endif()
|
||||
- find_package(PythonLibs)
|
||||
include(FindPythonInterp)
|
||||
+ find_package(PythonLibs)
|
||||
endif()
|
||||
set(USE_PYTHON ${PYTHONLIBS_FOUND})
|
||||
if(PYTHONLIBS_FOUND)
|
@ -1,380 +0,0 @@
|
||||
diff -up gdl-0.9.4/src/allix.hpp.reorder gdl-0.9.4/src/allix.hpp
|
||||
--- gdl-0.9.4/src/allix.hpp.reorder 2012-12-11 10:39:35.000000000 -0700
|
||||
+++ gdl-0.9.4/src/allix.hpp 2013-10-04 10:59:22.666594845 -0600
|
||||
@@ -344,9 +344,9 @@ private:
|
||||
public:
|
||||
AllIxAllIndexedT( ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_)
|
||||
: ixList( ixList_)
|
||||
+ , varStride( varStride_)
|
||||
, acRank( acRank_)
|
||||
, nIx( nIx_)
|
||||
- , varStride( varStride_)
|
||||
{}
|
||||
~AllIxAllIndexedT() {}
|
||||
|
||||
@@ -384,11 +384,11 @@ private:
|
||||
public:
|
||||
AllIxNewMultiT( ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
|
||||
: ixList( ixList_)
|
||||
- , acRank( acRank_)
|
||||
- , nIx( nIx_)
|
||||
, varStride( varStride_)
|
||||
, nIterLimit( nIterLimit_)
|
||||
, stride( stride_)
|
||||
+ , acRank( acRank_)
|
||||
+ , nIx( nIx_)
|
||||
{
|
||||
add = 0;
|
||||
assert( varStride[0] == 1);
|
||||
@@ -440,10 +440,10 @@ private:
|
||||
public:
|
||||
AllIxNewMulti2DT( ArrayIndexVectorT* ixList_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
|
||||
: ixList( ixList_)
|
||||
- , nIx( nIx_)
|
||||
, varStride( varStride_)
|
||||
, nIterLimit( nIterLimit_)
|
||||
, stride( stride_)
|
||||
+ , nIx( nIx_)
|
||||
{
|
||||
add = 0;
|
||||
if( !(*ixList)[0]->Indexed())
|
||||
@@ -499,11 +499,11 @@ private:
|
||||
public:
|
||||
AllIxNewMultiNoneIndexedT( ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
|
||||
: ixList( ixList_)
|
||||
- , acRank( acRank_)
|
||||
- , nIx( nIx_)
|
||||
, varStride( varStride_)
|
||||
, nIterLimit( nIterLimit_)
|
||||
, stride( stride_)
|
||||
+ , acRank( acRank_)
|
||||
+ , nIx( nIx_)
|
||||
{
|
||||
assert( varStride[0] == 1);
|
||||
add = 0;
|
||||
@@ -548,10 +548,10 @@ private:
|
||||
public:
|
||||
AllIxNewMultiNoneIndexed2DT( ArrayIndexVectorT* ixList_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
|
||||
: ixList( ixList_)
|
||||
- , nIx( nIx_)
|
||||
, varStride( varStride_)
|
||||
, nIterLimit( nIterLimit_)
|
||||
, stride( stride_)
|
||||
+ , nIx( nIx_)
|
||||
{
|
||||
assert( varStride[0] == 1);
|
||||
ixListStride[0] = (*ixList)[0]->GetStride();
|
||||
@@ -593,11 +593,11 @@ public:
|
||||
AllIxNewMultiOneVariableIndexNoIndexT( RankT gt1Rank, SizeT add_,
|
||||
ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
|
||||
: ixList( ixList_)
|
||||
- , acRank( acRank_)
|
||||
- , nIx( nIx_)
|
||||
, varStride( varStride_)
|
||||
, nIterLimit( nIterLimit_)
|
||||
, stride( stride_)
|
||||
+ , acRank( acRank_)
|
||||
+ , nIx( nIx_)
|
||||
, add( add_)
|
||||
, variableIndex( gt1Rank)
|
||||
{
|
||||
@@ -642,11 +642,11 @@ public:
|
||||
SizeT acRank_, SizeT nIx_, const SizeT* varStride_,
|
||||
SizeT* nIterLimit_, SizeT* stride_)
|
||||
: ixList( ixList_)
|
||||
- , acRank( acRank_)
|
||||
- , nIx( nIx_)
|
||||
, varStride( varStride_)
|
||||
, nIterLimit( nIterLimit_)
|
||||
, stride( stride_)
|
||||
+ , acRank( acRank_)
|
||||
+ , nIx( nIx_)
|
||||
, add( add_)
|
||||
, variableIndex( gt1Rank)
|
||||
{
|
||||
diff -up gdl-0.9.4/src/arrayindex.hpp.reorder gdl-0.9.4/src/arrayindex.hpp
|
||||
--- gdl-0.9.4/src/arrayindex.hpp.reorder 2013-09-17 10:46:19.000000000 -0600
|
||||
+++ gdl-0.9.4/src/arrayindex.hpp 2013-10-04 11:00:58.849879562 -0600
|
||||
@@ -303,7 +303,7 @@ private:
|
||||
RangeT s;
|
||||
BaseGDL* rawData; // for overloaded object indexing
|
||||
|
||||
- CArrayIndexScalar( const CArrayIndexScalar& c): s( c.s), sInit( c.sInit)
|
||||
+ CArrayIndexScalar( const CArrayIndexScalar& c): sInit( c.sInit), s( c.s)
|
||||
{
|
||||
assert( c.rawData != NULL);
|
||||
rawData = c.rawData->Dup();
|
||||
diff -up gdl-0.9.4/src/arrayindexlistnoassoct.hpp.reorder gdl-0.9.4/src/arrayindexlistnoassoct.hpp
|
||||
--- gdl-0.9.4/src/arrayindexlistnoassoct.hpp.reorder 2013-07-04 17:24:44.000000000 -0600
|
||||
+++ gdl-0.9.4/src/arrayindexlistnoassoct.hpp 2013-10-04 11:24:02.893867004 -0600
|
||||
@@ -59,8 +59,8 @@ public:
|
||||
{ nParam = 0;}
|
||||
|
||||
ArrayIndexListOneNoAssocT( const ArrayIndexListOneNoAssocT& cp):
|
||||
- cleanupIx(),
|
||||
ArrayIndexListT( cp),
|
||||
+ cleanupIx(),
|
||||
ix( cp.ix->Dup()),
|
||||
allIx( NULL)
|
||||
{
|
||||
diff -up gdl-0.9.4/src/arrayindexlistt.hpp.reorder gdl-0.9.4/src/arrayindexlistt.hpp
|
||||
--- gdl-0.9.4/src/arrayindexlistt.hpp.reorder 2013-09-17 10:46:19.000000000 -0600
|
||||
+++ gdl-0.9.4/src/arrayindexlistt.hpp 2013-10-04 11:23:35.607069888 -0600
|
||||
@@ -130,8 +130,8 @@ public:
|
||||
{ nParam = 0;}
|
||||
|
||||
ArrayIndexListOneT( const ArrayIndexListOneT& cp):
|
||||
- cleanupIx(),
|
||||
ArrayIndexListT( cp),
|
||||
+ cleanupIx(),
|
||||
ix( cp.ix->Dup()),
|
||||
allIx( NULL)
|
||||
{
|
||||
diff -up gdl-0.9.4/src/deviceps.hpp.reorder gdl-0.9.4/src/deviceps.hpp
|
||||
--- gdl-0.9.4/src/deviceps.hpp.reorder 2013-07-03 15:48:06.000000000 -0600
|
||||
+++ gdl-0.9.4/src/deviceps.hpp 2013-10-04 13:14:48.283746779 -0600
|
||||
@@ -441,9 +441,9 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
- DevicePS(): Graphics(), fileName( "gdl.ps"), actStream( NULL), color(0),
|
||||
- decomposed( 0), encapsulated(false), scale(1.), XPageSize(17.78), YPageSize(12.7),
|
||||
- XOffset(0.0),YOffset(0.0)
|
||||
+ DevicePS(): Graphics(), fileName( "gdl.ps"), actStream( NULL),
|
||||
+ XPageSize(17.78), YPageSize(12.7), XOffset(0.0),YOffset(0.0),
|
||||
+ color(0), decomposed( 0), encapsulated(false), scale(1.)
|
||||
{
|
||||
name = "PS";
|
||||
|
||||
diff -up gdl-0.9.4/src/dnode.cpp.reorder gdl-0.9.4/src/dnode.cpp
|
||||
--- gdl-0.9.4/src/dnode.cpp.reorder 2012-09-18 08:19:18.000000000 -0600
|
||||
+++ gdl-0.9.4/src/dnode.cpp 2013-10-04 12:02:48.601416601 -0600
|
||||
@@ -55,9 +55,10 @@ DNode::DNode( const DNode& cp):
|
||||
// keepRight( false),
|
||||
CommonAST( cp), //down(), right(),
|
||||
lineNumber( cp.getLine()), cData(NULL),
|
||||
- var(cp.var), arrIxList(NULL),arrIxListNoAssoc(NULL),
|
||||
+ var(cp.var),
|
||||
libFun( cp.libFun),
|
||||
libPro( cp.libPro),
|
||||
+ arrIxList(NULL),arrIxListNoAssoc(NULL),
|
||||
labelStart( cp.labelStart), labelEnd( cp.labelEnd)
|
||||
{
|
||||
if( cp.cData != NULL) cData = cp.cData->Dup();
|
||||
diff -up gdl-0.9.4/src/dnode.hpp.reorder gdl-0.9.4/src/dnode.hpp
|
||||
diff -up gdl-0.9.4/src/dpro.cpp.reorder gdl-0.9.4/src/dpro.cpp
|
||||
--- gdl-0.9.4/src/dpro.cpp.reorder 2013-09-17 03:03:25.000000000 -0600
|
||||
+++ gdl-0.9.4/src/dpro.cpp 2013-10-04 13:05:23.169223727 -0600
|
||||
@@ -200,8 +200,8 @@ DSubUD::~DSubUD()
|
||||
DSubUD::DSubUD(const string& n,const string& o,const string& f) :
|
||||
DSub(n,o), file(f),
|
||||
tree( NULL),
|
||||
- labelList(),
|
||||
compileOpt(GDLParser::NONE),
|
||||
+ labelList(),
|
||||
nForLoops( 0)
|
||||
{
|
||||
if( o != "")
|
||||
diff -up gdl-0.9.4/src/envt.cpp.reorder gdl-0.9.4/src/envt.cpp
|
||||
--- gdl-0.9.4/src/envt.cpp.reorder 2013-09-25 05:55:21.000000000 -0600
|
||||
+++ gdl-0.9.4/src/envt.cpp 2013-10-04 13:08:17.081114086 -0600
|
||||
@@ -107,15 +107,15 @@ void EnvUDT::operator delete( void *ptr)
|
||||
|
||||
|
||||
EnvBaseT::EnvBaseT( ProgNodeP cN, DSub* pro_):
|
||||
- env(),
|
||||
toDestroy(),
|
||||
+ env(),
|
||||
pro(pro_),
|
||||
- extra(NULL),
|
||||
- newEnv(NULL),
|
||||
callingNode( cN),
|
||||
lineNumber( 0),
|
||||
- obj(false)
|
||||
- ,ptrToReturnValue(NULL)
|
||||
+ obj(false),
|
||||
+ extra(NULL),
|
||||
+ newEnv(NULL),
|
||||
+ ptrToReturnValue(NULL)
|
||||
//, toDestroyInitialIndex( toDestroy.size())
|
||||
{}
|
||||
|
||||
diff -up gdl-0.9.4/src/envt.hpp.reorder gdl-0.9.4/src/envt.hpp
|
||||
--- gdl-0.9.4/src/envt.hpp.reorder 2013-09-26 04:47:48.000000000 -0600
|
||||
+++ gdl-0.9.4/src/envt.hpp 2013-10-04 10:55:21.892428311 -0600
|
||||
@@ -863,7 +863,7 @@ public:
|
||||
typedef SizeT size_type;
|
||||
typedef EnvUDT* pointer_type;
|
||||
|
||||
- EnvStackT(): sz(defaultStackDepth), top(0)
|
||||
+ EnvStackT(): top(0), sz(defaultStackDepth)
|
||||
{
|
||||
envStackFrame = new EnvUDT* [ sz+1];
|
||||
envStack = envStackFrame + 1;
|
||||
diff -up gdl-0.9.4/src/gdlexception.cpp.reorder gdl-0.9.4/src/gdlexception.cpp
|
||||
--- gdl-0.9.4/src/gdlexception.cpp.reorder 2013-06-23 17:07:32.000000000 -0600
|
||||
+++ gdl-0.9.4/src/gdlexception.cpp 2013-10-04 14:00:32.102348401 -0600
|
||||
@@ -43,9 +43,9 @@ GDLException::GDLException(DLong eC, con
|
||||
errorNodeP( NULL),
|
||||
errorCode(eC),
|
||||
line( 0), col( 0), prefix( pre),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if(decorate && interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
@@ -97,9 +97,9 @@ GDLException::GDLException(const RefDNod
|
||||
errorNodeP( NULL),
|
||||
errorCode(-1),
|
||||
line( 0), col( 0), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if(interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
@@ -122,9 +122,9 @@ GDLException::GDLException(DLong eC, con
|
||||
errorNodeP( NULL),
|
||||
errorCode(eC),
|
||||
line( 0), col( 0), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if(interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
@@ -148,9 +148,9 @@ GDLException::GDLException(const ProgNod
|
||||
errorNodeP( eN),
|
||||
errorCode(-1),
|
||||
line( 0), col( 0), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if( overWriteNode && interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
@@ -177,9 +177,9 @@ GDLException::GDLException(DLong eC, con
|
||||
errorNodeP( eN),
|
||||
errorCode(eC),
|
||||
line( 0), col( 0), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if( overWriteNode && interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
@@ -207,9 +207,9 @@ GDLException::GDLException(SizeT l, Size
|
||||
errorNodeP( NULL),
|
||||
errorCode(-1),
|
||||
line( l), col( c), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if(interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
@@ -232,8 +232,8 @@ GDLException::GDLException(DLong eC, Siz
|
||||
errorNodeP( NULL),
|
||||
errorCode(eC),
|
||||
line( l), col( c), prefix( true),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
+ targetEnv( NULL)
|
||||
{
|
||||
if(interpreter!=NULL && interpreter->CallStack().size()>0)
|
||||
{
|
||||
diff -up gdl-0.9.4/src/gdlexception.hpp.reorder gdl-0.9.4/src/gdlexception.hpp
|
||||
--- gdl-0.9.4/src/gdlexception.hpp.reorder 2013-06-23 17:07:32.000000000 -0600
|
||||
+++ gdl-0.9.4/src/gdlexception.hpp 2013-10-04 11:12:58.332125288 -0600
|
||||
@@ -66,18 +66,18 @@ public:
|
||||
errorNodeP( NULL),
|
||||
errorCode(-1),
|
||||
line( 0), col( 0), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{}
|
||||
GDLException( DLong eC): ANTLRException(),
|
||||
errorNode(static_cast<RefDNode>(antlr::nullAST)),
|
||||
errorNodeP( NULL),
|
||||
errorCode(eC),
|
||||
line( 0), col( 0), prefix( true),
|
||||
+ arrayexprIndexeeFailed(false),
|
||||
ioException( false),
|
||||
- targetEnv( NULL),
|
||||
- arrayexprIndexeeFailed(false)
|
||||
+ targetEnv( NULL)
|
||||
{}
|
||||
GDLException(const std::string& s, bool pre = true, bool decorate=true);
|
||||
GDLException(const RefDNode eN, const std::string& s);
|
||||
diff -up gdl-0.9.4/src/prognode.cpp.reorder gdl-0.9.4/src/prognode.cpp
|
||||
--- gdl-0.9.4/src/prognode.cpp.reorder 2013-09-27 18:47:49.000000000 -0600
|
||||
+++ gdl-0.9.4/src/prognode.cpp 2013-10-04 14:01:11.490342867 -0600
|
||||
@@ -54,19 +54,19 @@ return nonCopyNodeLookupArray;
|
||||
|
||||
// tanslation RefDNode -> ProgNode
|
||||
ProgNode::ProgNode( const RefDNode& refNode):
|
||||
+ ttype( refNode->getType()),
|
||||
+ text( refNode->getText()),
|
||||
keepRight( false),
|
||||
keepDown( false),
|
||||
breakTarget( NULL),
|
||||
- ttype( refNode->getType()),
|
||||
- text( refNode->getText()),
|
||||
down( NULL),
|
||||
right( NULL),
|
||||
- lineNumber( refNode->getLine()),
|
||||
cData( refNode->StealCData()), // stealing is crucial here because references might exist
|
||||
+ var( refNode->var),
|
||||
// as arrayindices
|
||||
- libPro( refNode->libPro),
|
||||
libFun( refNode->libFun),
|
||||
- var( refNode->var),
|
||||
+ libPro( refNode->libPro),
|
||||
+ lineNumber( refNode->getLine()),
|
||||
arrIxList( refNode->StealArrIxList()),
|
||||
arrIxListNoAssoc( refNode->StealArrIxNoAssocList()),
|
||||
// arrIxList( refNode->CloneArrIxList()),
|
||||
diff -up gdl-0.9.4/src/prognodeexpr.cpp.reorder gdl-0.9.4/src/prognodeexpr.cpp
|
||||
--- gdl-0.9.4/src/prognodeexpr.cpp.reorder 2013-09-26 05:08:39.000000000 -0600
|
||||
+++ gdl-0.9.4/src/prognodeexpr.cpp 2013-10-04 13:20:36.660155916 -0600
|
||||
@@ -49,18 +49,18 @@ BinaryExprNC::BinaryExprNC( const RefDNo
|
||||
}
|
||||
|
||||
ProgNode::ProgNode(): // for NULLProgNode
|
||||
+ ttype( antlr::Token::NULL_TREE_LOOKAHEAD),
|
||||
+ text( "NULLProgNode"),
|
||||
keepRight( false),
|
||||
keepDown( false),
|
||||
breakTarget( NULL),
|
||||
- ttype( antlr::Token::NULL_TREE_LOOKAHEAD),
|
||||
- text( "NULLProgNode"),
|
||||
down( NULL),
|
||||
right( NULL),
|
||||
- lineNumber( 0),
|
||||
cData( NULL),
|
||||
- libPro( NULL),
|
||||
- libFun( NULL),
|
||||
var( NULL),
|
||||
+ libFun( NULL),
|
||||
+ libPro( NULL),
|
||||
+ lineNumber( 0),
|
||||
labelStart( 0),
|
||||
labelEnd( 0)
|
||||
{}
|
@ -1,41 +0,0 @@
|
||||
CMakeLists.txt | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c4b3278..f9ed49d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -637,17 +637,17 @@ if(LIBPROJ4)
|
||||
if(LIBPROJ4_FOUND)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${LIBPROJ4_LIBRARIES} ${GSL_LIBRARIES} m)
|
||||
|
||||
- check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4_NEW)
|
||||
- if(USE_LIBPROJ4_NEW)
|
||||
+ check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4)
|
||||
+ if(USE_LIBPROJ4)
|
||||
# check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4)
|
||||
# if(USE_LIBPROJ4)
|
||||
|
||||
# define USE_LIB_PROJ4 in any case
|
||||
set(USE_LIBPROJ4 1)
|
||||
|
||||
- else(USE_LIBPROJ4_NEW)
|
||||
- check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4)
|
||||
- if(NOT USE_LIBPROJ4)
|
||||
+ else(USE_LIBPROJ4)
|
||||
+ check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4_NEW)
|
||||
+ if(NOT USE_LIBPROJ4_NEW)
|
||||
# else(USE_LIBPROJ4)
|
||||
# check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4_NEW)
|
||||
# if(NOT USE_LIBPROJ4_NEW)
|
||||
@@ -656,8 +656,8 @@ if(LIBPROJ4)
|
||||
"Use -DLIBPROJ4DIR=DIR to specify the Libproj4 directory tree.\n"
|
||||
"Use -DLIBPRJ4=OFF to not use it.")
|
||||
|
||||
- endif(NOT USE_LIBPROJ4)
|
||||
- endif(USE_LIBPROJ4_NEW)
|
||||
+ endif(NOT USE_LIBPROJ4_NEW)
|
||||
+ endif(USE_LIBPROJ4)
|
||||
# endif(NOT USE_LIBPROJ4_NEW)
|
||||
# endif(USE_LIBPROJ4)
|
||||
|
@ -1,161 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
WX_GTK_VER="2.8"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils eutils python-r1 wxwidgets toolchain-funcs virtualx
|
||||
|
||||
DESCRIPTION="GNU Data Language"
|
||||
HOMEPAGE="http://gnudatalanguage.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="+eigen fftw grib gshhs hdf hdf5 imagemagick netcdf openmp
|
||||
proj postscript python static-libs udunits wxwidgets"
|
||||
|
||||
RDEPEND="
|
||||
sci-libs/gsl:0=
|
||||
sci-libs/plplot:0=[-dynamic]
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
sys-libs/zlib:0=
|
||||
x11-libs/libX11:0=
|
||||
fftw? ( sci-libs/fftw:3.0= )
|
||||
grib? ( sci-libs/grib_api:0= )
|
||||
gshhs? ( sci-geosciences/gshhs-data sci-geosciences/gshhs:0= )
|
||||
hdf? ( sci-libs/hdf:0= )
|
||||
hdf5? ( sci-libs/hdf5:0= )
|
||||
imagemagick? (
|
||||
|| (
|
||||
media-gfx/graphicsmagick[cxx]
|
||||
media-gfx/imagemagick[cxx]
|
||||
)
|
||||
)
|
||||
netcdf? ( sci-libs/netcdf )
|
||||
proj? ( sci-libs/proj )
|
||||
postscript? ( dev-libs/pslib )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
)
|
||||
udunits? ( sci-libs/udunits )
|
||||
wxwidgets? ( x11-libs/wxGTK:2.8[X,-odbc] )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-java/antlr-2.7.7-r5:0[cxx,java,script]
|
||||
virtual/pkgconfig
|
||||
eigen? ( dev-cpp/eigen:3 )"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/0.9.2-antlr.patch
|
||||
"${FILESDIR}"/0.9.2-include.patch
|
||||
"${FILESDIR}"/0.9.2-proj4.patch
|
||||
"${FILESDIR}"/0.9.2-semaphore.patch
|
||||
"${FILESDIR}"/0.9.3-plwidth.patch
|
||||
"${FILESDIR}"/0.9.4-gsl.patch
|
||||
"${FILESDIR}"/0.9.4-python.patch
|
||||
"${FILESDIR}"/0.9.4-reorder.patch
|
||||
"${FILESDIR}"/0.9.4-plplot.patch
|
||||
"${FILESDIR}"/0.9.4-python2.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use openmp && [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp && \
|
||||
die "You have openmp enabled but your current g++ does not support it"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx
|
||||
|
||||
# make sure antlr includes are from system and rebuild the sources with it
|
||||
# https://sourceforge.net/tracker/?func=detail&atid=618685&aid=3465878&group_id=97659
|
||||
rm -r src/antlr || die
|
||||
einfo "Regenerating grammar"
|
||||
pushd src > /dev/null
|
||||
local i
|
||||
for i in *.g; do antlr ${i} || die ; done
|
||||
popd > /dev/null
|
||||
|
||||
# gentoo: use proj instead of libproj4 (libproj4 last update: 2004)
|
||||
sed -i \
|
||||
-e 's:proj4:proj:' \
|
||||
-e 's:lib_proj\.h:proj_api\.h:g' \
|
||||
CMakeModules/FindLibproj4.cmake src/math_utl.hpp || die
|
||||
|
||||
# gentoo: avoid install files in datadir directory
|
||||
sed -i \
|
||||
-e '/AUTHORS/d' \
|
||||
CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# MPI is still very buggy
|
||||
# x11=off does not compile
|
||||
local mycmakeargs=(
|
||||
-DMPICH=OFF
|
||||
-DBUNDLED_ANTLR=OFF
|
||||
-DX11=ON
|
||||
$(cmake-utils_use fftw)
|
||||
$(cmake-utils_use eigen EIGEN3)
|
||||
$(cmake-utils_use grib)
|
||||
$(cmake-utils_use gshhs)
|
||||
$(cmake-utils_use hdf)
|
||||
$(cmake-utils_use hdf5)
|
||||
$(cmake-utils_use netcdf)
|
||||
$(cmake-utils_use openmp)
|
||||
$(cmake-utils_use proj LIBPROJ4)
|
||||
$(cmake-utils_use postscript PSLIB)
|
||||
$(cmake-utils_use udunits)
|
||||
$(cmake-utils_use wxwidgets)
|
||||
)
|
||||
if use imagemagick; then
|
||||
if has_version media-gfx/graphicsmagick[cxx]; then
|
||||
mycmakeargs+=( -DGRAPHICSMAGICK=ON -DMAGICK=OFF )
|
||||
else
|
||||
mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=ON )
|
||||
fi
|
||||
else
|
||||
mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=OFF )
|
||||
fi
|
||||
configuration() {
|
||||
mycmakeargs+=( $@ )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
configuration -DPYTHON_MODULE=OFF -DPYTHON=OFF
|
||||
use python && python_foreach_impl configuration -DPYTHON_MODULE=ON -DPYTHON=ON
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use python && python_foreach_impl cmake-utils_src_make
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# there is check target instead of the ctest to define some LDPATH
|
||||
Xemake -C "${BUILD_DIR}" check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
if use python; then
|
||||
installation() {
|
||||
mv src/libgdl.so GDL.so || die
|
||||
python_domodule GDL.so
|
||||
}
|
||||
python_foreach_impl run_in_build_dir installation
|
||||
dodoc PYTHON.txt
|
||||
fi
|
||||
|
||||
echo "GDL_PATH=\"+${EROOT%/}/usr/share/gnudatalanguage\"" > 50gdl
|
||||
doenvd 50gdl
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A collection of tools for internationalizing Python applications"
|
||||
HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
DEPEND="${DEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( >=dev-python/pytest-2.3.5[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Make the tests use implementation-specific datadir,
|
||||
# because they try to write in it.
|
||||
sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \
|
||||
-i tests/messages/test_frontend.py || die
|
||||
sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create implementation-specific datadir for tests.
|
||||
cp -R -l tests/messages/data "${BUILD_DIR}"/ || die
|
||||
export BUILD_DIR
|
||||
py.test || die
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="The httplib2 caching algorithms packaged up for use with requests"
|
||||
HOMEPAGE="https://github.com/ionrock/cachecontrol https://pypi.python.org/pypi/cachecontrol/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="redis test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
>=dev-python/lockfile-0.9[${PYTHON_USEDEP}]
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )"
|
||||
DEPENDS="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_test() {
|
||||
py.test -v || die
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A configurable sidebar-enabled Sphinx theme"
|
||||
HOMEPAGE="https://github.com/bitprophet/alabaster"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python package for providing Mozilla's CA Bundle"
|
||||
HOMEPAGE="http://certifi.io/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# DO NOT ADD pypy to PYTHON_COMPAT
|
||||
# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Foreign Function Interface for Python calling C code"
|
||||
HOMEPAGE="http://cffi.readthedocs.org/ https://pypi.python.org/pypi/cffi"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libffi
|
||||
dev-python/pycparser[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# Avoid race on _configtest.c (distutils/command/config.py:_gen_temp_sourcefile)
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test -x -v --ignore testing/test_zintegration.py c/ testing/ || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Universal encoding detector"
|
||||
HOMEPAGE="https://github.com/chardet/chardet https://pypi.python.org/pypi/chardet"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python package for creating beautiful command line interfaces"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="http://click.pocoo.org/ https://pypi.python.org/pypi/click"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed d'loading
|
||||
sed -e "s/, 'sphinx.ext.intersphinx'//" -i docs/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Makes ANSI escape character sequences for producing colored terminal text & cursor positioning"
|
||||
HOMEPAGE="https://code.google.com/p/colorama/ https://pypi.python.org/pypi/colorama https://github.com/tartley/colorama"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples"
|
||||
|
||||
python_install_all() {
|
||||
use examples && local EXAMPLES=( demos/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Code coverage measurement for Python"
|
||||
HOMEPAGE="http://nedbatchelder.com/code/coverage/ https://pypi.python.org/pypi/coverage"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2.7 ]]; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=${PN/-/_}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Test vectors for the cryptography package"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/cryptography-vectors/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# only works with >=pypy-2.6
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Library providing cryptographic recipes and primitives"
|
||||
HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="libressl test"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
$(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]' 'python*')
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3 pypy)
|
||||
>=dev-python/idna-2.0[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/ipaddress[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
>=dev-python/pyasn1-0.1.8[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/iso8601[${PYTHON_USEDEP}]
|
||||
dev-python/pretend[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-2.4.2[${PYTHON_USEDEP}]
|
||||
<dev-python/pytest-2.8[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
|
||||
|
||||
python_test() {
|
||||
py.test -v -v -x || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PN="Cython"
|
||||
MY_P="${MY_PN}-${PV/_/}"
|
||||
|
||||
DESCRIPTION="A Python to C compiler"
|
||||
HOMEPAGE="http://www.cython.org/ https://pypi.python.org/pypi/Cython"
|
||||
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND=""
|
||||
# On testing, setuptools invokes an error in running the testsuite cited in a number of recent bugs
|
||||
# spanning several packages. This bug has been fixed in the recent release of version 9.1
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-9.1[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV%_*}"
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS="${CFLAGS}"
|
||||
local CXXFLAGS="${CXXFLAGS}"
|
||||
append-flags -fno-strict-aliasing
|
||||
fi
|
||||
|
||||
# Python gets confused when it is in sys.path before build.
|
||||
local PYTHONPATH=
|
||||
export PYTHONPATH
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && unset XDG_CONFIG_HOME && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
tc-export CC
|
||||
"${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt )
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
use examples && local EXAMPLES=( Demos/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Distribution utilities"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/distlib https://bitbucket.org/vinay.sajip/distlib https://github.com/vsajip/distlib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
python_test() {
|
||||
sed \
|
||||
-e '/PIP_AVAILABLE/s:True:False:g' \
|
||||
-i tests/*py || die
|
||||
PYTHONHASHSEED=0 esetup.py test
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python Documentation Utilities"
|
||||
HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.python.org/pypi/docutils"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 GPL-3 public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/pygments[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DISTUTILS_NO_PARALLEL_BUILD=1
|
||||
|
||||
python_compile_all() {
|
||||
# Generate html docs from reStructured text sources.
|
||||
|
||||
# Place html4css1.css in base directory to ensure that the generated reference to it is correct.
|
||||
cp docutils/writers/html4css1/html4css1.css . || die
|
||||
|
||||
cd tools || die
|
||||
"${PYTHON}" buildhtml.py --input-encoding=utf-8 \
|
||||
--stylesheet-path=../html4css1.css, --traceback ../docs || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if python_is_python3; then
|
||||
pushd test3 > /dev/null || die
|
||||
else
|
||||
pushd test > /dev/null || die
|
||||
fi
|
||||
"${PYTHON}" alltests.py || die "Testing failed with ${EPYTHON}"
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
# Install tools.
|
||||
python_doscript tools/{buildhtml,quicktest}.py
|
||||
}
|
||||
|
||||
install_txt_doc() {
|
||||
local doc="${1}"
|
||||
local dir="txt/$(dirname ${doc})"
|
||||
docinto "${dir}"
|
||||
dodoc "${doc}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( *.txt )
|
||||
local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
local doc
|
||||
while IFS= read -r -d '' doc; do
|
||||
install_txt_doc "${doc}"
|
||||
done < <(find docs tools -name '*.txt' -print0)
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Useful extra bits for Python that should be in the standard library"
|
||||
HOMEPAGE="https://github.com/testing-cabal/extras/ https://pypi.python.org/pypi/extras/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/testtools[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" ${PN}/tests/test_extras.py || die
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Fixtures, reusable state for writing clean tests and more"
|
||||
HOMEPAGE="https://launchpad.net/python-fixtures https://pypi.python.org/pypi/fixtures"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
# nose not listed but provides coverage output of tests
|
||||
# run of test files by python lacks any output except on fail
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-0.11[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-0.9.22[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/mock[${PYTHON_USEDEP}] )"
|
||||
#DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_test() {
|
||||
emake check
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="HTML parser based on the HTML5 specification"
|
||||
HOMEPAGE="https://github.com/html5lib/html5lib-python/ https://html5lib.readthedocs.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
nosetests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Internationalized Domain Names in Applications (IDNA)"
|
||||
HOMEPAGE="https://github.com/kjd/idna"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="IPv4/IPv6 manipulation library, a port of the ipaddress module"
|
||||
HOMEPAGE="https://github.com/phihag/ipaddress"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="PSF-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" test_ipaddress.py || die
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simple module to parse ISO 8601 dates"
|
||||
HOMEPAGE="https://code.google.com/p/pyiso8601/ https://pypi.python.org/pypi/iso8601"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -m pytest --verbose ${PN} || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit eutils distutils-r1
|
||||
|
||||
MY_PN=Jinja2
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure Python"
|
||||
HOMEPAGE="http://jinja.pocoo.org/ https://pypi.python.org/pypi/Jinja2"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
!dev-python/jinja:compat"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
# XXX: handle Babel better?
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
wrap_opts() {
|
||||
local mydistutilsargs=()
|
||||
|
||||
if [[ ${EPYTHON} == python* ]]; then
|
||||
mydistutilargs+=( --with-debugsupport )
|
||||
fi
|
||||
|
||||
"${@}"
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
wrap_opts distutils-r1_python_compile
|
||||
if [[ ${EPYTHON} == python3.2 ]]; then
|
||||
2to3 --no-diffs -n -w -f unicode "${BUILD_DIR}/lib" || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins ext/Vim/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! has_version dev-python/Babel; then
|
||||
elog "For i18n support, please emerge dev-python/Babel."
|
||||
fi
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Backports of the linecache module"
|
||||
HOMEPAGE="https://github.com/testing-cabal/linecache2"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/pbr[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/fixtures[${PYTHON_USEDEP}]
|
||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -m unittest2 discover || die "tests failed under ${EPYTHON}"
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Platform-independent file locking module"
|
||||
HOMEPAGE="https://launchpad.net/pylockfile https://pypi.python.org/pypi/lockfile"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/pbr[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=""
|
||||
|
||||
DOCS=( ACKS README RELEASE-NOTES )
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
emake -C doc/source html || die "Generation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# "${PYTHON}" test/test_lockfile.py yeilds no informative coverage output
|
||||
nosetests || die "test_lockfile failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/source/.build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="MarkupSafe"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Implements a XML/HTML/XHTML Markup safe string for Python"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/MarkupSafe"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
if [[ ${EPYTHON} == python3.2 ]]; then
|
||||
2to3 --no-diffs -n -w -f unicode ${PN} || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Basic functions for handling mime-types in python"
|
||||
HOMEPAGE="
|
||||
https://code.google.com/p/mimeparse
|
||||
https://github.com/dbtsai/python-mimeparse"
|
||||
MY_PN="python-${PN}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
if [[ ${EPYTHON} == pypy ]]; then
|
||||
local pyver=2.7
|
||||
elif [[ ${EPYTHON} == pypy3 ]]; then
|
||||
local pyver=3.2
|
||||
else
|
||||
local pyver=${EPYTHON#python}
|
||||
fi
|
||||
python_export PYTHON_SITEDIR
|
||||
|
||||
# Previous versions were just called 'mimeparse'
|
||||
cp "${D%/}${PYTHON_SITEDIR}/python_mimeparse-${PV}-py${pyver}.egg-info" \
|
||||
"${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Rolling backport of unittest.mock for all Pythons"
|
||||
HOMEPAGE="https://github.com/testing-cabal/mock"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="doc test"
|
||||
|
||||
CDEPEND="$(python_gen_cond_dep 'dev-python/funcsigs[${PYTHON_USEDEP}]' 'python2_7')
|
||||
>=dev-python/pbr-1.3[${PYTHON_USEDEP}]"
|
||||
DEPEND="
|
||||
>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${CDEPEND}
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=dev-python/unittest2-1.1.0[${PYTHON_USEDEP}]' python{2_7,3_3} pypy)
|
||||
)"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/six-1.7[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_test() {
|
||||
nosetests || die "tests fail under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local DOCS=( docs/*.txt )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL"
|
||||
HOMEPAGE="
|
||||
https://github.com/cedadev/ndg_httpsclient/
|
||||
https://pypi.python.org/pypi/ndg-httpsclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/-/_}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/pyopenssl[$(python_gen_usedep 'python*' pypy)]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
S="${WORKDIR}/${P/-/_}"
|
||||
|
||||
# doc build by Makefile in folder documentation is broken
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue