pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/jemalloc



Module Name:    pkgsrc
Committed By:   cheusov
Date:           Wed May  8 18:16:39 UTC 2024

Modified Files:
        pkgsrc/devel/jemalloc: Makefile PLIST options.mk

Log Message:
Add option "doc" for disabling heavy dependency on docbook-xsl and libxslt.
  Approved by gson@


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/jemalloc/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/jemalloc/PLIST \
    pkgsrc/devel/jemalloc/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/devel/jemalloc/Makefile
diff -u pkgsrc/devel/jemalloc/Makefile:1.24 pkgsrc/devel/jemalloc/Makefile:1.25
--- pkgsrc/devel/jemalloc/Makefile:1.24 Tue Jun  6 12:40:38 2023
+++ pkgsrc/devel/jemalloc/Makefile      Wed May  8 18:16:39 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2023/06/06 12:40:38 riastradh Exp $
+# $NetBSD: Makefile,v 1.25 2024/05/08 18:16:39 cheusov Exp $
 
 DISTNAME=      jemalloc-5.3.0
 PKGREVISION=   1
@@ -12,9 +12,6 @@ HOMEPAGE=     http://jemalloc.net/
 COMMENT=       General purpose malloc(3) implementation
 LICENSE=       2-clause-bsd
 
-TOOL_DEPENDS+=         libxslt-[0-9]*:../../textproc/libxslt
-TOOL_DEPENDS+=         docbook-xsl-[0-9]*:../../textproc/docbook-xsl
-
 USE_LANGUAGES=         c
 USE_TOOLS+=            autoconf automake aclocal gmake perl:run
 GNU_CONFIGURE=         yes
@@ -29,5 +26,7 @@ BUILD_TARGET=         all dist
 TEST_TARGET=           check
 TEST_ENV=              LD_LIBRARY_PATH=${WRKSRC}/lib
 
+PRINT_PLIST_AWK+=      { if (/^share\/doc/) $$0 = "$${PLIST.doc}" $$0 }
+
 .include "options.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/jemalloc/PLIST
diff -u pkgsrc/devel/jemalloc/PLIST:1.1 pkgsrc/devel/jemalloc/PLIST:1.2
--- pkgsrc/devel/jemalloc/PLIST:1.1     Thu Feb 18 15:51:59 2016
+++ pkgsrc/devel/jemalloc/PLIST Wed May  8 18:16:39 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2016/02/18 15:51:59 gson Exp $
+@comment $NetBSD: PLIST,v 1.2 2024/05/08 18:16:39 cheusov Exp $
 bin/jemalloc-config
 bin/jemalloc.sh
 bin/jeprof
@@ -8,5 +8,5 @@ lib/libjemalloc.so
 lib/libjemalloc.so.2
 lib/libjemalloc_pic.a
 lib/pkgconfig/jemalloc.pc
-man/man3/jemalloc.3
-share/doc/jemalloc/jemalloc.html
+${PLIST.doc}man/man3/jemalloc.3
+${PLIST.doc}share/doc/jemalloc/jemalloc.html
Index: pkgsrc/devel/jemalloc/options.mk
diff -u pkgsrc/devel/jemalloc/options.mk:1.1 pkgsrc/devel/jemalloc/options.mk:1.2
--- pkgsrc/devel/jemalloc/options.mk:1.1        Sun Mar 17 13:28:22 2019
+++ pkgsrc/devel/jemalloc/options.mk    Wed May  8 18:16:39 2024
@@ -1,10 +1,21 @@
-# $NetBSD: options.mk,v 1.1 2019/03/17 13:28:22 rin Exp $
+# $NetBSD: options.mk,v 1.2 2024/05/08 18:16:39 cheusov Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.jemalloc
-PKG_SUPPORTED_OPTIONS=         debug
+PKG_SUPPORTED_OPTIONS=         debug doc
+PKG_SUGGESTED_OPTIONS=         doc
+
+PLIST_VARS+=                   doc
 
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Mdebug)
 CONFIGURE_ARGS+=       --enable-debug
 .endif
+
+.if !empty(PKG_OPTIONS:Mdoc)
+TOOL_DEPENDS+=         docbook-xsl-[0-9]*:../../textproc/docbook-xsl
+TOOL_DEPENDS+=         libxslt-[0-9]*:../../textproc/libxslt
+PLIST.doc=             yes
+.else
+CONFIGURE_ARGS+=       --disable-doc
+.endif



Home | Main Index | Thread Index | Old Index