summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/cxprolog')
-rw-r--r--dev-lang/cxprolog/cxprolog-0.98.2.ebuild3
-rw-r--r--dev-lang/cxprolog/files/cx_dev_boot.pl9
2 files changed, 11 insertions, 1 deletions
diff --git a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
index 69288df6b053..ca85e4badada 100644
--- a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
+++ b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
@@ -37,6 +37,7 @@ src_prepare() {
sed -i -e "s|lib/cxprolog|$(get_libdir)/cxprolog|" "${S}"/src/FileSys.c || die
cp "${FILESDIR}"/build.xml "${S}"/build.xml || 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
@@ -83,8 +84,8 @@ cxprolog_src_test() {
cd "${S}"/pl
LD_LIBRARY_PATH="${S}" \
- PREFIX="${S}" \
"${S}"/cxprolog_shared \
+ --boot "${S}"/cx_dev_boot.pl \
--script "${S}"/pl/test_all.pl \
| tee "${S}"/cxprolog_test.log
}
diff --git a/dev-lang/cxprolog/files/cx_dev_boot.pl b/dev-lang/cxprolog/files/cx_dev_boot.pl
new file mode 100644
index 000000000000..2794cabe34b0
--- /dev/null
+++ b/dev-lang/cxprolog/files/cx_dev_boot.pl
@@ -0,0 +1,9 @@
+'$cxprolog_initialise' :-
+ version,
+ fs_cwd(CWD),
+ fs_set_prefix_dir(CWD),
+ '$env_context' := [main].
+
+
+'$cxprolog_top_level_goal' :-
+ true.