sci-biology/meme: Add $(DESTDIR) to install hooks
authorDavid Seifert <soap@gentoo.org>
Sun, 20 Nov 2016 20:15:47 +0000 (21:15 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 20 Nov 2016 20:37:35 +0000 (21:37 +0100)
Gentoo-bug: 600316

Package-Manager: portage-2.3.2

sci-biology/meme/files/meme-4.11.2_p2-fix-build-system.patch

index 0f3349c9583e22c8bfedd9adc7eeb871ea8054ad..b548de5a39a580148b95332de42cbebe8aae99c7 100644 (file)
@@ -7,7 +7,7 @@ Fix and modernise build system
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -76,61 +76,9 @@
+@@ -76,61 +76,10 @@
  AM_CONDITIONAL(WANT_STRLCPY, test ["$have_strlcpy" = no])
  
  # Check for compiler-specific settings
@@ -66,6 +66,7 @@ Fix and modernise build system
 -  LIBEXSLT_CFLAGS="-I\${top_srcdir}/src/libexslt"
 -  LIBXSLT_CFLAGS="-I\${top_srcdir}/src/"
 -fi
++AC_PROG_MKDIR_P
 +AC_SYS_LARGEFILE
 +CFLAGS="-std=gnu89 -Wall -Wno-unused ${CFLAGS}"
 +CPPFLAGS="-DUNIX -D__USE_FIXED_PROTOTYPES__ ${CPPFLAGS}"
@@ -272,6 +273,28 @@ Fix and modernise build system
  memedoc_DATA =  $(NORMAL_FILES)
  endif
  
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -52,7 +52,7 @@
+ endif
+ 
+ dbdir:
+-      mkdir -p $(MEME_DB)
++      $(MKDIR_P) $(DESTDIR)/$(MEME_DB)
+ 
+ all-local:
+ if WEBSITE
+@@ -64,8 +64,8 @@
+ endif
+ 
+ install-data-local:
+-      mkdir -p $(MEME_LOGS)
+-      chmod a+w $(MEME_LOGS)
++      $(MKDIR_P) $(DESTDIR)/$(MEME_LOGS)
++      chmod a+w $(DESTDIR)/$(MEME_LOGS)
+ 
+ distdir = $(PACKAGE)_$(VERSION)
+ 
 --- a/scripts/Makefile.am
 +++ b/scripts/Makefile.am
 @@ -22,8 +22,8 @@