public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Weber" <xmw@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/xmw:master commit in: dev-util/eclipse-clp/
Date: Mon, 24 Aug 2015 19:42:55 +0000 (UTC)	[thread overview]
Message-ID: <1440445373.434541e2fefa1170df356ba5d5ff3879ad10bce1.xmw@gentoo> (raw)

commit:     434541e2fefa1170df356ba5d5ff3879ad10bce1
Author:     Michael Weber <michael <AT> xmw <DOT> de>
AuthorDate: Mon Aug 24 19:42:53 2015 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Mon Aug 24 19:42:53 2015 +0000
URL:        https://gitweb.gentoo.org/dev/xmw.git/commit/?id=434541e2

dev-util/eclipse-clp: Version bump.

Package-Manager: portage-2.2.20.1
Manifest-Sign-Key: 0x927ADD0C62EEF090

 dev-util/eclipse-clp/ChangeLog                  |   5 +
 dev-util/eclipse-clp/Manifest                   |   9 +-
 dev-util/eclipse-clp/eclipse-clp-6.1.204.ebuild | 241 ++++++++++++++++++++++++
 3 files changed, 250 insertions(+), 5 deletions(-)

diff --git a/dev-util/eclipse-clp/ChangeLog b/dev-util/eclipse-clp/ChangeLog
index 8e1b914..fcfb9e7 100644
--- a/dev-util/eclipse-clp/ChangeLog
+++ b/dev-util/eclipse-clp/ChangeLog
@@ -1,3 +1,8 @@
+*eclipse-clp-6.1.204 (24 Aug 2015)
+
+  24 Aug 2015; Michael Weber <xmw@gentoo.org> +eclipse-clp-6.1.204.ebuild:
+  dev-util/eclipse-clp: Version bump.
+
 *eclipse-clp-6.1.194 (16 Feb 2015)
 
   16 Feb 2015; Michael Weber <xmw@gentoo.org> +eclipse-clp-6.1.194.ebuild,

diff --git a/dev-util/eclipse-clp/Manifest b/dev-util/eclipse-clp/Manifest
index d6795ba..cacddf3 100644
--- a/dev-util/eclipse-clp/Manifest
+++ b/dev-util/eclipse-clp/Manifest
@@ -2,12 +2,11 @@
 Hash: SHA256
 
 DIST eclipse-clp-6.1.194.tar.gz 8619283 SHA256 ebf740c6b3d0b84bdbf69616f42480aacccf55285019f4c3b1f051b029f3a094 SHA512 1c45a3a76bcaff9ea365fee83177b93ccaecae193f61d556d60bc5e251ccb174dca4e15fd33c953270fa22628612254197d92dee022ba51184f1fbec66a4c6aa WHIRLPOOL 76e3838150ca72d16950f5fdc44435ffb786c3bc77f440e184c2d9fb5466aaf5eccabe097269002c0aeee5a87350b3281fce59f2ead79b65a28845288520cf7a
+DIST eclipse-clp-6.1.204.tar.gz 8621125 SHA256 cadea9e1adb9911b70a79292ef979a589de0095eb1f8a4a68cafbfb96ebc0ca8 SHA512 05740d7c8d4e1b2ced050a2ec9e47609813e2b429c31ace5374708caaea1f81a448c7771dc8135319a97059ccd4fef6244a3e61d322ac259ea21aa9eb8382b10 WHIRLPOOL b849683dccf9c0842da13945818ad82a1293ef6a2ab5e50f3ef526cec9492d4ff02f1d93de2fd1dd58c393f7f9480c7f5d0cfc92c5fd150e24f967fa30881964
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iL4EAREIAGYFAlTiQVFfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
-bnBncC5maWZ0aGhvcnNlbWFuLm5ldDY3QjA4MzdGODg1NUMxMjIzNUQ0MDgxNzky
-N0FERDBDNjJFRUYwOTAACgkQknrdDGLu8JAr1QD/QFTsewRG8NYdY20q0CtdOXH7
-U/K4BnJkfenx2484HBkBAJLx3BP1H19GxSnWZ0UGC2NswakWs2Wfw3Lo9ADUsAII
-=v71P
+iF4EAREIAAYFAlXbc7YACgkQknrdDGLu8JCoDwD7BGpQH4RXxtG3+Aj7keq2JqCe
+5tr4TRMCX7o8m8Er/bIA+gOqSlfC8fz3hsmQ/adWQnhHX3fuMDIqs//Z0UOrqidA
+=Uh6A
 -----END PGP SIGNATURE-----

