summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-04-17 17:27:49 +0000
committerAchim Gottinger <achim@gentoo.org>2001-04-17 17:27:49 +0000
commitcd7472fa43ce4e4a818c4eff32e190c834d7c3d8 (patch)
treeb85798d0fcabaff4ebb0b62efc5cd3e69db2d88c /dev-db
parentFirst packages for systemimager, needs more customization r1 should be usable (diff)
downloadhistorical-cd7472fa43ce4e4a818c4eff32e190c834d7c3d8.tar.gz
historical-cd7472fa43ce4e4a818c4eff32e190c834d7c3d8.tar.bz2
historical-cd7472fa43ce4e4a818c4eff32e190c834d7c3d8.zip
This patch fixes an DESTDIR install bug
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff b/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff
new file mode 100644
index 000000000000..a1e4f17aed08
--- /dev/null
+++ b/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff
@@ -0,0 +1,37 @@
+--- postgresql-7.1.orig/src/interfaces/perl5/GNUmakefile Fri Nov 17 00:08:57 2000
++++ postgresql-7.1/src/interfaces/perl5/GNUmakefile Tue Apr 17 19:20:19 2001
+@@ -36,20 +36,26 @@
+
+ install: Makefile
+ $(MAKE) -f Makefile clean
+- POSTGRES_LIB="$(libdir)" \
+- POSTGRES_INCLUDE="$(includedir)" \
+- $(PERL) $(srcdir)/Makefile.PL
+- $(MAKE) -f Makefile all
+- -@if [ -w "`$(MAKE) --quiet -f Makefile echo-installdir`" ]; then \
+- $(MAKE) -f Makefile install; \
+- $(MAKE) clean; \
+- else \
++ POSTGRES_LIB="$(DESTDIR)$(libdir)" \
++ POSTGRES_INCLUDE="$(DESTDIR)$(includedir)" \
++ $(PERL) $(srcdir)/Makefile.PL
++ $(MAKE) -f Makefile all; \
++ PERLDEST="`$(MAKE) --quiet PREFIX=$(DESTDIR)$(prefix) -f Makefile echo-installdir`"; \
++ if [ ! -d $(PERLDEST) ]; then \
++ $(mkinstalldirs) $(PERLDEST); \
++ fi; \
++ if [ -w $(PERLDEST) ]; then \
++ $(MAKE) PREFIX=$(DESTDIR)$(prefix) INSTALLMAN3DIR=$(DESTDIR)$(mandir)/man3 -f Makefile install; \
++ $(MAKE) clean; \
++ else \
+ echo "*****" ;\
+ echo "* Skipping the installation of the Perl module for lack of permissions."; \
+ echo "* To install it, change to the directory "`pwd`","; \
+ echo "* become the appropriate user, and do \`$(MAKE) install'."; \
+ echo "*****"; \
+ fi
++
++
+
+
+ uninstall: