8063bf6f75
This is a significant upgrade over version 5.0.1 which is currently in pkgsrc, representing approximately two years of work. The latest online documentation can be browsed here: http://docs.adacore.com/gps-docs/users_guide/_build/html/ Changes to the package itself include: * python now works and is a default option * readline support is now an option and is default * Multiple job support enable * Documentation now generated by sphinx Also the problem described in PR#47824 no longer occurs, so this PR will be closed.
108 lines
5.1 KiB
Text
108 lines
5.1 KiB
Text
$NetBSD: patch-Makefile.in,v 1.1 2013/07/09 10:16:02 marino Exp $
|
|
|
|
Add DESTDIR support
|
|
|
|
--- Makefile.in.orig 2012-06-08 09:54:29.000000000 +0000
|
|
+++ Makefile.in
|
|
@@ -32,11 +32,12 @@ test-clean:
|
|
(cd scripts; ./testsuites clean)
|
|
|
|
install-common:
|
|
- $(MKDIR) $(bindir)
|
|
- $(MKDIR) $(sharedir)
|
|
- $(MKDIR) $(examplesdir)
|
|
- $(MKDIR) $(sharedir)/gps
|
|
- $(MKDIR) $(sharedir)/gps/docgen2
|
|
+ $(MKDIR) $(DESTDIR)$(bindir)
|
|
+ $(MKDIR) $(DESTDIR)$(sharedir)
|
|
+ $(MKDIR) $(DESTDIR)$(examplesdir)
|
|
+ $(MKDIR) $(DESTDIR)$(sharedir)/gps
|
|
+ $(MKDIR) $(DESTDIR)$(sharedir)/gps/docgen2
|
|
+ $(MKDIR) $(DESTDIR)$(sharedir)/gps/plug-ins
|
|
ifeq ($(OS),Windows_NT)
|
|
# On Windows we distribute two versions of subversion.xml, one that
|
|
# supports Cygwin/Subversion and one for native Subversion.
|
|
@@ -49,39 +50,33 @@ ifeq ($(OS),Windows_NT)
|
|
share/plug-ins/_subversion_ \
|
|
> share/plug-ins/subversion_native_windows.xml
|
|
endif
|
|
- $(RM) $(sharedir)/gps/library/*.py
|
|
- $(RM) $(sharedir)/gps/library/*.xml
|
|
- $(RM) $(sharedir)/gps/plug-ins/*.py
|
|
- $(RM) $(sharedir)/gps/plug-ins/*.xml
|
|
- $(RMDIR) $(sharedir)/gps/templates
|
|
# update runtime.xml before copying the plug-ins files.
|
|
(cd distrib; $(PERL) from_impunit.pl)
|
|
- (cd share; tar cf - plug-ins/*.xml) | (cd $(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - plug-ins/*.xml) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
ifeq ($(OS),Windows_NT)
|
|
# Clean-up changes made above for Windows.
|
|
$(MV) share/plug-ins/_subversion_ share/plug-ins/subversion.xml
|
|
$(RM) share/plug-ins/subversion_native_windows.xml
|
|
endif
|
|
- $(AWK) -f distrib/gnat_switches.awk < gnat/gnat_ugn.texi > $(sharedir)/gps/plug-ins/gnat_switches.py
|
|
- (cd share; tar cf - plug-ins/*.py) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - plug-ins/gps_utils/*.py) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - plug-ins/spark/*.py) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - plug-ins/*.png) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - plug-ins/images/*.png) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - library/*.xml) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - library/*.py) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - library/pygps/*.py) | (cd $(sharedir)/gps; tar xf -)
|
|
- $(RM) $(sharedir)/gps/plug-ins/emacs.xml
|
|
- $(RM) $(sharedir)/gps/plug-ins/python_doc.py
|
|
- $(RM) $(sharedir)/gps/plug-ins/python_doc.pyc
|
|
- $(RM) $(sharedir)/gps/shell_commands.xml
|
|
- (cd share; tar cf - icons/) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - templates/) | (cd $(sharedir)/gps; tar xf -)
|
|
- (cd share; tar cf - *.*) | (cd $(sharedir)/gps; tar xf -)
|
|
+ $(AWK) -f distrib/gnat_switches.awk < gnat/gnat_ugn.texi > $(DESTDIR)$(sharedir)/gps/plug-ins/gnat_switches.py
|
|
+ (cd share; tar cf - plug-ins/*.py) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - plug-ins/gps_utils/*.py) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - plug-ins/spark/*.py) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - plug-ins/images/*.png) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - library/*.xml) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - library/*.py) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - library/pygps/*.py) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ $(RM) $(DESTDIR)$(sharedir)/gps/plug-ins/emacs.xml
|
|
+ $(RM) $(DESTDIR)$(sharedir)/gps/plug-ins/python_doc.py
|
|
+ $(RM) $(DESTDIR)$(sharedir)/gps/plug-ins/python_doc.pyc
|
|
+ $(RM) $(DESTDIR)$(sharedir)/gps/shell_commands.xml
|
|
+ (cd share; tar cf - icons/) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - templates/) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
+ (cd share; tar cf - *.*) | (cd $(DESTDIR)$(sharedir)/gps; tar xf -)
|
|
(cd docgen2/resources; tar cf - *.tmpl custom/*.css support/*.css support/*.js support/images/*.png) \
|
|
- | (cd $(sharedir)/gps/docgen2; tar xf -)
|
|
+ | (cd $(DESTDIR)$(sharedir)/gps/docgen2; tar xf -)
|
|
$(MAKE) -C docs install
|
|
- (cd examples; tar cf - --exclude .svn . ) | (cd $(examplesdir); tar xf -)
|
|
+ (cd examples; tar cf - --exclude .svn . ) | (cd $(DESTDIR)$(examplesdir); tar xf -)
|
|
|
|
install: install-common
|
|
ifeq ($(OS),Windows_NT)
|
|
@@ -90,9 +85,9 @@ ifeq ($(OS),Windows_NT)
|
|
$(INSTALL_PROGRAM) spark/obj/gnatspark.exe $(bindir)
|
|
$(MAKE) -C common/expect install
|
|
else
|
|
- $(INSTALL_PROGRAM) gps/obj/gps $(bindir)
|
|
- $(INSTALL_PROGRAM) gnatlib/src/obj/gnatinspect $(bindir)
|
|
- $(INSTALL_PROGRAM) spark/obj/gnatspark $(bindir)
|
|
+ $(INSTALL_PROGRAM) gps/obj/gps $(DESTDIR)$(bindir)
|
|
+ $(INSTALL_PROGRAM) gnatlib/src/obj/gnatinspect $(DESTDIR)$(bindir)
|
|
+ $(INSTALL_PROGRAM) spark/obj/gnatspark $(DESTDIR)$(bindir)
|
|
endif
|
|
|
|
install-strip: install-common
|
|
@@ -102,9 +97,9 @@ ifeq ($(OS),Windows_NT)
|
|
$(INSTALL_PROGRAM) distrib/gps_run.cmd $(bindir)
|
|
$(MAKE) -C common/expect install-strip
|
|
else
|
|
- $(INSTALL_PROGRAM) -s gps/obj/gps $(bindir)/gps_exe
|
|
- $(INSTALL_PROGRAM) -s spark/obj/gnatspark $(bindir)
|
|
- $(INSTALL_PROGRAM) distrib/.gps_wrapper $(bindir)/gps
|
|
+ $(INSTALL_PROGRAM) -s gps/obj/gps $(DESTDIR)$(bindir)/gps_exe
|
|
+ $(INSTALL_PROGRAM) -s spark/obj/gnatspark $(DESTDIR)$(bindir)
|
|
+ $(INSTALL_PROGRAM) distrib/.gps_wrapper $(DESTDIR)$(bindir)/gps
|
|
endif
|
|
|
|
test: force
|