[gentoo-commits] repo/gentoo:master commit in: app-text/lowdown/files/, app-text/lowdown/

2023-11-08 Thread Patrick McLean
commit: 47c19800a58c623edcb78a3d73834e45190da8a3
Author: Patrick McLean  gentoo  org>
AuthorDate: Wed Nov  8 19:14:57 2023 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed Nov  8 19:15:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47c19800

app-text/lowdown: add 1.1.0

Signed-off-by: Patrick McLean  gentoo.org>

 app-text/lowdown/Manifest  |  1 +
 .../files/lowdown-1.1.0-shared-linking.patch   | 45 +++
 app-text/lowdown/lowdown-1.1.0.ebuild  | 67 ++
 3 files changed, 113 insertions(+)

diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest
index a865f110db26..354ed952a545 100644
--- a/app-text/lowdown/Manifest
+++ b/app-text/lowdown/Manifest
@@ -1,2 +1,3 @@
 DIST lowdown-1.0.0.tar.gz 576167 BLAKE2B 
fec9857ef1110f4767ff6244dcf06fa9c69a56d4b8709217cf05a148757512e2cb8c141b112673f0cffa260d7e2c376b9905bb16092e3f97f97007dcef922bcb
 SHA512 
fe18db1f3d6dbc4fe0ae33ebcdeb1646b20d6fedd265e29d53475f7931b5b60329a653f9af864a39ff4caa0131751fcb0d94cb9519401a3479ada29bd7b8
 DIST lowdown-1.0.1.tar.gz 583848 BLAKE2B 
f0794168f496a3ddd418f27ef0b9bd9fc248f67cabad248ebda0d4b2393efeae083b1de991bf7bd27ff9ae7accd2966b0c69f6bdb54e8a7d7ba1998617de0122
 SHA512 
ed9fb0162705aa34a69867bd532f22743321e68f93ce0d8909290e2215044d90969e513a772288374d1653eb25336d955dfc8b9394a146cdbe88809bed6ef2f2
+DIST lowdown-1.1.0.tar.gz 599219 BLAKE2B 
f623399cb41c5eaf180550283c5b2738993563ff30be4cfa1a471df036ed4289057d3f886a7727d85283896fbfe1316e9cc86d32c629cea1fd775af16cf58839
 SHA512 
b7b788694abf6760ca4abbd8d5d2c226d5406067ebf9b55307f136e1ab373e517fb20187659c09029463872310a5b39a0129842d1bc6b7bd64f2d440390e2676

diff --git a/app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch 
b/app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch
new file mode 100644
index ..bdee817b8895
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-1.1.0-shared-linking.patch
@@ -0,0 +1,45 @@
+diff --git a/Makefile b/Makefile
+index 32acb09..552d6d3 100644
+--- a/Makefile
 b/Makefile
