From 6cf942491c569dd633054be64d4b28da5bc8b934 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Tue, 8 Sep 2020 12:37:41 +0000 Subject: [PATCH] Throw in couple of cosmetic fixes and add explanatory comments for the sed(1) calls while I'm comfortable converting them to patches just yet. --- x11/glcapsviewer/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x11/glcapsviewer/Makefile b/x11/glcapsviewer/Makefile index f3a1d88a460c..009780f69057 100644 --- a/x11/glcapsviewer/Makefile +++ b/x11/glcapsviewer/Makefile @@ -31,8 +31,14 @@ post-patch: @${REINPLACE_CMD} -e 's,__linux__,__${OPSYS}__, ; /ifstream\ enumListxml/s,[^"]*ist\.xml",${DATADIR}/&,' \ ${WRKSRC}/glCapsViewer.cpp ${WRKSRC}/glCapsViewerCore.cpp +# We install provided `capslist.xml' in the ${DATADIR}, hence disable +# checking for ./capslist.xml and needlessly downloading it @${REINPLACE_CMD} -e 's,!capsXmlFile\.exists,false \&\& &,' \ ${WRKSRC}/main.cpp +# Spell XML correctly (it is an abbreviation) + @${REINPLACE_CMD} -e 's, xml, XML,' ${WRKSRC}/glCapsViewer.ui +# Copyright information does not belong in the window title + @${REINPLACE_CMD} -e 's, - [^"]*,,' ${WRKSRC}/glCapsViewerCore.h do-install: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \