pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/htop



Module Name:    pkgsrc
Committed By:   kim
Date:           Tue Oct  4 07:14:57 UTC 2022

Modified Files:
        pkgsrc/sysutils/htop: Makefile options.mk

Log Message:
htop: Fix options for selecting curses type

Users can now select ncurses for enabling unicode characters on NetBSD.
It was not sufficient (or even correct, most likely) to use "wide-curses"
for this.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/sysutils/htop/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/htop/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/htop/Makefile
diff -u pkgsrc/sysutils/htop/Makefile:1.30 pkgsrc/sysutils/htop/Makefile:1.31
--- pkgsrc/sysutils/htop/Makefile:1.30  Sun Sep 25 09:53:28 2022
+++ pkgsrc/sysutils/htop/Makefile       Tue Oct  4 07:14:57 2022
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.30 2022/09/25 09:53:28 kim Exp $
+# $NetBSD: Makefile,v 1.31 2022/10/04 07:14:57 kim Exp $
 
 DISTNAME=      htop-3.2.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=htop-dev/}
 
@@ -16,12 +16,6 @@ USE_TOOLS+=  autoreconf automake
 USE_CURSES=    getmouse
 
 .include "options.mk"
-.include "../../mk/curses.buildlink3.mk"
-
-.if ${CURSES_TYPE} != "ncursesw"
-# See netbsd/README.md
-CONFIGURE_ARGS+=       --disable-unicode
-.endif
 
 pre-configure:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./autogen.sh

Index: pkgsrc/sysutils/htop/options.mk
diff -u pkgsrc/sysutils/htop/options.mk:1.1 pkgsrc/sysutils/htop/options.mk:1.2
--- pkgsrc/sysutils/htop/options.mk:1.1 Sun Sep 25 09:53:28 2022
+++ pkgsrc/sysutils/htop/options.mk     Tue Oct  4 07:14:57 2022
@@ -1,10 +1,20 @@
-# $NetBSD: options.mk,v 1.1 2022/09/25 09:53:28 kim Exp $
+# $NetBSD: options.mk,v 1.2 2022/10/04 07:14:57 kim Exp $
 
-PKG_OPTIONS_VAR=       PKG_OPTIONS.htop
+PKG_OPTIONS_VAR=               PKG_OPTIONS.htop
 
 PKG_OPTIONS_REQUIRED_GROUPS+=  curses
-PKG_OPTIONS_GROUP.curses=      curses wide-curses
+PKG_OPTIONS_GROUP.curses=      curses ncurses
 
 PKG_SUGGESTED_OPTIONS=         curses
 
 .include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mncurses)
+. include "../../devel/ncursesw/buildlink3.mk"
+.else
+. include "../../mk/curses.buildlink3.mk"
+. if ${CURSES_TYPE} != "ncursesw"
+# See netbsd/README.md
+CONFIGURE_ARGS+=               --disable-unicode
+. endif
+.endif



Home | Main Index | Thread Index | Old Index