+@@ -184,11 +184,11 @@ installwww: www
+   $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots
+   $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots
+ 
+-lowdown: liblowdown.a main.o
+-  $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) $(LDADD_MD5) -lm $(LDADD)
++lowdown: liblowdown.so main.o compats.o
++  $(CC) -o $@ main.o compats.o -L. -llowdown $(LDFLAGS) $(LDADD_MD5) -lm 
$(LDADD)
+ 
+ lowdown-diff: lowdown
+-  ln -f lowdown lowdown-diff
++  ln -s lowdown lowdown-diff
+ 
+ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+   $(AR) rs $@ $(OBJS) $(COMPAT_OBJS)
+@@ -206,14 +206,14 @@ uninstall:
+   rm -f $(MANDIR)/man$$section/$$name ; \
+   done
+ 
+-install: bins
++install: bins install_libs
+   mkdir -p $(DESTDIR)$(BINDIR)
+   mkdir -p $(DESTDIR)$(MANDIR)/man1
+   mkdir -p $(DESTDIR)$(MANDIR)/man5
+   mkdir -p $(DESTDIR)$(SHAREDIR)/lowdown/odt
+   $(INSTALL_DATA) share/odt/styles.xml $(DESTDIR)$(SHAREDIR)/lowdown/odt
+   $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+-  $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
++  ln -s lowdown $(DESTDIR)$(BINDIR)/lowdown-diff
+   for f in $(MAN1S) $(MAN5S) ; do \
+   name=`basename $$f .html` ; \
+   section=$${name##*.} ; \
+@@ -256,7 +256,7 @@ install_static: liblowdown.a install_lib_common
+ 
+ uninstall_libs: uninstall_shared uninstall_static
+ 
+-install_libs: install_shared install_static
++install_libs: install_shared
+ 
+ distcheck: lowdown.tar.gz.sha512
+   mandoc -Tlint -Werror man/*.[135]

diff --git a/app-text/lowdown/lowdown-1.1.0.ebuild 
b/app-text/lowdown/lowdown-1.1.0.ebuild
new file mode 100644
index ..e196abb00f7a
--- /dev/null
+++ b/app-text/lowdown/lowdown-1.1.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic
+
+MY_PV="VERSION_${PV//./_}"
+DESCRIPTION="Markdown translator producing HTML5, roff documents in the ms and 
man formats"
+HOMEPAGE="https://kristaps.bsd.lv/lowdown/;
+SRC_URI="https://github.com/kristapsdz/lowdown/archive/refs/tags/${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="ISC"
+SLOT="0/2"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+DEPEND="
+   virtual/libcrypt:=
+"
+RDEPEND="
+   ${DEPEND}
+"
+
+# configure tests for a bunch of BSD functions on Linux
+QA_CONFIG_IMPL_DECL_SKIP=(
+   crypt_newhash
+   crypt_checkpass
+   warnc
+   errc
+   getexecname
+   getprogname
+   memset_s
+   pledge
+   recallocarray
+   strlcat
+   strlcpy
+   strtonum
+   TAILQ_FOREACH_SAFE
+   unveil
+)
+
+PATCHES=(
+   "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch"
+   "${FILESDIR}/lowdown-1.1.0-shared-linking.patch"
+)
+

[gentoo-commits] repo/gentoo:master commit in: app-text/lowdown/files/, app-text/lowdown/

2023-04-20 Thread Patrick McLean
commit: 3c569d19e6c3ae8ca757a60e6e23f050df0389d2
Author: Patrick McLean  gentoo  org>
AuthorDate: Thu Apr 20 22:03:41 2023 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Thu Apr 20 22:03:41 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c569d19

app-text/lowdown: add 1.0.1

Signed-off-by: Patrick McLean  gentoo.org>

 app-text/lowdown/Manifest  |  1 +
 app-text/lowdown/files/lowdown-1.0.1-linking.patch | 45 ++
 app-text/lowdown/lowdown-1.0.1.ebuild  | 68 ++
 3 files changed, 114 insertions(+)

diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest
index e8087ff30be1..a865f110db26 100644
--- a/app-text/lowdown/Manifest
+++ b/app-text/lowdown/Manifest
@@ -1 +1,2 @@
 DIST lowdown-1.0.0.tar.gz 576167 BLAKE2B 
fec9857ef1110f4767ff6244dcf06fa9c69a56d4b8709217cf05a148757512e2cb8c141b112673f0cffa260d7e2c376b9905bb16092e3f97f97007dcef922bcb
 SHA512 
fe18db1f3d6dbc4fe0ae33ebcdeb1646b20d6fedd265e29d53475f7931b5b60329a653f9af864a39ff4caa0131751fcb0d94cb9519401a3479ada29bd7b8
+DIST lowdown-1.0.1.tar.gz 583848 BLAKE2B 
f0794168f496a3ddd418f27ef0b9bd9fc248f67cabad248ebda0d4b2393efeae083b1de991bf7bd27ff9ae7accd2966b0c69f6bdb54e8a7d7ba1998617de0122
 SHA512 
ed9fb0162705aa34a69867bd532f22743321e68f93ce0d8909290e2215044d90969e513a772288374d1653eb25336d955dfc8b9394a146cdbe88809bed6ef2f2

diff --git a/app-text/lowdown/files/lowdown-1.0.1-linking.patch 
b/app-text/lowdown/files/lowdown-1.0.1-linking.patch
new file mode 100644
index ..26996956ff58
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-1.0.1-linking.patch
@@ -0,0 +1,45 @@
+diff --git a/Makefile b/Makefile
+index 775aef1..c7094f8 100644
+--- a/Makefile
 b/Makefile
+@@ -173,11 +173,11 @@ installwww: www
+   $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots
+   $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots
+ 
+-lowdown: liblowdown.a main.o
+-  $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) $(LDADD_MD5) -lm $(LDADD)
++lowdown: liblowdown.so main.o
++  $(CC) -o $@ main.o -L. -llowdown $(LDFLAGS) $(LDADD_MD5) -lm $(LDADD)
+ 
+ lowdown-diff: lowdown
+-  ln -f lowdown lowdown-diff
++  ln -s lowdown lowdown-diff
+ 
+ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+   $(AR) rs $@ $(OBJS) $(COMPAT_OBJS)
+@@ -186,14 +186,14 @@ liblowdown.so: $(OBJS) $(COMPAT_OBJS)
+   $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) 
$(LDADD_MD5) -lm -Wl,${LINKER_SONAME},$@.$(LIBVER) $(LDLIBS)
+   ln -sf $@.$(LIBVER) $@
+ 
+-install: bins
++install: bins install_libs
+   mkdir -p $(DESTDIR)$(BINDIR)
+   mkdir -p $(DESTDIR)$(MANDIR)/man1
+   mkdir -p $(DESTDIR)$(MANDIR)/man5
+   mkdir -p $(DESTDIR)$(SHAREDIR)/lowdown/odt
+   $(INSTALL_DATA) share/odt/styles.xml $(DESTDIR)$(SHAREDIR)/lowdown/odt
+   $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+-  $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
++  ln -s lowdown $(DESTDIR)$(BINDIR)/lowdown-diff
+   for f in $(MAN1S) $(MAN5S) ; do \
+   name=`basename $$f .html` ; \
+   section=$${name##*.} ; \
+@@ -219,7 +219,7 @@ install_shared: liblowdown.so install_lib_common
+ install_static: liblowdown.a install_lib_common
+   $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR)
+ 
+-install_libs: install_shared install_static
++install_libs: install_shared
+ 
+ distcheck: lowdown.tar.gz.sha512
+   mandoc -Tlint -Werror man/*.[135]

diff --git a/app-text/lowdown/lowdown-1.0.1.ebuild 
b/app-text/lowdown/lowdown-1.0.1.ebuild
new file mode 100644
index ..177c7a8af1d3
--- /dev/null
+++ b/app-text/lowdown/lowdown-1.0.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic
+
+MY_PV="VERSION_${PV//./_}"
+DESCRIPTION="Markdown translator producing HTML5, roff documents in the ms and 
man formats"
+HOMEPAGE="https://kristaps.bsd.lv/lowdown/;
+SRC_URI="https://github.com/kristapsdz/lowdown/archive/refs/tags/${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="ISC"
+SLOT="0/2"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+DEPEND="
+   virtual/libcrypt:=
+"
+RDEPEND="
+   ${DEPEND}
+"
+
+# configure tests for a bunch of BSD functions on Linux
+QA_CONFIG_IMPL_DECL_SKIP=(
+   crypt_newhash
+   crypt_checkpass
+   warnc
+   errc
+   getexecname
+   getprogname
+   memset_s
+   pledge
+   recallocarray
+   strlcat
+   strlcpy
+   strtonum
+   TAILQ_FOREACH_SAFE
+   unveil
+)
+
+PATCHES=(
+   "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch"
+   "${FILESDIR}/lowdown-1.0.1-linking.patch"
+)
+
+src_configure() {
+   append-flags -fPIC
+   tc-export CC AR
+
+   ./configure \
+   PREFIX="/usr" \
+   MANDIR="/usr/share/man" \
+   

[gentoo-commits] repo/gentoo:master commit in: app-text/lowdown/files/, app-text/lowdown/

2022-03-09 Thread Patrick McLean
commit: 537bd5f5dea823e71d408e31f1c839891fc8b294
Author: Patrick McLean  gentoo  org>
AuthorDate: Thu Mar 10 00:24:38 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Thu Mar 10 00:24:38 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=537bd5f5

app-text/lowdown: Version bump to 0.11.1 (fix #832797)

Closes: https://bugs.gentoo.org/832797
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Patrick McLean  gentoo.org>

 app-text/lowdown/Manifest  |  1 +
 .../lowdown/files/lowdown-0.11.1-linking.patch | 33 
 app-text/lowdown/lowdown-0.11.1.ebuild | 45 ++
 3 files changed, 79 insertions(+)

diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest
index e1d3afdf8827..0a116aa9f30c 100644
--- a/app-text/lowdown/Manifest
+++ b/app-text/lowdown/Manifest
@@ -1,2 +1,3 @@
 DIST lowdown-0.10.0.tar.gz 547397 BLAKE2B 
93d87e3aca2466398a625750b928062fbafd26311899e52ddd8264218675e78d30714c920f3331619fcd510a92cc6046401c946f5bd1465d6fd46f26937318ac
 SHA512 
7454e618607628ec0a1649f44f5ec64f8778ecaa151f6aad4984935e297abfe8e84ffc321d3c93cec5d336ff14b6bf9a0ff9054e7363cc58ba708a5b60db9048
+DIST lowdown-0.11.1.tar.gz 571320 BLAKE2B 
28fe8cb4f164618be602770c602f3ce51c0f0e765fb9869b82cb29c50bdbe0fd92c09c10074d8968108eca59096d7e176531eb56cb2b40f1d9c00a3f944e3b8c
 SHA512 
5a8ca9d731171b97daed7a9095bc4206d2bed9095fa267eb9270782770247743f1a096c5235fd301320418c37a478fbc71552ade105eba0e756ff687835d4efb
 DIST lowdown-0.8.4.tar.gz 520735 BLAKE2B 
dc66b92f285b186ca83b9fad1cccfef9b395233ef56756e9ea9071b5502cd81dc6ce2d67d7ef265dab8953010af0907cd76125cd4442cfbfc2bcf8c63e097809
 SHA512 
cd46ead69ed038bf3ccf848b784327d66c78dd8adbc9ae4bfee660b9b1e52844ac8c7ad0377f8f38a3fee0d2e523f979a22d6b547c7964304accef0951cfca34

diff --git a/app-text/lowdown/files/lowdown-0.11.1-linking.patch 
b/app-text/lowdown/files/lowdown-0.11.1-linking.patch
new file mode 100644
index ..89595d54fb02
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.11.1-linking.patch
@@ -0,0 +1,33 @@
+diff --git a/Makefile b/Makefile
+index 7705432..4208e47 100644
+--- a/Makefile
 b/Makefile
+@@ -173,8 +173,8 @@ installwww: www
+   $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots
+   $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots
+ 
+-lowdown: liblowdown.a main.o
+-  $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) $(LDADD_MD5) -lm
++lowdown: liblowdown.so main.o
++  $(CC) -o $@ main.o $(LDADD_MD5) -lm -llowdown $(LDFLAGS)
+ 
+ lowdown-diff: lowdown
+   ln -f lowdown lowdown-diff
+@@ -183,7 +183,7 @@ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+   $(AR) rs $@ $(OBJS) $(COMPAT_OBJS)
+ 
+ liblowdown.so: $(OBJS) $(COMPAT_OBJS)
+-  $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) 
$(LDADD_MD5) -Wl,-soname,$@.$(LIBVER)
++  $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) 
$(LDADD_MD5) -lm  -Wl,-soname,$@.$(LIBVER)
+   ln -sf $@.$(LIBVER) $@
+ 
+ install: bins
+@@ -218,7 +218,7 @@ install_shared: liblowdown.so install_lib_common
+ install_static: liblowdown.a install_lib_common
+   $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR)
+ 
+-install_libs: install_shared install_static
++install_libs: install_shared
+ 
+ distcheck: lowdown.tar.gz.sha512
+   mandoc -Tlint -Werror man/*.[135]

diff --git a/app-text/lowdown/lowdown-0.11.1.ebuild 
b/app-text/lowdown/lowdown-0.11.1.ebuild
new file mode 100644
index ..203b145ffc66
--- /dev/null
+++ b/app-text/lowdown/lowdown-0.11.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic
+
+MY_PV="VERSION_${PV//./_}"
+DESCRIPTION="Markdown translator producing HTML5, roff documents in the ms and 
man formats"
+HOMEPAGE="https://kristaps.bsd.lv/lowdown/;
+SRC_URI="https://github.com/kristapsdz/lowdown/archive/refs/tags/${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="virtual/libcrypt:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch"
+   "${FILESDIR}/lowdown-0.11.1-linking.patch"
+)
+
+src_configure() {
+   append-flags -fPIC
+   tc-export CC AR
+
+   ./configure \
+   PREFIX="/usr" \
+   MANDIR="/usr/share/man" \
+   LDFLAGS="${LDFLAGS}" \
+   CPPFLAGS="${CPPFLAGS}" \
+   LIBDIR="/usr/$(get_libdir)" \
+   || die "./configure failed"
+}
+
+src_compile() {
+   emake $(usex elibc_musl UTF8_LOCALE=C.UTF-8 '')
+}
+
+src_test() {
+   emake regress
+}



[gentoo-commits] repo/gentoo:master commit in: app-text/lowdown/files/, app-text/lowdown/

2022-02-05 Thread Patrick McLean
commit: 3fb23e1b4ca03f356c8757cfd6c2396bd62d1df2
Author: Patrick McLean  gentoo  org>
AuthorDate: Sun Feb  6 04:29:38 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Sun Feb  6 04:30:13 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fb23e1b

app-text/lowdown: Add -lmd to pkgconfig (bug #832590)

Also install lowdown.so symlink

Closes: https://bugs.gentoo.org/832590
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Patrick McLean  gentoo.org>

 app-text/lowdown/files/lowdown-0.10.0-linking.patch   |  7 +++
 app-text/lowdown/files/lowdown-0.10.0-pkgconfig-libmd.patch   | 11 +++
 .../{lowdown-0.10.0.ebuild => lowdown-0.10.0-r1.ebuild}   |  1 +
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/app-text/lowdown/files/lowdown-0.10.0-linking.patch 
b/app-text/lowdown/files/lowdown-0.10.0-linking.patch
index e0ab7285e07a..1581e94b7c9d 100644
--- a/app-text/lowdown/files/lowdown-0.10.0-linking.patch
+++ b/app-text/lowdown/files/lowdown-0.10.0-linking.patch
@@ -23,16 +23,15 @@ index d013a1c..c9de4d4 100644
  
  install: all
mkdir -p $(DESTDIR)$(BINDIR)
-@@ -153,7 +154,7 @@ install: all
-   $(INSTALL_DATA) lowdown.pc $(DESTDIR)$(LIBDIR)/pkgconfig
+@@ -153,6 +154,7 @@ install: all
$(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
--  $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
+   $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
 +  $(INSTALL_LIB) liblowdown.so.1 $(DESTDIR)$(LIBDIR)
$(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
for f in $(MANS) ; do \
name=`basename $$f .html` ; \
-@@ -271,7 +272,7 @@ main.o: lowdown.h
+@@ -271,7 +273,7 @@ main.o: lowdown.h
  
  clean:
rm -f $(OBJS) $(COMPAT_OBJS) main.o

diff --git a/app-text/lowdown/files/lowdown-0.10.0-pkgconfig-libmd.patch 
b/app-text/lowdown/files/lowdown-0.10.0-pkgconfig-libmd.patch
new file mode 100644
index ..0337f3d68d99
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-pkgconfig-libmd.patch
@@ -0,0 +1,11 @@
+diff --git a/lowdown.in.pc b/lowdown.in.pc
+index 078d0c0..a31aaac 100644
+--- a/lowdown.in.pc
 b/lowdown.in.pc
+@@ -9,5 +9,5 @@ URL: https://kristaps.bsd.lv/lowdown
+ Version: @VERSION@
+ Requires:
+ Libs.private: 
+-Libs: -L${libdir} -llowdown -lm
++Libs: -L${libdir} -llowdown -lm -lmd
+ Cflags: -I${includedir}

diff --git a/app-text/lowdown/lowdown-0.10.0.ebuild 
b/app-text/lowdown/lowdown-0.10.0-r1.ebuild
similarity index 95%
rename from app-text/lowdown/lowdown-0.10.0.ebuild
rename to app-text/lowdown/lowdown-0.10.0-r1.ebuild
index a38987c1e1aa..c0a7c32c57ec 100644
--- a/app-text/lowdown/lowdown-0.10.0.ebuild
+++ b/app-text/lowdown/lowdown-0.10.0-r1.ebuild
@@ -22,6 +22,7 @@ PATCHES=(
"${FILESDIR}/lowdown-0.10.0-shared-library.patch"
"${FILESDIR}/lowdown-0.10.0-dont-install-static-lib.patch"
"${FILESDIR}/lowdown-0.10.0-linking.patch"
+   "${FILESDIR}/lowdown-0.10.0-pkgconfig-libmd.patch"
 )
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: app-text/lowdown/files/, app-text/lowdown/

2022-01-29 Thread Patrick McLean
commit: f105d97dc268c469b1cdc2f503d68ec77007c684
Author: Patrick McLean  gentoo  org>
AuthorDate: Sat Jan 29 20:37:00 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Sat Jan 29 20:37:14 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f105d97d

app-text/lowdown: Bump to 0.10.0, install lib (bug #81)

Closes: https://bugs.gentoo.org/81
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Patrick McLean  gentoo.org>

 app-text/lowdown/Manifest  |  1 +
 .../lowdown-0.10.0-dont-install-static-lib.patch   | 12 +
 .../lowdown/files/lowdown-0.10.0-linking.patch | 43 ++
 .../files/lowdown-0.10.0-shared-library.patch  | 53 ++
 app-text/lowdown/lowdown-0.10.0.ebuild | 46 +++
 5 files changed, 155 insertions(+)

diff --git a/app-text/lowdown/Manifest b/app-text/lowdown/Manifest
index ba3e9378cc09..e1d3afdf8827 100644
--- a/app-text/lowdown/Manifest
+++ b/app-text/lowdown/Manifest
@@ -1 +1,2 @@
+DIST lowdown-0.10.0.tar.gz 547397 BLAKE2B 
93d87e3aca2466398a625750b928062fbafd26311899e52ddd8264218675e78d30714c920f3331619fcd510a92cc6046401c946f5bd1465d6fd46f26937318ac
 SHA512 
7454e618607628ec0a1649f44f5ec64f8778ecaa151f6aad4984935e297abfe8e84ffc321d3c93cec5d336ff14b6bf9a0ff9054e7363cc58ba708a5b60db9048
 DIST lowdown-0.8.4.tar.gz 520735 BLAKE2B 
dc66b92f285b186ca83b9fad1cccfef9b395233ef56756e9ea9071b5502cd81dc6ce2d67d7ef265dab8953010af0907cd76125cd4442cfbfc2bcf8c63e097809
 SHA512 
cd46ead69ed038bf3ccf848b784327d66c78dd8adbc9ae4bfee660b9b1e52844ac8c7ad0377f8f38a3fee0d2e523f979a22d6b547c7964304accef0951cfca34

diff --git 
a/app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch 
b/app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch
new file mode 100644
index ..4a120c32ed29
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-dont-install-static-lib.patch
@@ -0,0 +1,12 @@
+diff --git a/Makefile b/Makefile
+index f13a364..d013a1c 100644
+--- a/Makefile
 b/Makefile
+@@ -153,7 +153,6 @@ install: all
+   $(INSTALL_DATA) lowdown.pc $(DESTDIR)$(LIBDIR)/pkgconfig
+   $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+   $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
+-  $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR)
+   $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
+   $(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
+   for f in $(MANS) ; do \

diff --git a/app-text/lowdown/files/lowdown-0.10.0-linking.patch 
b/app-text/lowdown/files/lowdown-0.10.0-linking.patch
new file mode 100644
index ..e0ab7285e07a
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-linking.patch
@@ -0,0 +1,43 @@
+diff --git a/Makefile b/Makefile
+index d013a1c..c9de4d4 100644
+--- a/Makefile
 b/Makefile
+@@ -130,8 +130,8 @@ installwww: www
+   $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots
+   $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots
+ 
+-lowdown: liblowdown.a main.o
+-  $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) $(LDADD_MD5) -lm
++lowdown: liblowdown.so main.o
++  $(CC) -o $@ main.o -L. -llowdown $(LDFLAGS) $(LDADD_MD5) -lm
+ 
+ lowdown-diff: lowdown
+   ln -f lowdown lowdown-diff
+@@ -141,7 +141,8 @@ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+ 
+ 
+ liblowdown.so: $(OBJS) $(COMPAT_OBJS)
+-  $(CC) -shared -o $@ $(OBJS) $(COMPAT_OBJS) $(LDFLAGS)
++  $(CC) -shared -o $@.1 $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) -Wl,-soname,$@.1
++  ln -s $@.1 $@
+ 
+ install: all
+   mkdir -p $(DESTDIR)$(BINDIR)
+@@ -153,7 +154,7 @@ install: all
+   $(INSTALL_DATA) lowdown.pc $(DESTDIR)$(LIBDIR)/pkgconfig
+   $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR)
+   $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR)
+-  $(INSTALL_LIB) liblowdown.so $(DESTDIR)$(LIBDIR)
++  $(INSTALL_LIB) liblowdown.so.1 $(DESTDIR)$(LIBDIR)
+   $(INSTALL_DATA) lowdown.h $(DESTDIR)$(INCLUDEDIR)
+   for f in $(MANS) ; do \
+   name=`basename $$f .html` ; \
+@@ -271,7 +272,7 @@ main.o: lowdown.h
+ 
+ clean:
+   rm -f $(OBJS) $(COMPAT_OBJS) main.o
+-  rm -f lowdown lowdown-diff liblowdown.a liblowdown.so lowdown.pc
++  rm -f lowdown lowdown-diff liblowdown.a liblowdown.so liblowdown.so.1 
lowdown.pc
+   rm -f index.xml diff.xml diff.diff.xml README.xml lowdown.tar.gz.sha512 
lowdown.tar.gz
+   rm -f $(PDFS) $(HTMLS) $(THUMBS)
+   rm -f index.latex.aux index.latex.latex index.latex.log index.latex.out

diff --git a/app-text/lowdown/files/lowdown-0.10.0-shared-library.patch 
b/app-text/lowdown/files/lowdown-0.10.0-shared-library.patch
new file mode 100644
index ..0adfe762fb57
--- /dev/null
+++ b/app-text/lowdown/files/lowdown-0.10.0-shared-library.patch
@@ -0,0 +1,53 @@
+commit e33536ae131e31adf77d3258c0cdd3da10868534
+Author: Kristaps Dz 
+Date:   Thu Nov 4 12:27:21 2021 +
+
+Generate a shared library