Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2018 04:06:07 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460664 - in head/misc/sent: . files
Message-ID:  <201802020406.w12467qo087232@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Fri Feb  2 04:06:07 2018
New Revision: 460664
URL: https://svnweb.freebsd.org/changeset/ports/460664

Log:
  misc/sent: Update to 1
  
  Changes:	https://git.suckless.org/sent/log/?h=1
  PR:		225607
  Submitted by:	Mateusz Piotrowski <mpp302@gmail.com> (based on)
  Approved by:	Neel Chauhan <neel@neelc.org> (maintainer)

Modified:
  head/misc/sent/Makefile
  head/misc/sent/distinfo
  head/misc/sent/files/patch-config.mk

Modified: head/misc/sent/Makefile
==============================================================================
--- head/misc/sent/Makefile	Fri Feb  2 04:02:34 2018	(r460663)
+++ head/misc/sent/Makefile	Fri Feb  2 04:06:07 2018	(r460664)
@@ -1,29 +1,43 @@
 # $FreeBSD$
 
 PORTNAME=	sent
-PORTVERSION=	0.2
+PORTVERSION=	1
 CATEGORIES=	misc
 MASTER_SITES=	http://dl.suckless.org/tools/
 
 MAINTAINER=	neel@neelc.org
 COMMENT=	Simple plaintext presentation tool
 
-LICENSE=	MIT
+LICENSE=	ISCL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libpng.so:graphics/png\
-		libfontconfig.so:x11-fonts/fontconfig
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig
+RUN_DEPENDS=	2ff:graphics/farbfeld
 
 USE_XORG=	x11 xft
 
-ALL_TARGET=	${PORTNAME}
+MAKE_ARGS=	CC="${CC}" PREFIX="${PREFIX}" MANPREFIX="${MANPREFIX}/man" \
+		X11INC="${LOCALBASE}/include" X11LIB="${LOCALBASE}/lib"
+NO_WRKSUBDIR=	yes
 
-PLIST_FILES=	bin/${PORTNAME} ${EXAMPLESDIR}/example ${EXAMPLESDIR}/nyan.png
+PLIST_FILES=	bin/sent \
+		man/man1/sent.1.gz
+PORTDOCS=	README.md
+PORTEXAMPLES=	example \
+		nyan.png \
+		transparent_test.ff
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/sent ${STAGEDIR}${PREFIX}/bin
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/example ${STAGEDIR}${EXAMPLESDIR}/example
-	${INSTALL_DATA} ${WRKSRC}/nyan.png ${STAGEDIR}${EXAMPLESDIR}/nyan.png
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sent
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/misc/sent/distinfo
==============================================================================
--- head/misc/sent/distinfo	Fri Feb  2 04:02:34 2018	(r460663)
+++ head/misc/sent/distinfo	Fri Feb  2 04:06:07 2018	(r460664)
@@ -1,3 +1,3 @@
-SHA256 (sent-0.2.tar.gz) = 53b961f9d92a277a6408df7025b4a6deae6b655a797383c93442290e45391076
-SIZE (sent-0.2.tar.gz) = 13479
-TIMESTAMP = 1463240986
+TIMESTAMP = 1517451687
+SHA256 (sent-1.tar.gz) = 7bf3de9311ce291ff36adf5315b78fa72373e3ab80ca71387fb5884bcbd7be33
+SIZE (sent-1.tar.gz) = 15285

Modified: head/misc/sent/files/patch-config.mk
==============================================================================
--- head/misc/sent/files/patch-config.mk	Fri Feb  2 04:02:34 2018	(r460663)
+++ head/misc/sent/files/patch-config.mk	Fri Feb  2 04:06:07 2018	(r460664)
@@ -1,19 +1,13 @@
---- config.mk.orig	2015-11-19 18:37:08 UTC
+--- config.mk.orig	2018-02-01 17:23:54 UTC
 +++ config.mk
-@@ -7,12 +7,12 @@ VERSION = 0.2
- PREFIX = /usr/local
- MANPREFIX = ${PREFIX}/share/man
- 
--X11INC = /usr/X11R6/include
--X11LIB = /usr/X11R6/lib
-+X11INC = /usr/local/X11R6/include
-+X11LIB = /usr/local/X11R6/lib
- 
- # includes and libs
--INCS = -I. -I/usr/include -I/usr/include/freetype2 -I${X11INC}
--LIBS = -L/usr/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11 -lpng
+@@ -16,8 +16,8 @@ LIBS = -L/usr/lib -lc -lm -L${X11LIB} -lXft -lfontconf
+ # OpenBSD (uncomment)
+ #INCS = -I. -I${X11INC} -I${X11INC}/freetype2
+ # FreeBSD (uncomment)
+-#INCS = -I. -I/usr/local/include -I/usr/local/include/freetype2 -I${X11INC}
+-#LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11
 +INCS = -I. -I/usr/local/include -I/usr/local/include/freetype2 -I${X11INC}
-+LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11 -lpng
++LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11
  
  # flags
  CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600



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