Skip to content

Commit 4739e45

Browse files
committed
Remove support for encap package manager
It appears abandoned. encap.org is down, and the last snapshot on archive.org is from 2015. Also, since we don't have to worry about the different values of prefix, stop redefining it and exec_prefix (which means we do have to include DESTDIR in a few extra places).
1 parent beeb464 commit 4739e45

File tree

5 files changed

+9
-29
lines changed

5 files changed

+9
-29
lines changed

M2/Macaulay2/e/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ help:
160160
@ echo ""
161161
@ echo "Current configuration:"
162162
@ echo " OS=@OS@ REL=@REL@ ISSUE=@ISSUE@ ARCH=@ARCH@"
163-
@ echo " DEBUG=@DEBUG@ OPTIMIZE=@OPTIMIZE@ ENCAP=@ENCAP@"
163+
@ echo " DEBUG=@DEBUG@ OPTIMIZE=@OPTIMIZE@"
164164
@ echo ""
165165
@ echo "targets:"
166166
@ echo " all build/compile all files in Macaulay2/e [the default target]"

M2/Makefile.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ announce:
134134
@ echo "================================================================="
135135
@ echo " Macaulay2 version @PACKAGE_VERSION@"
136136
@ echo " OS=@OS@ ISSUE=@ISSUE@ ARCH=@ARCH@"
137-
@ echo " DEBUG=@DEBUG@ OPTIMIZE=@OPTIMIZE@ ENCAP=@ENCAP@"
137+
@ echo " DEBUG=@DEBUG@ OPTIMIZE=@OPTIMIZE@"
138138
@ echo "================================================================="
139139

140140
help:
141141
@ echo "Macaulay2 version @PACKAGE_VERSION@"
142142
@ echo ""
143143
@ echo "make files configured with:"
144144
@ echo " OS=@OS@ ISSUE=@ISSUE@ ARCH=@ARCH@"
145-
@ echo " DEBUG=@DEBUG@ OPTIMIZE=@OPTIMIZE@ ENCAP=@ENCAP@"
145+
@ echo " DEBUG=@DEBUG@ OPTIMIZE=@OPTIMIZE@"
146146
@ echo ""
147147
@ echo "Macaulay2 executable location:"
148148
@ echo " @pre_bindir@/M2@EXE@"
@@ -192,7 +192,6 @@ help:
192192
@ echo " (currently ${prefix})"
193193
@ echo " exec_prefix=... installation prefix for architecture dependent files"
194194
@ echo " (currently ${exec_prefix})"
195-
@ echo " ENCAP=yes install in ${prefix}/@package@ instead"
196195
@ echo " MAPFILE=yes create a mapfile when linking M2"
197196
@ echo " DESTDIR=/Foo/Bar install in /Foo/Bar${prefix} instead"
198197
# Local Variables:

M2/configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ test "$DEBUG" = "yes" && ENABLE_STRIP=no
392392
# note: we build many programs for inclusion in the distribution -- stripping them saves 9MB of 70
393393

394394
AC_SUBST(MEMDEBUG,no) AC_ARG_ENABLE(memdebug, AS_HELP_STRING(--enable-memdebug,enable memory allocation debugging), MEMDEBUG=$enableval)
395-
AC_SUBST(ENCAP,no) AC_ARG_ENABLE(encap, AS_HELP_STRING(--enable-encap,encapsulate all files in a subdirectory at installation time), ENCAP=$enableval)
396395
AC_SUBST(XCODE,no) AC_ARG_ENABLE(xcode, AS_HELP_STRING(--enable-xcode,create Macaulay2/d/interpret.a for use with xcode), XCODE=$enableval)
397396

398397
AC_SUBST(CC_THREAD_SUPPORT)

M2/distributions/install/Makefile.in

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,24 @@
11
# @configure_input@
22
# we want to ignore the --datarootdir setting, whatever that means, so here we we mention it: @datarootdir@
33
include ../../include/config.Makefile
4-
ENCAP = @ENCAP@
54
VPATH = @srcdir@
65
ifneq (${prefix},${exec_prefix})
76
$(error prefix and exec_prefix not the same)
87
endif
98
INFOFILES := $(notdir $(wildcard @pre_infodir@/*.info))
10-
#############################################################################
11-
# this changes @infodir@, etc:
12-
ifeq "${ENCAP}" "yes"
13-
prefix0 := $(DESTDIR)${prefix}/@package@
14-
exec_prefix0 := $(DESTDIR)${exec_prefix}/@package@
15-
else
16-
prefix0 := $(DESTDIR)${prefix}
17-
exec_prefix0 := $(DESTDIR)${exec_prefix}
18-
endif
19-
override prefix := ${prefix0}
20-
override exec_prefix := ${exec_prefix0}
21-
#############################################################################
229
T=@TAR@ --create --file=- --mode=a+rX,og-ws --exclude-from=@srcdir@/../tar-exclusions
2310
install::
24-
$(MKDIR_P) ${prefix}
25-
$(T) -C @pre_prefix@ . | @TAR@ xfp - -C ${prefix}
26-
$(T) -C @pre_exec_prefix@ . | @TAR@ xfp - -C ${exec_prefix}
27-
ifeq "${ENCAP}" "yes"
28-
@INSTALL@ -m 755 ../top/postinstall ../top/preremove ${prefix}
29-
@INSTALL@ -m 644 ../top/INSTALL ../top/encapinfo ${prefix}
30-
endif
11+
$(MKDIR_P) $(DESTDIR)@prefix@
12+
$(T) -C @pre_prefix@ . | @TAR@ xfp - -C $(DESTDIR)@prefix@
13+
$(T) -C @pre_exec_prefix@ . | @TAR@ xfp - -C $(DESTDIR)@exec_prefix@
3114

32-
install::@infodir@/dir
33-
@infodir@/dir :; @INSTALL_DATA@ @abs_top_srcdir@/files/info-dir-template $@
15+
install::$(DESTDIR)@infodir@/dir
16+
$(DESTDIR)@infodir@/dir :; @INSTALL_DATA@ @abs_top_srcdir@/files/info-dir-template $@
3417

3518
define ii
3619
install::
3720
$(POST_INSTALL)
38-
install-info --quiet --info-dir=@infodir@ @infodir@/$1
21+
install-info --quiet --info-dir=$(DESTDIR)@infodir@ $(DESTDIR)@infodir@/$1
3922
$(NORMAL_INSTALL)
4023
endef
4124
$(foreach i,$(INFOFILES),$(eval $(call ii,$i)))

M2/include/configuration.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ DMG=@DMG@
2828
ECHO_C=@ECHO_C@
2929
ECHO_N=@ECHO_N@
3030
ECHO_T=@ECHO_T@
31-
ENCAP=@ENCAP@
3231
ETAGS=@ETAGS@
3332
EXE=@EXE@
3433
EXEEXT=@EXEEXT@

0 commit comments

Comments
 (0)