mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
ports-mgmt/portrac: fix port for pkgng
PR: 186963 Submitted by: lchen@zen.lhaven.homeip.net Approved by: mgp@e-soul.org (maintainer timeout)
This commit is contained in:
parent
868f6dc661
commit
b5ed8deedd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364661
@ -1,9 +1,8 @@
|
||||
# Created by: mgp
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= portrac
|
||||
PORTVERSION= 0.4
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= http://e-soul.org/distfiles/ \
|
||||
http://home.e-soul.org/~mgp/distfiles/
|
||||
@ -11,7 +10,7 @@ MASTER_SITES= http://e-soul.org/distfiles/ \
|
||||
MAINTAINER= mgp@e-soul.org
|
||||
COMMENT= Simple GUI tool for tracking port updates
|
||||
|
||||
LICENSE= BSD
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
PLIST_FILES= bin/portrac \
|
||||
share/portrac/portrac.png \
|
||||
@ -23,6 +22,10 @@ PLIST_DIRS= share/portrac
|
||||
USES= qmake tar:bzip2
|
||||
USE_QT4= gui moc_build
|
||||
|
||||
.if defined(WITH_PKGNG)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-PortChecker.cc
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/portrac ${STAGEDIR}${PREFIX}/bin && \
|
||||
${MKDIR} ${STAGEDIR}${DATADIR} && \
|
||||
|
12
ports-mgmt/portrac/files/extra-patch-PortChecker.cc
Normal file
12
ports-mgmt/portrac/files/extra-patch-PortChecker.cc
Normal file
@ -0,0 +1,12 @@
|
||||
--- PortChecker.cc.orig 2011-05-29 04:27:22.000000000 -0500
|
||||
+++ PortChecker.cc 2014-02-22 14:26:23.633015152 -0600
|
||||
@@ -88,7 +88,7 @@
|
||||
{
|
||||
index = (preferences->getPreference(INDEX_PREF).c_str());
|
||||
}
|
||||
- execl("/usr/sbin/pkg_version", "pkg_version", "-I", index, (char *) 0);
|
||||
+ execl("/usr/sbin/pkg", "pkg", "version", "-I", index, (char *) 0);
|
||||
perror("execl");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user