Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2016 22:29:37 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424438 - head/devel/libastylej
Message-ID:  <201610212229.u9LMTbuI001099@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Fri Oct 21 22:29:37 2016
New Revision: 424438
URL: https://svnweb.freebsd.org/changeset/ports/424438

Log:
  devel/libastylej: fix MASTER_SITES, prepare the port to be used as a master one.
  
  PR:		213631 (based on)
  Submitted by:	Kyle Evans <bsdports@kyle-evans.net>

Modified:
  head/devel/libastylej/Makefile

Modified: head/devel/libastylej/Makefile
==============================================================================
--- head/devel/libastylej/Makefile	Fri Oct 21 21:44:56 2016	(r424437)
+++ head/devel/libastylej/Makefile	Fri Oct 21 22:29:37 2016	(r424438)
@@ -4,7 +4,8 @@
 PORTNAME=	libastylej
 PORTVERSION=	2.05.1
 CATEGORIES=	devel java textproc
-ASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
+MASTER_SITES=	SF/astyle/astyle/astyle%20${PORTVERSION}
+PKGNAMESUFFIX?=	# for slave port
 DISTNAME=	astyle_${PORTVERSION}_linux
 
 MAINTAINER=	bsam@FreeBSD.org
@@ -21,16 +22,17 @@ MAKE_ARGS+=	JAVA_HOME=${JAVA_HOME}
 
 WRKSRC=		${WRKDIR}/astyle/build/${COMPILER_TYPE}
 
-PLIST_FILES=	lib/jni/libastylej.so lib/jni/libastyle-${PORTVERSION}j.so
+PLIST_FILES=	lib/jni/libastyle${PKGNAMESUFFIX}j.so lib/jni/libastyle${PKGNAMESUFFIX}-${PORTVERSION}j.so
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,\(JAVAINCS.*=.*\),\1 -I$(JAVA_HOME)/include/freebsd,' \
+		-e 's,libastyle-${PORTVERSION}j\.so,libastyle${PKGNAMESUFFIX}-${PORTVERSION}j.so,' \
 		${WRKSRC}/Makefile
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/jni
 	${INSTALL_DATA} ${WRKSRC}/bin/*.so ${STAGEDIR}${PREFIX}/lib/jni
-	${LN} -sf libastyle-${PORTVERSION}j.so \
-		${STAGEDIR}${PREFIX}/lib/jni/libastylej.so
+	${LN} -sf libastyle${PKGNAMESUFFIX}-${PORTVERSION}j.so \
+		${STAGEDIR}${PREFIX}/lib/jni/libastyle${PKGNAMESUFFIX}j.so
 
 .include <bsd.port.mk>



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