diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-06-19 10:31:22 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-06-19 10:34:45 +0200 |
commit | 30210e9493d7f7d41c01e62b2cc5cb7112cbcb26 (patch) | |
tree | c34698db0dd5d980e57684745a2a0b226cfbff60 /dev-lang | |
parent | media-sound/qsynth: bump to 1.0.0 (diff) | |
download | gentoo-30210e9493d7f7d41c01e62b2cc5cb7112cbcb26.tar.gz gentoo-30210e9493d7f7d41c01e62b2cc5cb7112cbcb26.tar.bz2 gentoo-30210e9493d7f7d41c01e62b2cc5cb7112cbcb26.zip |
Revert "dev-lang/cxprolog: rewrite with java-pkg-simple"
This reverts commit f1ddc1263008cc3a468688c1c166e9867d789d3f.
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/37214
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/cxprolog/cxprolog-0.98.2-r2.ebuild | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/dev-lang/cxprolog/cxprolog-0.98.2-r2.ebuild b/dev-lang/cxprolog/cxprolog-0.98.2-r2.ebuild deleted file mode 100644 index f1daaff7b66c..000000000000 --- a/dev-lang/cxprolog/cxprolog-0.98.2-r2.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -WX_GTK_VER="3.2-gtk3" -VIRTUALX_REQUIRED="manual" - -inherit flag-o-matic java-pkg-opt-2 java-pkg-2 java-pkg-simple toolchain-funcs virtualx wxwidgets - -DESCRIPTION="A WAM based Prolog system" -HOMEPAGE="http://ctp.di.fct.unl.pt/~amd/cxprolog/" -SRC_URI="http://ctp.di.fct.unl.pt/~amd/cxprolog/cxunix/${P}.src.tgz" -S="${WORKDIR}"/${P} - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="examples java +readline test wxwidgets" -RESTRICT="!test? ( test )" - -COMMON_DEP=" - readline? ( sys-libs/readline:= ) - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) -" - -RDEPEND="${COMMON_DEP} - java? ( >=virtual/jre-1.8:* )" - -DEPEND="${COMMON_DEP} - java? ( >=virtual/jdk-1.8:* ) - test? ( - java? ( ${VIRTUALX_DEPEND} ) - wxwidgets? ( ${VIRTUALX_DEPEND} ) - )" - -src_prepare() { - eapply "${FILESDIR}"/${P}-portage.patch - eapply "${FILESDIR}"/${P}-printf-musl.patch - eapply "${FILESDIR}"/${P}-test-io.patch - eapply_user - - sed -i -e "s|lib/cxprolog|$(get_libdir)/cxprolog|" "${S}"/src/FileSys.c || die - cp "${FILESDIR}"/cx_dev_boot.pl "${S}"/cx_dev_boot.pl || die - rm -f "${S}"/pl/test_file_io_1.txt - - use wxwidgets && setup-wxwidgets - - java-pkg_clean -} - -src_compile() { - local CX_EXT_DEFINES - local CX_EXT_CFLAGS - local CX_EXT_LDFLAGS - local CX_EXT_LIBS - - if use readline; then - CX_EXT_DEFINES="$CX_EXT_DEFINES -DUSE_READLINE" - CX_EXT_LIBS="$CX_EXT_LIBS -lreadline" - fi - - if use java; then - local java_arch - use x86 && java_arch=i386 - use amd64 && java_arch=amd64 - local CX_JVM - for i in jre/lib/${java_arch}/server lib/server; do - [[ -f ${JAVA_HOME}/${i}/libjvm.so ]] && CX_JVM=${JAVA_HOME}/${i} - done - CX_EXT_DEFINES="$CX_EXT_DEFINES -DUSE_JAVA" - CX_EXT_CFLAGS="$CX_EXT_CFLAGS $(java-pkg_get-jni-cflags)" - CX_EXT_LDFLAGS="$CX_EXT_LDFLAGS -Wl,-rpath,${CX_JVM}" - CX_EXT_LIBS="$CX_EXT_LIBS -L${CX_JVM} -ljvm" - fi - - if use wxwidgets; then - CX_EXT_DEFINES="$CX_EXT_DEFINES -DUSE_WXWIDGETS" - CX_EXT_CFLAGS="$CX_EXT_CFLAGS $(${WX_CONFIG} --cflags)" - CX_EXT_LIBS="$CX_EXT_LIBS $(${WX_CONFIG} --libs)" - fi - - emake lib \ - PREFIX=/usr \ - TMP_DIR="${S}/tmp" \ - CC="$(tc-getCC)" \ - CPP="$(tc-getCXX)" \ - LD="$(tc-getLD)" \ - CFLAGS="${CFLAGS}" \ - LDFLAGS="${LDFLAGS}" \ - EXT_DEFINES="${CX_EXT_DEFINES}" \ - EXT_CFLAGS="-Wall ${CX_EXT_CFLAGS}" \ - EXT_LDFLAGS="${CX_EXT_LDFLAGS}" \ - EXT_LIBS="${CX_EXT_LIBS}" - - if use java; then - JAVA_SRC_DIR="${S}/lib/cxprolog/java" - java-pkg-simple_src_compile - fi -} - -cxprolog_src_test() { - cd "${S}"/pl - - if use java; then - local test_javadir="${S}"/pl/$(get_libdir)/cxprolog/java - mkdir -p "${test_javadir}" || die - ln -s "${S}"/cxprolog.jar "${test_javadir}"/prolog.jar || die - fi - - LD_LIBRARY_PATH="${S}" \ - "${S}"/cxprolog_shared \ - --boot "${S}"/cx_dev_boot.pl \ - --script "${S}"/pl/test_all.pl \ - | tee "${S}"/cxprolog_test.log -} - -src_test() { - if use java || use wxwidgets; then - virtx cxprolog_src_test - else - cxprolog_src_test - fi - - grep -q "ALL THE TESTS PASSED" "${S}"/cxprolog_test.log \ - || die "cxprolog unit tests failed" -} - -src_install() { - newbin cxprolog_shared cxprolog - dolib.so libcxprolog.so - - insinto /usr/$(get_libdir)/cxprolog - doins lib/cxprolog/lib.pl - - insinto /usr/share/${PN}/pl - doins pl/*.{pl,txt} - - if use java; then - java-pkg_jarinto /usr/$(get_libdir)/cxprolog/java - java-pkg_newjar cxprolog.jar prolog.jar - fi - - dodoc ChangeLog.txt MANUAL.txt README.txt - - if use examples; then - dodoc -r examples - fi -} |