svn commit: r424438 - head/devel/libastylej
Boris Samorodov
bsam at FreeBSD.org
Fri Oct 21 22:29:38 UTC 2016
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 at 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 at 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>
More information about the svn-ports-all
mailing list