svn commit: r416116 - head/sysutils/qtpass
Kurt Jaeger
pi at FreeBSD.org
Sun May 29 16:48:55 UTC 2016
Author: pi
Date: Sun May 29 16:48:54 2016
New Revision: 416116
URL: https://svnweb.freebsd.org/changeset/ports/416116
Log:
sysutils/qtpass: improve port
- install the icon for qtpass
- install qtpass-desktop file
- drop buildtools and linguisttools from the runtime dependencies
- instead of defining a do-install target, fix qtpass.pro to work with
the ports system [that change is probably up for debate...].
PR: 204122
Submitted by: Tobias C.Berner <tcberner at gmail.com> (kde)
Modified:
head/sysutils/qtpass/Makefile
Modified: head/sysutils/qtpass/Makefile
==============================================================================
--- head/sysutils/qtpass/Makefile Sun May 29 16:14:37 2016 (r416115)
+++ head/sysutils/qtpass/Makefile Sun May 29 16:48:54 2016 (r416116)
@@ -3,7 +3,8 @@
PORTNAME= qtpass
PORTVERSION= 1.1.1
DISTVERSIONPREFIX=v
-CATEGORIES=sysutils
+PORTREVISION= 1
+CATEGORIES= sysutils
MAINTAINER= brouwer at annejan.com
COMMENT= Qt GUI for pass, the standard unix password manager
@@ -12,14 +13,29 @@ LICENSE= GPLv3
RUN_DEPENDS= pass:sysutils/password-store
-USES= qmake
+USES= qmake:outsource
USE_GITHUB= yes
GH_ACCOUNT= IJhack
-USE_QT5= buildtools core gui linguisttools network widgets
+USE_QT5= buildtools_build core gui linguisttools_build network widgets
USE_GL= gl
-PLIST_FILES= bin/qtpass
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/qtpass ${STAGEDIR}${PREFIX}/bin
+PLIST_FILES= bin/qtpass \
+ share/pixmaps/qtpass.png
+
+# Create a desktop entry for the port.
+DESKTOP_ENTRIES= "QtPass" "" \
+ "${PREFIX}/share/pixmaps/qtpass.png" \
+ "${PREFIX}/bin/qtpass" \
+ "Security;Utility;" true
+
+post-patch:
+# The project file assumes PREFIX is the bin-dir. We pass PREFIX=${LOCALBASE}
+# so we have to append bin to target.path.
+ ${REINPLACE_CMD} -e '/target.path/s,$$,bin,' ${WRKSRC}/qtpass.pro
+
+# Install the icon of the port.
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/artwork/icon.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/qtpass.png
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list