Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2016 13:25:13 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409665 - head/sysutils/lineakd
Message-ID:  <201602271325.u1RDPDQr099242@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Feb 27 13:25:13 2016
New Revision: 409665
URL: https://svnweb.freebsd.org/changeset/ports/409665

Log:
  - Switch to USES=localbase
  - Switch to options helpers

Modified:
  head/sysutils/lineakd/Makefile
  head/sysutils/lineakd/pkg-plist

Modified: head/sysutils/lineakd/Makefile
==============================================================================
--- head/sysutils/lineakd/Makefile	Sat Feb 27 13:25:04 2016	(r409664)
+++ head/sysutils/lineakd/Makefile	Sat Feb 27 13:25:13 2016	(r409665)
@@ -11,16 +11,15 @@ DIST_SUBDIR=	lineak
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Lineakd is a daemon which enables special keys on internet keyboards
 
-USES=		gmake libtool
+USES=		gmake libtool localbase
 USE_LDCONFIG=	yes
 USE_XORG=	x11 xext xt
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	kde_cv_prog_cxx_fno_check_new=no
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 INSTALL_TARGET=	install-strip
 
-DOCS=		README TODO AUTHORS
+PORTDOCS=	README TODO AUTHORS
+PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
@@ -29,11 +28,13 @@ post-patch:
 		${WRKSRC}/lineak/Makefile.in ${WRKSRC}/lineakd/Makefile.in
 	@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
 
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in ${DOCS}
+.for i in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
+
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/lineakd.conf.example ${STAGEDIR}${EXAMPLESDIR}
 

Modified: head/sysutils/lineakd/pkg-plist
==============================================================================
--- head/sysutils/lineakd/pkg-plist	Sat Feb 27 13:25:04 2016	(r409664)
+++ head/sysutils/lineakd/pkg-plist	Sat Feb 27 13:25:13 2016	(r409665)
@@ -29,8 +29,4 @@ lib/liblineak.so
 lib/liblineak.so.0
 lib/liblineak.so.0.8.0
 man/man1/lineakd.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lineakd.conf.example
 @dir lib/lineakd/plugins



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