diff --git a/dev-util/eclipse-clp/eclipse-clp-6.1.204.ebuild b/dev-util/eclipse-clp/eclipse-clp-6.1.204.ebuild
new file mode 100644
index 0000000..da389a1
--- /dev/null
+++ b/dev-util/eclipse-clp/eclipse-clp-6.1.204.ebuild
@@ -0,0 +1,241 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit autotools eutils readme.gentoo versionator
+
+DESCRIPTION="OSS system for the cost-effective development and deployment of constraint programming applications"
+HOMEPAGE="http://eclipseclp.org/"
+
+MY_PV=$(replace_version_separator 2 _ ${PV})
+SRC_URI="http://eclipseclp.org/Distribution/${MY_PV}/src/${PN/-clp}_src.tgz -> ${P}.tar.gz"
+
+LICENSE="${pn} LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc +coin +gecode +glpk +gmp java mysql parallel tcl +threads"
+
+#Braucht gmp 4.2 4.1, vmtl dev-libs/gmp:3
+#[doc] brauch wohl hevea: dev-tex/hevea
+RDEPEND=""
+DEPEND="${RDEPEND}
+	gmp? ( dev-libs/gmp )
+	doc? ( app-text/ghostscript-gpl
+		dev-tex/hevea
+		dev-texlive/texlive-latex )
+	gecode? ( dev-libs/gecode )
+	mysql? ( virtual/mysql )
+	java? ( dev-java/batik dev-java/javahelp )
+	coin? ( sci-libs/coinor-cbc[examples]
+		sci-libs/coinor-osi[glpk?]
+		sci-libs/coinor-symphony[glpk?]
+		glpk? ( <sci-mathematics/glpk-4.54 ) )"
+
+S=${WORKDIR}/Eclipse_${MY_PV}
+
+REQUIRED_USE="coin? ( gmp ) glpk? ( coin ) parallel? ( tcl )"
+
+pkg_setup() {
+	use gecode && ewarn gecode does not work yet
+	use doc && ewarn doc does not work yet
+}
+
+src_unpack() {
+	default
+	if use coin ; then
+		local my_cbc=$(best_version sci-libs/coinor-cbc)
+		cp "${EROOT}"usr/share/doc/${my_cbc/sci-libs\//}/examples/Cbc{Branch,Compare}User.{c,h}pp.* . || die
+		unpack ./Cbc{Branch,Compare}User.{c,h}pp.*
+		mv Cbc{Branch,Compare}User.{c,h}pp "${S}"/Eplex || die
+	fi
+}
+
+src_prepare() {
+	epatch \
+		"${FILESDIR}"/${PN}-6.1.194-mysql.patch \
+		"${FILESDIR}"/${PN}-6.1.194-tcl8.6.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Eplex-Makefile.patch \
+		"${FILESDIR}"/${PN}-6.1.194-AR.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Eplex-include.patch \
+		"${FILESDIR}"/${PN}-6.1.194-icparc_solvers.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Oci-mkdir.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Usc-64bit.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Pds-64bit.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Alog-64bit.patch \
+		"${FILESDIR}"/${PN}-6.1.194-weclipse.patch \
+		"${FILESDIR}"/${PN}-6.1.194-Shm-buildsystem.patch
+
+	rm ARCH RUNME || die
+
+	case "${ARCH}" in
+		amd64) export ARCH=x86_64_linux ;;
+		x86)   export ARCH=i386_linux   ;;
+		*)     die "unsupported arch ${ARCH}" ;;
+	esac
+	export ECLIPSEDIR=${EROOT}opt/${PN}
+	export MYSQLDIR="${EROOT}usr/include/mysql"
+	#export prefix="${S}/build"
+	tc-export CC AR
+	eautoreconf
+
+	pushd Shm/src >/dev/null
+	eautoreconf
+	popd >/dev/null
+}
+
+src_configure() {
+	my_submods="Shm Usc Alog Pds"
+	local my_submod
+	for my_submod in ${my_submods}; do
+		einfo "configure ${my_submod}"
+		pushd ${my_submod}/src >/dev/null || die
+		econf
+		popd >/dev/null || die
+	done
+
+	local my_osi="--without-osi"
+	if use coin ; then
+		my_osi="--with-osi=symclp"
+		#my_osi=" ... clpcbc" doesn't build jet
+		if use glpk ; then
+			my_osi="${my_osi} glpk"
+		fi
+	fi
+	econf \
+		--without-cplex \
+		--without-xpress \
+		$(use_with gmp) \
+		"${my_osi}" \
+		--with-flexlm \
+		$(use_with gecode gfd) \
+		--without-graphviz \
+		--without-gurobi \
+		$(use_with mysql) \
+		$(use_with java) \
+		$(use_with java cpviz) \
+		$(use_with threads pthreads) \
+		$(use_with doc) \
+		$(use_with tcl)
+}
+
+src_compile() {
+	#replace toplevel Makefile.${ARCH}, -j1 bug etc.
+	rm -fv Makefile.${ARCH} || die
+	mkdir -p sys_{include,{bin,lib}/${ARCH}} || die
+
+	local my_out
+	local my_submod
+	for my_submod in ${my_submods}; do
+		einfo "compile and install ${my_submod}"
+		mkdir -p $my_submod/{include,{bin,lib}/${ARCH}} || die
+		case $my_submod in
+			Pds)	emake -C ${my_submod}/src install_all ;;
+			*)		emake -C ${my_submod}/src install ;;
+		esac
+		for my_out in $(find ${my_submod}/{include,{bin,lib}/${ARCH}} -type f) ; do
+			mv -vn ${my_out} sys_${my_out/${my_submod}\/} || die
+		done
+	done
+       
+	runme() {
+		einfo "create wrapper $1"
+		local my_dest="build/bin/${ARCH}/$1"
+		mkdir -p "$(dirname "${my_dest}")" || die
+		cat << EOF > "${my_dest}"
+#!/bin/sh
+export ECLIPSEDIR="\${ECLIPSEDIR:-${EROOT}opt/${PN}}"
+if [ -z "\${LD_LIBRARY_PATH}" ] ; then
+	export LD_LIBRARY_PATH="\${ECLIPSEDIR}/lib/${ARCH}"
+else
+	export LD_LIBRARY_PATH="\${ECLIPSEDIR}/lib/${ARCH}:\${LD_LIBRARY_PATH}"
+fi
+export JRE_HOME="\${JRE_HOME:-\${JAVA_HOME}}"
+$2
+EOF
+		chmod +x "${my_dest}" || die
+	}
+	mkdir -p "${S}/bin/${ARCH}"
+
+	einfo "compile installation kernel (sepia)"
+	emake -C Kernel/${ARCH} sepia
+	einfo "compile runtime kernel (eclipse.exe)"
+	emake -C Kernel/${ARCH} eclipse.exe
+	einfo "install kernel and header files"
+	emake -C Kernel/${ARCH} PREFIX="../../build" install
+	runme "eclipse" "exec \"\${ECLIPSEDIR}/lib/${ARCH}/eclipse.exe\" \"\$@\""
+
+	if use parallel ; then
+		einfo "compile & install parallel Kernel"
+		emake -C Kernel/${ARCH} weclipse
+		cp -v {Kernel,lib}/${ARCH}/weclipse
+		runme "weclipse" "exec \"\${ECLIPSEDIR}/lib/${ARCH}/weclipse\" \"\$@\""
+		emake -C Kernel/${ARCH} peclipse
+		cp -v {Kernel,lib}/${ARCH}/peclipse
+		runme "peclipse" "exec \"\${ECLIPSEDIR}/lib/${ARCH}/peclipse\" \"\$@\""
+	fi
+
+	if use tcl ; then
+		runme "tkeclipse" "exec wish \"\${ECLIPSEDIR}/lib_tcl/tkeclipse.tcl\" -- \"\$@\""
+		runme "tktools" "exec wish \"\${ECLIPSEDIR}/lib_tcl/tktools.tcl\" -- \"\$@\""
+	fi
+
+	#einfo "compile & install ecrc_solvers"
+	#emake -C ecrc_solvers -f Makefile.${ARCH} PREFIX="${S}/build" install -j1
+
+	einfo "compile & install Flexlm"
+	emake -C Flexlm -f Makefile.${ARCH} PREFIX="../build" install
+
+	if use coin ; then
+		einfo "compile & install Eplex"
+		emake -C Eplex -f Makefile.${ARCH} PREFIX="${S}" install -j1
+
+		einfo "compile & install icparc_solvers"
+		emake -C icparc_solvers -f Makefile.${ARCH} PREFIX="${S}" install -j1
+	fi
+	if use gecode ; then
+		einfo "compile & install GecodeInterface"
+		emake -C GecodeInterface -f Makefile.${ARCH} PREFIX="${S}" install
+	fi
+	if use java ; then
+		einfo "compile & install JavaInterface"
+		emake -C JavaInterface -f Makefile.${ARCH} PREFIX="${S}" install
+		runme "jeclipse" "exec \"\${JRE_HOME}/bin/java\" -Xss2m  -Declipse.directory=\"\${ECLIPSEDIR}\" -classpath \"\${ECLIPSEDIR}/lib/eclipse.jar\" com.parctechnologies.eclipse.JEclipse \"\$@\""
+
+		einfo "compile & install Visualisation"
+		emake -C Visualisation -f Makefile.${ARCH} PREFIX="${S}" install
+	fi
+
+	if use mysql ; then
+		einfo "compile & install Oci"
+		emake -C Oci -f Makefile.${ARCH} PREFIX="${S}" install -j1
+	fi
+}
+
+src_install() {
+	mkdir "${ED}"opt || die
+	mv build "${ED}opt/${PN}" || die
+	make_wrapper eclipse "${EROOT}opt/${PN}/bin/${ARCH}/eclipse"
+
+	if use tcl ; then
+		mv lib_tcl "${ED}opt/${PN}" || die
+		make_wrapper tkeclipse "${EROOT}opt/${PN}/bin/${ARCH}/tkeclipse"
+		make_wrapper tktools "${EROOT}opt/${PN}/bin/${ARCH}/tktools"
+	fi
+
+	if use parallel ; then
+		make_wrapper weclipse "${EROOT}opt/${PN}/bin/${ARCH}/weclipse"
+		make_wrapper peclipse "${EROOT}opt/${PN}/bin/${ARCH}/peclipse"
+	fi
+
+	if use java ; then
+		make_wrapper jeclipse "${EROOT}opt/${PN}/bin/${ARCH}/jeclipse"
+	fi
+
+	echo "ECLIPSEDIR=\"${EROOT}opt/${PN}\"" > "${T}"/90${PN}
+	doenvd "${T}"/90${PN}
+
+	dodoc README_UNIX
+	readme.gentoo_create_doc
+}


             reply	other threads:[~2015-08-24 19:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 19:42 Michael Weber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-09-02 12:17 [gentoo-commits] dev/xmw:master commit in: dev-util/eclipse-clp/ Michael Weber
2015-08-27 14:17 Michael Weber
2015-08-24 19:34 Michael Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440445373.434541e2fefa1170df356ba5d5ff3879ad10bce1.xmw@gentoo \
    --to=xmw@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox