Monday, January 01, 2018

UPDATE: devel/doxygen, devel/doxygen-gui

Hi All,

please find below a simple diff to update doxygen. There are a three
notables changes:

- Remove the DOXYGEN_ENCODE_PATH_STRIP hack diff. No port uses it anymore
- Change MAINTAINER email address
- CONFIGURE_ARGS and BUILD_DEPENDS tweaks

The only one consumer opencv builds fine and generate no PLIST changes.

Ok? Comments?

Rafael


Index: devel/doxygen/Makefile
===================================================================
RCS file: /cvs/ports/devel/doxygen/Makefile,v
retrieving revision 1.44
diff -u -p -u -p -r1.44 Makefile
--- devel/doxygen/Makefile 17 Aug 2017 14:31:37 -0000 1.44
+++ devel/doxygen/Makefile 1 Jan 2018 14:12:43 -0000
@@ -7,16 +7,15 @@ BROKEN-alpha= .got subsegment exceeds 64

COMMENT= source code documentation generator tool

-VERSION= 1.8.13
+VERSION= 1.8.14
DISTNAME= doxygen-${VERSION}.src
PKGNAME= doxygen-${VERSION}
-REVISION= 0

CATEGORIES= devel textproc

HOMEPAGE= http://www.doxygen.org/

-MAINTAINER= Rafael Sadowski <rafael@sizeofvoid.org>
+MAINTAINER= Rafael Sadowski <rsadowski@openbsd.org>

# GPLv2
PERMIT_PACKAGE_CDROM= Yes
@@ -43,9 +42,9 @@ BUILD_DEPENDS+= devel/bison
RUN_DEPENDS+= print/ghostscript/gnu \
math/graphviz

-CONFIGURE_ARGS+=-Dbuild_doc:Bool=ON
-CONFIGURE_ARGS+=-Dbuild_app:Bool=ON
-CONFIGURE_ARGS+=-Dbuild_search:Bool=ON
+CONFIGURE_ARGS+=-Dbuild_doc:Bool=ON \
+ -Dbuild_app:Bool=ON \
+ -Dbuild_search:Bool=ON

WRKDIST= ${WRKDIR}/doxygen-${VERSION}

Index: devel/doxygen/distinfo
===================================================================
RCS file: /cvs/ports/devel/doxygen/distinfo,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 distinfo
--- devel/doxygen/distinfo 21 Apr 2017 19:43:38 -0000 1.11
+++ devel/doxygen/distinfo 1 Jan 2018 14:12:43 -0000
@@ -1,2 +1,2 @@
-SHA256 (doxygen-1.8.13.src.tar.gz) = r2Z4h716h9wNv5rI2GyWtVLfuMqceQ7Ry/+qYTFXP2s=
-SIZE (doxygen-1.8.13.src.tar.gz) = 4893912
+SHA256 (doxygen-1.8.14.src.tar.gz) = 0XV+AnVe9vVv1F8fQ5hZi5IDgZSNb8+lj1ymqlb1nU0=
+SIZE (doxygen-1.8.14.src.tar.gz) = 4877980
Index: devel/doxygen/patches/patch-doc_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/devel/doxygen/patches/patch-doc_CMakeLists_txt,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-doc_CMakeLists_txt
--- devel/doxygen/patches/patch-doc_CMakeLists_txt 23 Dec 2016 15:23:11 -0000 1.2
+++ devel/doxygen/patches/patch-doc_CMakeLists_txt 1 Jan 2018 14:12:43 -0000
@@ -4,29 +4,30 @@ $OpenBSD: patch-doc_CMakeLists_txt,v 1.2
- remove doxywizard.1, see devel/doxygen-gui


