summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2021-12-11 15:32:42 +0100
committerKeri Harris <keri@gentoo.org>2021-12-11 15:33:01 +0100
commit48f12223d7f1e0840135d77e6ec32c74cefca745 (patch)
treee34236bbc6983f96ccb2c1ddbd33ee003c383617 /dev-lang/yap/yap-7.0.1.ebuild
parentx11-wm/e16: update to 1.0.24 (diff)
downloadgentoo-48f12223d7f1e0840135d77e6ec32c74cefca745.tar.gz
gentoo-48f12223d7f1e0840135d77e6ec32c74cefca745.tar.bz2
gentoo-48f12223d7f1e0840135d77e6ec32c74cefca745.zip
dev-lang/yap: update patchset for x86 fixes
Package-Manager: Portage-3.0.28, Repoman-3.0.2 Signed-off-by: Keri Harris <keri@gentoo.org>
Diffstat (limited to 'dev-lang/yap/yap-7.0.1.ebuild')
-rw-r--r--dev-lang/yap/yap-7.0.1.ebuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/dev-lang/yap/yap-7.0.1.ebuild b/dev-lang/yap/yap-7.0.1.ebuild
index b6d897df36f3..8ed3e0222197 100644
--- a/dev-lang/yap/yap-7.0.1.ebuild
+++ b/dev-lang/yap/yap-7.0.1.ebuild
@@ -3,13 +3,18 @@
EAPI=7
+PV_COMMIT=5bebd8e3aae655690ddf33dfb32289766910fa25
+
PYTHON_COMPAT=( python3_{7,8,9} )
inherit cmake flag-o-matic python-single-r1
+PATCHSET_VER="0"
+
DESCRIPTION="YAP is a high-performance Prolog compiler"
HOMEPAGE="http://www.dcc.fc.up.pt/~vsc/Yap/"
-SRC_URI="https://dev.gentoo.org/~keri/distfiles/yap/${P}.tar.gz"
+SRC_URI="https://github.com/vscosta/yap/archive/${PV_COMMIT}.tar.gz -> ${PN}-${PV_COMMIT}.tar.gz
+ https://dev.gentoo.org/~keri/distfiles/yap/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
LICENSE="Artistic LGPL-2"
SLOT="0"
@@ -42,22 +47,20 @@ DEPEND="${RDEPEND}
java? ( dev-lang/swig )
python? ( dev-lang/swig )"
+src_unpack() {
+ default
+ mv "${WORKDIR}"/yap-${PV_COMMIT} "${WORKDIR}"/${P} || die
+}
+
src_prepare() {
if [[ -d "${WORKDIR}"/${PV} ]] ; then
eapply "${WORKDIR}"/${PV}
fi
- sed -i \
- -e "s|\(set ( libdir \"\${exec_prefix}\)/lib\")|\1/$(get_libdir)\")|" \
- -e "s|\(set ( dlls \"\${exec_prefix}\)/lib/Yap\")|\1/$(get_libdir)/Yap\")|" \
- -e "s|\(set ( docdir \"\${exec_prefix}/share/doc\)/Yap\")|\1/${PF}\")|" \
- CMakeLists.txt || die
-
cmake_src_prepare
}
src_configure() {
-
local mycmakeargs=(
-DWITH_YAP_STATIC=$(usex static)
-DWITH_THREADED_CODE=$(usex threads)