--- net/sacc/Makefile (nonexistent) +++ net/sacc/Makefile (working copy) @@ -0,0 +1,40 @@ +# Created by: Stefan Hagen +# $FreeBSD$ + +PORTNAME= sacc +PORTVERSION= v1.00 +CATEGORIES= net +MASTER_SITES= ftp://bitreich.org/releases/sacc/ + +MAINTAINER= sh@codevoid.de +COMMENT= Sacc(omys), simple console gopher client + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= xdg-open:devel/xdg-utils + +OPTIONS_DEFINE= TXT RIFLE +TXT_DESC= Use text UI instead of curses (not recommended) +RIFLE_DESC= Use rifle instead of xdg-open (requires sysutils/py-ranger) + +USES=tar:tgz + +.include + +.if ${PORT_OPTIONS:MRIFLE} +RUN_DEPENDS+= rifle:sysutils/py-ranger +.endif + +post-patch-TXT-on: + @${REINPLACE_CMD} -e 's/^UI=ti/#UI=ti/' ${WRKSRC}/config.mk + @${REINPLACE_CMD} -e 's/^LIBS=-lcurses/#LIBS=-lcurses/' ${WRKSRC}/config.mk + @${REINPLACE_CMD} -e 's/^#UI=txt/UI=txt/' ${WRKSRC}/config.mk + +post-patch-RIFLE-on: + @${REINPLACE_CMD} -e 's/xdg-open/rifle/' ${WRKSRC}/config.def.h + +post-patch: + @${REINPLACE_CMD} -e 's|SACCCFLAGS =.*|SACCCFLAGS = |' ${WRKSRC}/Makefile + +.include --- net/sacc/distinfo (nonexistent) +++ net/sacc/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1526245226 +SHA256 (sacc-v1.00.tgz) = e4cc0fe68e4fa5b75eb2fcf750d4d9d10cf22db41ae8f256748d8458a268bf66 +SIZE (sacc-v1.00.tgz) = 11164 --- net/sacc/pkg-descr (nonexistent) +++ net/sacc/pkg-descr (working copy) @@ -0,0 +1,5 @@ +Sacc(omys), simple console gopher client +is a fast and small terminal gopher client +written in C. + +WWW: https://git.fifth.space/sacc/ --- net/sacc/pkg-plist (nonexistent) +++ net/sacc/pkg-plist (working copy) @@ -0,0 +1,2 @@ +bin/sacc +share/man/man1/sacc.1