Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2013 00:19:42 +0400 (MSK)
From:      Maxim Samsonov <xors@mailup.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/182383: [MAINTAINER-UPDATE]: graphics/apvlv Convert to stage and options helpers
Message-ID:  <20130925201942.2AD7220B6@oak.spinney.org>
Resent-Message-ID: <201309252020.r8PKK1EL006232@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         182383
>Category:       ports
>Synopsis:       [MAINTAINER-UPDATE]: graphics/apvlv Convert to stage and options helpers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 25 20:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Maxim Samsonov
>Release:        FreeBSD 9.2-STABLE amd64
>Organization:
>Environment:
>Description:
- Add staging support
- Use options helpers
>How-To-Repeat:
>Fix:
--- graphics_apvlv.patch begins here ---
diff --git a/graphics/apvlv/Makefile b/graphics/apvlv/Makefile
--- a/graphics/apvlv/Makefile
+++ b/graphics/apvlv/Makefile
@@ -22,28 +22,16 @@
 		-DAPVLV_WITH_UMD=OFF \
 		-DAPVLV_WITH_TXT=ON
 
-MAN1=		apvlv.1
-
 OPTIONS_DEFINE=	DJVU WEBKIT
 
-DJVU_DESC=	Build with DjVu support
-WEBKIT_DESC=	Build with WebKit support
+DJVU_DESC=	DjVu document support
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+DJVU_CMAKE_ON=	-DAPVLV_WITH_DJVU=ON
+DJVU_CMAKE_OFF=	-DAPVLV_WITH_DJVU=OFF
+DJVU_LIB_DEPENDS=	djvulibre:${PORTSDIR}/graphics/djvulibre
 
-.if ${PORT_OPTIONS:MDJVU}
-CMAKE_ARGS+=	-DAPVLV_WITH_DJVU=ON
-LIB_DEPENDS+=	djvulibre:${PORTSDIR}/graphics/djvulibre
-.else
-CMAKE_ARGS+=	-DAPVLV_WITH_DJVU=OFF
-.endif
-
-.if ${PORT_OPTIONS:MWEBKIT}
-CMAKE_ARGS+=	-DAPVLV_WITH_HTML=ON
-LIB_DEPENDS+=	webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2
-.else
-CMAKE_ARGS+=	-DAPVLV_WITH_HTML=OFF
-.endif
+WEBKIT_CMAKE_ON=	-DAPVLV_WITH_HTML=ON
+WEBKIT_CMAKE_OFF=	-DAPVLV_WITH_HTML=OFF
+WEBKIT_LIB_DEPENDS=	webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2
 
 .include <bsd.port.mk>
diff --git a/graphics/apvlv/pkg-plist b/graphics/apvlv/pkg-plist
--- a/graphics/apvlv/pkg-plist
+++ b/graphics/apvlv/pkg-plist
@@ -1,5 +1,6 @@
 bin/apvlv
 etc/apvlvrc
+man/man1/apvlv.1.gz
 %%DOCSDIR%%/Startup.pdf
 %%DOCSDIR%%/Startup.tex
 %%DOCSDIR%%/apvlvrc.example
--- graphics_apvlv.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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