Skip to content

Commit

Permalink
dev-lang/swi-prolog: switch to cmake.eclass. Bug 780366.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Keri Harris <[email protected]>
  • Loading branch information
keriharris committed May 8, 2021
1 parent d73a44c commit 06eb7f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions dev-lang/swi-prolog/swi-prolog-8.2.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=7

inherit cmake-utils flag-o-matic multilib
inherit cmake flag-o-matic multilib

PATCHSET_VER="0"

Expand All @@ -27,9 +27,7 @@ RDEPEND="sys-libs/ncurses:=
readline? ( sys-libs/readline:= )
libedit? ( dev-libs/libedit )
gmp? ( dev-libs/gmp:0 )
ssl? (
dev-libs/openssl:0
)
ssl? ( dev-libs/openssl:0 )
java? ( >=virtual/jdk-1.8:* )
uuid? ( dev-libs/ossp-uuid )
qt5? (
Expand Down Expand Up @@ -64,7 +62,7 @@ src_prepare() {
sed -i -e "s|\(SWIPL_INSTALL_PREFIX\) lib/.*)|\1 $(get_libdir)/swipl)|" CMakeLists.txt || die
sed -i -e "s|\(SWIPL_INSTALL_CMAKE_CONFIG_DIR\) lib/|\1 $(get_libdir)/|" CMakeLists.txt || die

cmake-utils_src_prepare
cmake_src_prepare
}

src_configure() {
Expand All @@ -88,17 +86,17 @@ src_configure() {
-DSWIPL_PACKAGES_TERM=$(if use libedit || use readline; then echo yes; else echo no; fi)
)

cmake-utils_src_configure
cmake_src_configure
}

src_compile() {
XDG_CONFIG_DIRS="${HOME}" \
XDG_DATA_DIRS="${HOME}" \
cmake-utils_src_compile
cmake_src_compile
}

src_test() {
USE_PUBLIC_NETWORK_TESTS=false \
USE_ODBC_TESTS=false \
cmake-utils_src_test -V
cmake_src_test -V
}
14 changes: 6 additions & 8 deletions dev-lang/swi-prolog/swi-prolog-8.3.21.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=7

inherit cmake-utils flag-o-matic multilib
inherit cmake flag-o-matic multilib

PATCHSET_VER="0"

Expand All @@ -26,9 +26,7 @@ RDEPEND="sys-libs/ncurses:=
readline? ( sys-libs/readline:= )
libedit? ( dev-libs/libedit )
gmp? ( dev-libs/gmp:0 )
ssl? (
dev-libs/openssl:0
)
ssl? ( dev-libs/openssl:0 )
java? ( >=virtual/jdk-1.8:* )
uuid? ( dev-libs/ossp-uuid )
qt5? (
Expand Down Expand Up @@ -63,7 +61,7 @@ src_prepare() {
sed -i -e "s|\(SWIPL_INSTALL_PREFIX\) lib/.*)|\1 $(get_libdir)/swipl)|" CMakeLists.txt || die
sed -i -e "s|\(SWIPL_INSTALL_CMAKE_CONFIG_DIR\) lib/|\1 $(get_libdir)/|" CMakeLists.txt || die

cmake-utils_src_prepare
cmake_src_prepare
}

src_configure() {
Expand All @@ -87,17 +85,17 @@ src_configure() {
-DSWIPL_PACKAGES_TERM=$(if use libedit || use readline; then echo yes; else echo no; fi)
)

cmake-utils_src_configure
cmake_src_configure
}

src_compile() {
XDG_CONFIG_DIRS="${HOME}" \
XDG_DATA_DIRS="${HOME}" \
cmake-utils_src_compile
cmake_src_compile
}

src_test() {
USE_PUBLIC_NETWORK_TESTS=false \
USE_ODBC_TESTS=false \
cmake-utils_src_test -V
cmake_src_test -V
}

0 comments on commit 06eb7f8

Please sign in to comment.