X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) by lists.alpinelinux.org (Postfix) with ESMTP id 8202F5C4203 for ; Sun, 14 Aug 2016 17:09:24 +0000 (GMT) Received: by mail-oi0-f67.google.com with SMTP id e80so2809231oig.2 for ; Sun, 14 Aug 2016 10:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=KyrWzFqV1vJaz1oX1DUbBF5Mq0MZeoYPZV5HvEnuftI=; b=W+cHTL1tV7/cezT+7ciJhBbgglxJxGia5ITuRWNA7NwUuzY8R0CEobrtb5jpQ9X06t TgNBntXl6Z7/Ez/fM+ix7u4SfA4mQQwozlr9aAQ61AJl0qqfYYzIn2ygGCR45uaY5FzT 9dbbBarM61HQwGWruYcILy0MSLj5wSCO0AKvwDvajmYrjfSdeb0xJ0UgiNd6nD3UZFt7 X5iKwqLf82WG2tqQzBepWpL8mNoIDEQ8PmqPXDeLPknBtLhZOibknKdmXJkxOLAzJiDb nlEKmxGMI4xeszWxk+yMQ/Dh8MIwdFspOt2eKHziYDesRkHHPu8io1mnJcYuR8znEnkn 6QXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=KyrWzFqV1vJaz1oX1DUbBF5Mq0MZeoYPZV5HvEnuftI=; b=PjcgOsyh8Ap6BaY1u6U0p6F3PkbDhkrtTosTuPzQFMpyvf4tGDNpJBQbcXSw7G0x+d a54HYLLVWfSARjMSnoV2WtHHg7qa43/s52iLtnU9Rq0ts9w25HI54ncLxesORbqZGcL/ Qyw+z9aQ2dtiJaNj7dYbgcQWTJN/alY2V+s/LZ5D1WYJpiVBf5OdNRd+frGd/m5u2heh d/lmGYErUAAHdSBUaU9YM34r/NQZRGyWB6VP6jiYoe5t3Jgy6hx48uLfAIQZJRwR3+bA cyqCTNwva47U+7OFRSRPKb0BUMUue/YhK19i1mXTzRM0y5hsh132ZhtlqKaan1CUm48o x+Uw== X-Gm-Message-State: AEkoouv6wXH7WenAaIzK9QvYEG2cRJqH0awS6oNXstzCBS73mGcUr5kI6uwiyaikHHJytg== X-Received: by 10.202.3.4 with SMTP id 4mr3228798oid.65.1471194563927; Sun, 14 Aug 2016 10:09:23 -0700 (PDT) Received: from alp.my.domain (ip72-196-114-247.ga.at.cox.net. [72.196.114.247]) by smtp.gmail.com with ESMTPSA id c68sm4726203otb.2.2016.08.14.10.09.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Aug 2016 10:09:23 -0700 (PDT) From: Daniel Sabogal To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 1/2] main/mdocml: upgrade to 1.13.4 Date: Sun, 14 Aug 2016 13:09:10 -0400 Message-Id: <20160814170911.12729-1-dsabogalcc@gmail.com> X-Mailer: git-send-email 2.8.3 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- main/mdocml/APKBUILD | 45 +++++++++++++--------------- main/mdocml/default-pager.patch | 11 ------- main/mdocml/pager.patch | 27 +++++++++++++++++ main/mdocml/shared-libmandoc.patch | 60 +++++++++++++++++++------------------- 4 files changed, 77 insertions(+), 66 deletions(-) delete mode 100644 main/mdocml/default-pager.patch create mode 100644 main/mdocml/pager.patch diff --git a/main/mdocml/APKBUILD b/main/mdocml/APKBUILD index 096b570..c266fef 100644 --- a/main/mdocml/APKBUILD +++ b/main/mdocml/APKBUILD @@ -1,32 +1,27 @@ # Maintainer: Natanael Copa pkgname=mdocml -pkgver=1.13.3 -pkgrel=6 +pkgver=1.13.4 +pkgrel=0 pkgdesc="mdoc/man compiler" url="http://mdocml.bsd.lv/" arch="all" license="BSD" -depends= -makedepends="sqlite-dev" +depends="" +makedepends="sqlite-dev zlib-dev" install="$pkgname.post-deinstall" triggers="$pkgname-apropos.trigger=/usr/share/man/*" subpackages="$pkgname-doc $pkgname-dev man $pkgname-apropos" -source="http://mdocml.bsd.lv/snapshots/mdocml-$pkgver.tar.gz +source="http://mdocml.bsd.lv/snapshots/$pkgname-$pkgver.tar.gz shared-libmandoc.patch - default-pager.patch + pager.patch mdocml-apropos.trigger man.conf " -_builddir="$srcdir"/$pkgname-$pkgver - +builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + cd "$builddir" cat >configure.local<= 4) { +- cp = argv[0] + cmdlen - 4; +- if (strcmp(cp, "less") == 0) { +- argv[argc++] = mandoc_strdup("-T"); +- argv[argc++] = tag_files->tfn; +- } +- } + argv[argc++] = tag_files->ofn; + argv[argc] = NULL; + diff --git a/main/mdocml/shared-libmandoc.patch b/main/mdocml/shared-libmandoc.patch index c7df2fd..9f1029f 100644 --- a/main/mdocml/shared-libmandoc.patch +++ b/main/mdocml/shared-libmandoc.patch @@ -1,13 +1,11 @@ ---- ./Makefile.orig -+++ ./Makefile -@@ -267,9 +267,15 @@ +--- mdocml-1.13.4/Makefile.orig ++++ mdocml-1.13.4/Makefile +@@ -311,9 +311,13 @@ WWW_OBJS = mdocml.tar.gz \ mdocml.sha256 -+#LIBMANDOC = libmandoc.a -+#MANDICLIB = $(LIBMANDOC) -+LIBMANDOC = libmandoc.so -+MANDOCLIB = -L. -lmandoc ++LIBMANDOC = libmandoc.so ++MANDOCLIB = -L. -lmandoc + # === USER CONFIGURATION =============================================== @@ -16,7 +14,7 @@ # === DEPENDENCY HANDLING ============================================== -@@ -296,7 +302,7 @@ +@@ -340,7 +344,7 @@ rm -f Makefile.local config.h config.h.old config.log config.log.old clean: @@ -25,41 +23,43 @@ rm -f mandoc $(BASE_OBJS) $(DB_OBJS) rm -f man.cgi $(CGI_OBJS) rm -f manpage $(MANPAGE_OBJS) -@@ -314,7 +320,7 @@ - mkdir -p $(DESTDIR)$(MANDIR)/man7 +@@ -360,7 +364,7 @@ $(INSTALL_PROGRAM) mandoc demandoc $(DESTDIR)$(BINDIR) + $(INSTALL_PROGRAM) soelim $(DESTDIR)$(BINDIR)/$(BINM_SOELIM) ln -f $(DESTDIR)$(BINDIR)/mandoc $(DESTDIR)$(BINDIR)/$(BINM_MAN) - $(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR) + $(INSTALL_LIB) $(LIBMANDOC) $(DESTDIR)$(LIBDIR) - $(INSTALL_LIB) man.h mandoc.h mandoc_aux.h mdoc.h \ + $(INSTALL_LIB) man.h mandoc.h mandoc_aux.h mdoc.h roff.h \ $(DESTDIR)$(INCLUDEDIR) $(INSTALL_MAN) mandoc.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1 -@@ -366,17 +372,20 @@ - libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) - $(AR) rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) +@@ -405,20 +409,20 @@ + @echo "$@ is out of date; please run ./configure" + @exit 1 --mandoc: $(MAIN_OBJS) libmandoc.a -- $(CC) $(LDFLAGS) -o $@ $(MAIN_OBJS) libmandoc.a $(DBLIB) +-libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) +- ar rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) +libmandoc.so: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) -+ $(CC) $(LDFLAGS) -shared -o $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) ++ $(CC) $(LDFLAGS) -shared -o $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) $(LDADD) --manpage: $(MANPAGE_OBJS) libmandoc.a -- $(CC) $(LDFLAGS) -o $@ $(MANPAGE_OBJS) libmandoc.a $(DBLIB) +-mandoc: $(MAIN_OBJS) libmandoc.a +- $(CC) -o $@ $(LDFLAGS) $(MAIN_OBJS) libmandoc.a $(LDADD) +mandoc: $(MAIN_OBJS) $(LIBMANDOC) -+ $(CC) $(LDFLAGS) -o $@ $(MAIN_OBJS) $(MANDOCLIB) $(DBLIB) ++ $(CC) -o $@ $(LDFLAGS) $(MAIN_OBJS) $(MANDOCLIB) $(LDADD) --man.cgi: $(CGI_OBJS) libmandoc.a -- $(CC) $(LDFLAGS) $(STATIC) -o $@ $(CGI_OBJS) libmandoc.a $(DBLIB) +-manpage: $(MANPAGE_OBJS) libmandoc.a +- $(CC) -o $@ $(LDFLAGS) $(MANPAGE_OBJS) libmandoc.a $(LDADD) +manpage: $(MANPAGE_OBJS) $(LIBMANDOC) -+ $(CC) $(LDFLAGS) -o $@ $(MANPAGE_OBJS) $(MANDOCLIB) $(DBLIB) ++ $(CC) -o $@ $(LDFLAGS) $(MANPAGE_OBJS) $(MANDOCLIB) $(LDADD) --demandoc: $(DEMANDOC_OBJS) libmandoc.a -- $(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a +-man.cgi: $(CGI_OBJS) libmandoc.a +- $(CC) $(STATIC) -o $@ $(LDFLAGS) $(CGI_OBJS) libmandoc.a $(LDADD) +man.cgi: $(CGI_OBJS) $(LIBMANDOC) -+ $(CC) $(LDFLAGS) $(STATIC) -o $@ $(CGI_OBJS) $(MANDOCLIB) $(DBLIB) -+ -+demandoc: $(DEMANDOC_OBJS) $(LIBMANDOC) -+ $(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) $(MANDOCLIB) ++ $(CC) $(STATIC) -o $@ $(LDFLAGS) $(CGI_OBJS) $(MANDOCLIB) $(LDADD) - # --- maintainer targets --- +-demandoc: $(DEMANDOC_OBJS) libmandoc.a +- $(CC) -o $@ $(LDFLAGS) $(DEMANDOC_OBJS) libmandoc.a $(LDADD) ++demandoc: $(DEMANDOC_OBJS) $(LIBMANDOC) ++ $(CC) -o $@ $(LDFLAGS) $(DEMANDOC_OBJS) $(MANDOCLIB) $(LDADD) + soelim: $(SOELIM_OBJS) + $(CC) -o $@ $(LDFLAGS) $(SOELIM_OBJS) -- 2.8.3 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---