Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 20:33:45 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339382 - head/security/gnutls
Message-ID:  <201401102033.s0AKXjTr077914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Fri Jan 10 20:33:45 2014
New Revision: 339382
URL: http://svnweb.freebsd.org/changeset/ports/339382

Log:
  security/gnutls: Fix hardcoded perl paths
  
  Perl was recently added as a build tool for gnutls, and immediately the
  port fails to build on systems that do not have the /usr/bin/perl
  symlink.  The cause is harded perl path of "/usr/bin/perl".  Shebangfix
  will fix a couple of these, REINPLACE_CMD will fix the other.  Committed
  under the new "Just fix it" blanket, but it was tested in redports.

Modified:
  head/security/gnutls/Makefile

Modified: head/security/gnutls/Makefile
==============================================================================
--- head/security/gnutls/Makefile	Fri Jan 10 19:02:59 2014	(r339381)
+++ head/security/gnutls/Makefile	Fri Jan 10 20:33:45 2014	(r339382)
@@ -19,7 +19,7 @@ LIB_DEPENDS=	nettle:${PORTSDIR}/security
 
 CONFLICTS=	gnutls-devel-[0-9]*
 
-USES=		pathfix pkgconfig iconv gmake perl5
+USES=		pathfix pkgconfig iconv gmake perl5 shebangfix
 USE_PERL5=	build
 USE_BZIP2=	yes
 USE_GNOME=	ltverhack
@@ -27,6 +27,7 @@ GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USE_AUTOTOOLS=	libtool
 LIBTOOLFILES=	configure lib/configure libextra/configure
+SHEBANG_FILES=	doc/scripts/gdoc doc/scripts/sort2.pl
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 CPPFLAGS+=	-fPIC
@@ -79,6 +80,8 @@ PORTEXAMPLES=		*.c
 post-patch:
 	@${FIND} ${WRKSRC} -name "Makefile.in" -type f |\
 		${XARGS} ${REINPLACE_CMD} -e 's|[$$][(]LTLIBPTHREAD[)]||g'
+	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \
+		${WRKSRC}/doc/doxygen/Doxyfile.in
 
 post-install:
 .if ${PORT_OPTIONS:MEXAMPLES}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401102033.s0AKXjTr077914>