Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2018 13:24:12 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488665 - head/devel/gauche-readline
Message-ID:  <201812291324.wBTDOCD9013692@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sat Dec 29 13:24:12 2018
New Revision: 488665
URL: https://svnweb.freebsd.org/changeset/ports/488665

Log:
  Chase r488658 and overhaul things a bit while here:
  - Do not hardcode GAUCHE_LIBDIR, it is subject to change
  - Convert obsolete EXTRACT_SUFX=.tgz -> USES=tar:tgz
  - Install some standard set of documentation files
  - Define LICENSE (PD), simplify installation routine

Modified:
  head/devel/gauche-readline/Makefile

Modified: head/devel/gauche-readline/Makefile
==============================================================================
--- head/devel/gauche-readline/Makefile	Sat Dec 29 13:01:04 2018	(r488664)
+++ head/devel/gauche-readline/Makefile	Sat Dec 29 13:24:12 2018	(r488665)
@@ -3,31 +3,39 @@
 
 PORTNAME=	readline
 PORTVERSION=	0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel scheme
 MASTER_SITES=	http://practical-scheme.net/vault/
 PKGNAMEPREFIX=	gauche-
-EXTRACT_SUFX=	.tgz
 DIST_SUBDIR=	gauche
 
 MAINTAINER=	erik@bz.bzflag.bz
 COMMENT=	Pure gauche/scheme implementation of the Readline library
 
+LICENSE=	PD
+
 RUN_DEPENDS=	gosh:lang/gauche
 BUILD_DEPENDS=	gauche-config:lang/gauche
 
-GAUCHE_LIBDIR=	share/gauche/site/lib
-GAUCHE_FILES=	readline/history.scm readline/keymap.scm readline/term-util.scm
+USES=		tar:tgz
 
+GAUCHE_LIBDIR=	${:!gauche-config --sitelibdir!:S,^${PREFIX}/,,}
 PLIST_SUB+=	GAUCHE_LIBDIR=${GAUCHE_LIBDIR}
 
+DOCSDIR=	${PREFIX}/share/doc/gauche/${PORTNAME}
+PORTDOCS=	AUTHORS BUGS README
+
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-.if !exists(${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}/readline)
-	${MKDIR} ${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}/readline
-.endif
-	${INSTALL_DATA} ${WRKSRC}/readline.scm ${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}
-.	for f in ${GAUCHE_FILES}
-		${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}/readline
-.	endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}/readline
+	${INSTALL_DATA} ${WRKSRC}/readline.scm \
+		${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}
+	${INSTALL_DATA} ${WRKSRC}/readline/*.scm \
+		${STAGEDIR}${PREFIX}/${GAUCHE_LIBDIR}/readline
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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