aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.licenses.mk
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2016-03-21 22:34:05 +0800
committertijl <tijl@FreeBSD.org>2016-03-21 22:34:05 +0800
commit0b19822b8c515cac75f91033e3a7abcd7f3ab51f (patch)
tree1357d46169e9982764842453fa9ad623131dff70 /Mk/bsd.licenses.mk
parent786875b08a3d2d5ec74aa5834feb607c00a348fc (diff)
downloadfreebsd-ports-gnome-0b19822b8c515cac75f91033e3a7abcd7f3ab51f.tar.gz
freebsd-ports-gnome-0b19822b8c515cac75f91033e3a7abcd7f3ab51f.tar.zst
freebsd-ports-gnome-0b19822b8c515cac75f91033e3a7abcd7f3ab51f.zip
Replace the license dialog menu and "View license" screen with one --yesno
dialog. This also folds long lines. PR: 208180 Approved by: portmgr (mat)
Diffstat (limited to 'Mk/bsd.licenses.mk')
-rw-r--r--Mk/bsd.licenses.mk14
1 files changed, 3 insertions, 11 deletions
diff --git a/Mk/bsd.licenses.mk b/Mk/bsd.licenses.mk
index c498044da8ce..da3f75173610 100644
--- a/Mk/bsd.licenses.mk
+++ b/Mk/bsd.licenses.mk
@@ -611,17 +611,9 @@ ${_LICENSE_COOKIE}:
. if !defined(NO_LICENSES_DIALOGS)
# Dialog interface
. if ${_LICENSE_COMB} == "single"
- @trap '${RM} -f $$tmpfile' EXIT INT TERM; \
- tmpfile=$$(mktemp -t portlicenses); \
- while true; do \
- ${DIALOG} --menu "License for ${PKGNAME} (${_LICENSE})" 21 70 15 accept "Accept license" reject "Reject license" view "View license" 2>"$${tmpfile}"; \
- result=`${CAT} $${tmpfile}`; \
- case $${result} in \
- accept) break ;; \
- reject) exit 1;; \
- view) ${DIALOG} --textbox "${_LICENSE_FILE}" 21 75 ;; \
- esac; \
- done
+ @${DIALOG} --title "License for ${PKGNAME} (${_LICENSE})" \
+ --yes-label Accept --no-label Reject --yesno \
+ "$$(${CAT} ${_LICENSE_FILE})" 21 76
. elif ${_LICENSE_COMB} == "dual"
@${RM} -f ${_LICENSE_ASK_DATA}
tr>* Remove USE_GNOMENG.marcus2003-04-201-1/+0 * devel/allegro: updating to 4.1.4 (devel version).edwin2003-03-308-39/+141 * Suppress command echo.olgeni2003-02-231-1/+1 * De-pkg-comment.knu2003-02-212-1/+1 * Fix allegro-config --libs to report correct library and bump PORTREVISION.pat2002-11-241-1/+3 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-1/+1 * - Fix LIB_DEPENDSijliao2002-11-078-57/+853 * upgrade to 4.0.2ijliao2002-10-226-248/+43 * Remove some extra files that are apparently not being built in thekris2002-10-021-4/+0 * Fix plist and installationkris2002-09-182-3/+7 * Drop maintainership.olgeni2002-09-161-2/+2 * Use proper names for installed libraries.olgeni2002-03-282-2/+7 * Unbreak and fix the bogus plist.olgeni2002-03-252-39/+31 * BROKEN: plist incorrectkris2002-03-251-0/+2 * Update port to version 4.0.0.olgeni2002-02-246-291/+419 * Allow this port to support arbitrary versions of autoconf.will2002-01-072-10/+5 * Fix port build on bento.olgeni2001-12-16