---- doc/CMakeLists.txt.orig Sun Sep 4 19:06:42 2016
-+++ doc/CMakeLists.txt Fri Dec 9 22:52:29 2016
-@@ -153,33 +153,15 @@ add_custom_target(doxygen_pdf
+Index: doc/CMakeLists.txt
+--- doc/CMakeLists.txt.orig
++++ doc/CMakeLists.txt
+@@ -152,12 +152,7 @@ add_custom_target(doxygen_pdf
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/latex
)
add_custom_target(docs
- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/doc/doxygen_logo.gif ${PROJECT_BINARY_DIR}/html/
- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/doc/doxygen_logo_low.gif ${PROJECT_BINARY_DIR}/html/
DEPENDS ${PROJECT_BINARY_DIR}/man/doxygen.1
- ${PROJECT_BINARY_DIR}/man/doxywizard.1
+- ${PROJECT_BINARY_DIR}/man/doxywizard.1
- ${PROJECT_BINARY_DIR}/man/doxysearch.1
- ${PROJECT_BINARY_DIR}/man/doxyindexer.1
-- doxygen_pdf
+ doxygen_pdf
VERBATIM
)
-
+@@ -165,18 +160,5 @@ add_custom_target(docs
################################################################################
install(FILES
"${PROJECT_BINARY_DIR}/man/doxygen.1"
- "${PROJECT_BINARY_DIR}/man/doxywizard.1"
- "${PROJECT_BINARY_DIR}/man/doxysearch.1"
- "${PROJECT_BINARY_DIR}/man/doxyindexer.1"
-- DESTINATION share/man/man1
+ DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
-)
-
-install(FILES
@@ -37,7 +38,4 @@ $OpenBSD: patch-doc_CMakeLists_txt,v 1.2
-install(DIRECTORY
- "${PROJECT_BINARY_DIR}/html"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/${DOC_INSTALL_DIR}"
-+ DESTINATION man/man1
)
-
- endif(build_doc)
Index: devel/doxygen/patches/patch-src_dirdef_cpp
===================================================================
RCS file: devel/doxygen/patches/patch-src_dirdef_cpp
diff -N devel/doxygen/patches/patch-src_dirdef_cpp
--- devel/doxygen/patches/patch-src_dirdef_cpp 12 Nov 2016 20:50:41 -0000 1.5
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-src_dirdef_cpp,v 1.5 2016/11/12 20:50:41 jca Exp $
---- src/dirdef.cpp.orig Sun Sep 4 19:06:42 2016
-+++ src/dirdef.cpp Mon Sep 12 07:52:20 2016
-@@ -86,10 +86,16 @@ void DirDef::sort()
-
- static QCString encodeDirName(const QCString &anchor)
- {
-+ char *name, *prefix;
- // convert to md5 hash
- uchar md5_sig[16];
- QCString sigStr(33);
-- MD5Buffer((const unsigned char *)anchor.data(),anchor.length(),md5_sig);
-+ name = (char*)anchor.data();
-+ prefix = getenv("DOXYGEN_ENCODE_PATH_STRIP");
-+ if(prefix != NULL)
-+ if (strstr(name, prefix) == name)
-+ name += strlen(prefix);
-+ MD5Buffer((const unsigned char*)name,strlen(name),md5_sig);
- MD5SigToString(md5_sig,sigStr.rawData(),33);
- return sigStr;
-
Index: devel/doxygen-gui/Makefile
===================================================================
RCS file: /cvs/ports/devel/doxygen-gui/Makefile,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 Makefile
--- devel/doxygen-gui/Makefile 17 Aug 2017 14:29:52 -0000 1.7
+++ devel/doxygen-gui/Makefile 1 Jan 2018 14:12:43 -0000
@@ -7,16 +7,15 @@ BROKEN-alpha= .got subsegment exceeds 64

COMMENT= GUI front-end for doxygen

-VERSION= 1.8.13
+VERSION= 1.8.14
DISTNAME= doxygen-${VERSION}.src
-REVISION = 1
PKGNAME= doxygen-gui-${VERSION}

CATEGORIES= devel textproc

HOMEPAGE= http://www.doxygen.org/

-MAINTAINER= Rafael Sadowski <rafael@sizeofvoid.org>
+MAINTAINER= Rafael Sadowski <rsadowski@openbsd.org>

# GPLv2
PERMIT_PACKAGE_CDROM= Yes
@@ -38,8 +37,8 @@ MODPY_RUNDEP= No
CXXFLAGS+= -mxgot
.endif

-BUILD_DEPENDS+= devel/bison
-BUILD_DEPENDS+= converters/libiconv
+BUILD_DEPENDS+= devel/bison \
+ converters/libiconv

RUN_DEPENDS= devel/doxygen

Index: devel/doxygen-gui/distinfo
===================================================================
RCS file: /cvs/ports/devel/doxygen-gui/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- devel/doxygen-gui/distinfo 21 Apr 2017 19:44:31 -0000 1.2
+++ devel/doxygen-gui/distinfo 1 Jan 2018 14:12:43 -0000
@@ -1,2 +1,2 @@
-SHA256 (doxygen-1.8.13.src.tar.gz) = r2Z4h716h9wNv5rI2GyWtVLfuMqceQ7Ry/+qYTFXP2s=
-SIZE (doxygen-1.8.13.src.tar.gz) = 4893912
+SHA256 (doxygen-1.8.14.src.tar.gz) = 0XV+AnVe9vVv1F8fQ5hZi5IDgZSNb8+lj1ymqlb1nU0=
+SIZE (doxygen-1.8.14.src.tar.gz) = 4877980

[cwm] poponbell support

Hi, all the best for 2018 !
XTerm already has it but this duty IMO belongs to the WM.
To test, add "pop yes" to ~/.cwmrc and restart cwm.

Index: calmwm.h
===================================================================
RCS file: /cvs/xenocara/app/cwm/calmwm.h,v
retrieving revision 1.351
diff -u -p -r1.351 calmwm.h
--- calmwm.h 29 Dec 2017 20:03:46 -0000 1.351
+++ calmwm.h 1 Jan 2018 12:30:09 -0000
@@ -284,6 +284,7 @@ struct conf {
struct wm_q wmq;
int ngroups;
int stickygroups;
+ int poponbell;
int nameqlen;
int bwidth;
int mamount;
Index: client.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/client.c,v
retrieving revision 1.244
diff -u -p -r1.244 client.c
--- client.c 29 Dec 2017 18:50:43 -0000 1.244
+++ client.c 1 Jan 2018 12:30:09 -0000
@@ -554,6 +554,8 @@ client_urgency(struct client_ctx *cc)
{
if (!(cc->flags & CLIENT_ACTIVE))
cc->flags |= CLIENT_URGENCY;
+ if (Conf.poponbell)
+ client_show(cc);
}

void
Index: conf.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/conf.c,v
retrieving revision 1.237
diff -u -p -r1.237 conf.c
--- conf.c 29 Dec 2017 20:03:46 -0000 1.237
+++ conf.c 1 Jan 2018 12:30:09 -0000
@@ -288,6 +288,7 @@ conf_init(struct conf *c)
unsigned int i;

c->stickygroups = 0;
+ c->poponbell = 0;
c->bwidth = 1;
c->mamount = 1;
c->snapdist = 0;
Index: cwmrc.5
===================================================================
RCS file: /cvs/xenocara/app/cwm/cwmrc.5,v
retrieving revision 1.70
diff -u -p -r1.70 cwmrc.5
--- cwmrc.5 29 Dec 2017 20:03:46 -0000 1.70
+++ cwmrc.5 1 Jan 2018 12:30:09 -0000
@@ -217,6 +217,10 @@ Set a default size for the keyboard move
in pixels.
The default is 1.
.Pp
+.It Ic pop Ic yes Ns \&| Ns Ic no
+Toggle poponbell.
+When enabled, the window in which a bell rings is shown even if it was hidden.
+.Pp
.It Ic snapdist Ar pixels
Minimum distance to snap-to adjacent edge, in pixels.
The default is 0.
Index: parse.y
===================================================================
RCS file: /cvs/xenocara/app/cwm/parse.y,v
retrieving revision 1.69
diff -u -p -r1.69 parse.y
--- parse.y 29 Dec 2017 20:03:46 -0000 1.69
+++ parse.y 1 Jan 2018 12:30:09 -0000
@@ -69,7 +69,7 @@ typedef struct {
%}

%token BINDKEY UNBINDKEY BINDMOUSE UNBINDMOUSE
-%token FONTNAME STICKY GAP
+%token FONTNAME POP STICKY GAP
%token AUTOGROUP COMMAND IGNORE WM
%token YES NO BORDERWIDTH MOVEAMOUNT
%token COLOR SNAPDIST
@@ -112,6 +112,9 @@ main : FONTNAME STRING {
free(conf->font);
conf->font = $2;
}
+ | POP yesno {
+ conf->poponbell = $2;
+ }
| STICKY yesno {
conf->stickygroups = $2;
}
@@ -320,6 +323,7 @@ lookup(char *s)
{ "menufg", MENUFG},
{ "moveamount", MOVEAMOUNT},
{ "no", NO},
+ { "pop", POP},
{ "selfont", FONTSELCOLOR},
{ "snapdist", SNAPDIST},
{ "sticky", STICKY},

--
Regards,
Julien