Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit e436971

Browse files
author
Matthias Koeppe
committed
polymake: DESTDIR install, use sdh scripts
1 parent 8f40c63 commit e436971

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

build/pkgs/polymake/spkg-install

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
die () {
2-
echo "$@" 1>&2
3-
exit 1
4-
}
5-
61
cd src
72

83
more_configure_options=
@@ -20,12 +15,6 @@ fi
2015
--includedir="$SAGE_LOCAL"/include \
2116
--bindir="$SAGE_LOCAL"/bin \
2217
--libdir="$SAGE_LOCAL"/lib \
23-
$more_configure_options || die "Error configuring Polymake"
24-
make || die "Error building polymake"
25-
# Remove old stuff. Polymake loads whatever it finds in
26-
# its installation directory.
27-
rm -Rf $SAGE_LOCAL/lib/polymake
28-
make install || die "Error installing polymake"
29-
# Reconfigure Polymake's rules.
30-
# This modifies ~/.polymake/customize.pl
31-
echo "exit;" | polymake --reconfigure - || die "Error calling 'polymake --reconfigure'"
18+
$more_configure_options || sdh_die "Error configuring Polymake"
19+
sdh_make
20+
sdh_make_install

build/pkgs/polymake/spkg-postinst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Reconfigure Polymake's rules.
2+
# This modifies ~/.polymake/customize.pl
3+
echo "exit;" | polymake --reconfigure - || sdh_die "Error calling 'polymake --reconfigure'"

0 commit comments

Comments
 (0)