From 8d71d37bcf958f189011f7a1ecc5c69daeaed295 Mon Sep 17 00:00:00 2001 From: philip <philip@FreeBSD.org> Date: Fri, 23 Jun 2006 16:05:24 +0000 Subject: o Use PKGNAMEPREFIX o Use MASTER_SITE_LOCAL o Replace pre-install with do-install PR: ports/99241 Submitted by: Andrew Turner <andrew+ports -at- fubar.geek.nz> (maintainer) --- devel/lua-pty/Makefile | 12 +++++++----- devel/lua50-pty/Makefile | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/devel/lua-pty/Makefile b/devel/lua-pty/Makefile index 4758f2e58cbf..9ed7a77557a7 100644 --- a/devel/lua-pty/Makefile +++ b/devel/lua-pty/Makefile @@ -5,10 +5,12 @@ # $FreeBSD$ # -PORTNAME= lua50-pty +PORTNAME= pty PORTVERSION= 1.25 CATEGORIES= devel -MASTER_SITES= http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/pty/ +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= philip +PKGNAMEPREFIX= lua50- DISTFILES= pty.lua?rev=1.2 pty.c?rev=1.25 MAINTAINER= andrew+ports@fubar.geek.nz @@ -19,7 +21,6 @@ BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \ RUN_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \ ${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51 -LIBDIR= ${PREFIX}/lib/lua/5.0 COMPAT_SRC= `(cd ${PORTSDIR}/devel/lua50-compat51 && make -V WRKSRC)` do-extract: @@ -32,8 +33,9 @@ do-extract: post-patch: @${REINPLACE_CMD} -e "s|%%COMPATDIR%%|${COMPAT_SRC}|" ${WRKSRC}/Makefile -pre-install: - ${MKDIR} ${LIBDIR} +do-install: + ${MKDIR} ${PREFIX}/lib/lua/5.0 + ${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${PREFIX}/lib/lua/5.0 ${MKDIR} ${PREFIX}/share/lua/5.0 ${INSTALL_DATA} ${WRKSRC}/pty.lua ${PREFIX}/share/lua/5.0 diff --git a/devel/lua50-pty/Makefile b/devel/lua50-pty/Makefile index 4758f2e58cbf..9ed7a77557a7 100644 --- a/devel/lua50-pty/Makefile +++ b/devel/lua50-pty/Makefile @@ -5,10 +5,12 @@ # $FreeBSD$ # -PORTNAME= lua50-pty +PORTNAME= pty PORTVERSION= 1.25 CATEGORIES= devel -MASTER_SITES= http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/pty/ +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= philip +PKGNAMEPREFIX= lua50- DISTFILES= pty.lua?rev=1.2 pty.c?rev=1.25 MAINTAINER= andrew+ports@fubar.geek.nz @@ -19,7 +21,6 @@ BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \ RUN_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \ ${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51 -LIBDIR= ${PREFIX}/lib/lua/5.0 COMPAT_SRC= `(cd ${PORTSDIR}/devel/lua50-compat51 && make -V WRKSRC)` do-extract: @@ -32,8 +33,9 @@ do-extract: post-patch: @${REINPLACE_CMD} -e "s|%%COMPATDIR%%|${COMPAT_SRC}|" ${WRKSRC}/Makefile -pre-install: - ${MKDIR} ${LIBDIR} +do-install: + ${MKDIR} ${PREFIX}/lib/lua/5.0 + ${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${PREFIX}/lib/lua/5.0 ${MKDIR} ${PREFIX}/share/lua/5.0 ${INSTALL_DATA} ${WRKSRC}/pty.lua ${PREFIX}/share/lua/5.0 -- cgit