Date: Fri, 13 Mar 2009 23:36:21 +0100 (CET) From: bapt <baptiste.daroussin@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: des@FreeBSD.org Subject: ports/132614: [PATCH] shells/zsh: Add support for gdbm bindings Message-ID: <20090313223621.858CAF1B12@wicklow.lan> Resent-Message-ID: <200903132240.n2DMe2WM037413@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132614 >Category: ports >Synopsis: [PATCH] shells/zsh: Add support for gdbm bindings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 13 22:40:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: bapt >Release: FreeBSD 7.1-PRERELEASE i386 >Organization: >Environment: System: FreeBSD wicklow.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #7: Mon Oct 13 22:58:33 CEST 2008 >Description: [DESCRIBE CHANGES] Add support for zsh/db/gdbm module, default to off (because it changes the license of the binary from ZSH to GPL) small fixes to be more portlint compliant Don't know if a warning should be added when gdbm support is added about the license (the configure script does it) Port maintainer (des@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- zsh-4.3.9_5.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/shells/zsh/Makefile,v retrieving revision 1.111 diff -u -r1.111 Makefile --- Makefile 21 Jan 2009 16:00:26 -0000 1.111 +++ Makefile 13 Mar 2009 22:32:31 -0000 @@ -36,7 +36,8 @@ ZSH_MAILDIR "Enable support for Maildirs in MAIL(PATH)" on \ ZSH_MULTIBYTE "Enable multibyte character support" on \ ZSH_PCRE "Enable PCRE support" off \ - ZSH_STATIC "Build static executable" off + ZSH_STATIC "Build static executable" off \ + ZSH_GDBM "Enable GDBM module" off PLIST_SUB+= ZSH_VER="${ZSH_VER}" @@ -61,6 +62,15 @@ PLIST_SUB+= PCRE="@comment " .endif +.if defined(WITH_ZSH_GDBM) +CONFIGURE_ARGS+= --enable-gdbm +LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm +PLIST_SUB+= GDBM="" +.else +CONFIGURE_ARGS+= --disable-gdbm +PLIST_SUB+= GDBM="@comment " +.endif + .if defined(WITH_ZSH_MEM) CONFIGURE_ARGS+= --enable-zsh-mem --enable-zsh-secure-free .endif @@ -84,7 +94,6 @@ CONFIGURE_ARGS+= --disable-multibyte .endif - post-patch: @${SED} -i "" -e "s,link=dynamic,link=either," \ ${WRKSRC}/Src/Modules/*.mdd @@ -127,7 +136,7 @@ setopt extendedglob; \ for i in ${DATADIR}/${ZSH_VER}/functions/**/*(/) ; do \ zcompile -U -M $$i.zwc $$i/*~*.zwc(^/) ; \ - chmod 644 $$i.zwc ; \ + ${CHMOD} 644 $$i.zwc ; \ done' .include <bsd.port.post.mk> Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/shells/zsh/pkg-plist,v retrieving revision 1.44 diff -u -r1.44 pkg-plist --- pkg-plist 5 Dec 2008 13:20:00 -0000 1.44 +++ pkg-plist 13 Mar 2009 22:32:32 -0000 @@ -25,6 +25,7 @@ %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/newuser.so %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/parameter.so %%PCRE%%%%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/pcre.so +%%GDBM%%%%SHARED%%lib/zsh%%ZSH_VER%%/zsh/db/gdbm.so %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/regex.so %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/rlimits.so %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/sched.so @@ -40,6 +41,7 @@ %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/zselect.so %%SHARED%%lib/zsh/%%ZSH_VER%%/zsh/zutil.so %%SHARED%%@dirrm lib/zsh/%%ZSH_VER%%/zsh/net +%%GDBM%%%%SHARED%%@dirrm lib/zsh/%%ZSH_VER%%/zsh/db %%SHARED%%@dirrm lib/zsh/%%ZSH_VER%%/zsh %%SHARED%%@dirrm lib/zsh/%%ZSH_VER%% %%SHARED%%@dirrm lib/zsh --- zsh-4.3.9_5.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090313223621.858CAF1B12>