pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libgourou: add new package and a dependency it needs, uPDFParser
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sun Nov 22 14:52:16 2026 +0100
Changeset: 28af2dbaa1e5ebcc426b827229c81b91239923a7
Modified Files:
Makefile
Added Files:
libgourou/DESCR
libgourou/Makefile
libgourou/PLIST
libgourou/distinfo
libgourou/patches/patch-Makefile
uPDFParser/DESCR
uPDFParser/Makefile
uPDFParser/PLIST
uPDFParser/buildlink3.mk
uPDFParser/distinfo
Log Message:
libgourou: add new package and a dependency it needs, uPDFParser
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=28af2dbaa1e5ebcc426b827229c81b91239923a7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 3 +++
libgourou/DESCR | 3 +++
libgourou/Makefile | 37 +++++++++++++++++++++++++++++++++++++
libgourou/PLIST | 13 +++++++++++++
libgourou/distinfo | 6 ++++++
libgourou/patches/patch-Makefile | 15 +++++++++++++++
uPDFParser/DESCR | 3 +++
uPDFParser/Makefile | 28 ++++++++++++++++++++++++++++
uPDFParser/PLIST | 6 ++++++
uPDFParser/buildlink3.mk | 12 ++++++++++++
uPDFParser/distinfo | 5 +++++
11 files changed, 131 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index dd31f557b7..08848746cf 100644
--- a/Makefile
+++ b/Makefile
@@ -1511,6 +1511,7 @@ SUBDIR+= guile-colorized
SUBDIR+= guile-fibers
SUBDIR+= guile-g-golf
SUBDIR+= guile-goblins
+SUBDIR+= guile-hoot
SUBDIR+= guile-persist
SUBDIR+= guile-reader
SUBDIR+= guile-sjson
@@ -2106,6 +2107,7 @@ SUBDIR+= libglvnd
SUBDIR+= libgnome-java
SUBDIR+= libgnome-keyring
SUBDIR+= libgnomekbd
+SUBDIR+= libgourou
SUBDIR+= libgraphqlparser
SUBDIR+= libgrass5
SUBDIR+= libgringotts
@@ -5949,6 +5951,7 @@ SUBDIR+= u-boot-rock5b
SUBDIR+= u-boot-sifive-unleashed
SUBDIR+= u-boot-tools
SUBDIR+= u-boot-visionfive2
+SUBDIR+= uPDFParser
SUBDIR+= uTox-git
SUBDIR+= uade
SUBDIR+= uchime
diff --git a/libgourou/DESCR b/libgourou/DESCR
new file mode 100644
index 0000000000..9db152fa0a
--- /dev/null
+++ b/libgourou/DESCR
@@ -0,0 +1,3 @@
+libgourou is a free implementation of Adobe's ADEPT protocol used
+to add DRM on ePub/PDF files. It overcomes the lack of Adobe support
+for Linux platforms.
diff --git a/libgourou/Makefile b/libgourou/Makefile
new file mode 100644
index 0000000000..77a9864b8a
--- /dev/null
+++ b/libgourou/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME= v0.9
+PKGNAME= libgourou-${DISTNAME:S/v//g}
+CATEGORIES= textproc
+MASTER_SITES= https://forge.soutade.fr/soutade/libgourou/archive/
+DIST_SUBDIR= libgourou
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://forge.soutade.fr/soutade/libgourou/
+COMMENT= Free implementation of Adobe's ADEPT protocol
+LICENSE= gnu-lgpl-v3
+
+WRKSRC= ${WRKDIR}/libgourou
+USE_TOOLS+= gmake
+USE_LANGUAGES= c c++
+
+MAKE_FLAGS+= UPDFPARSERLIB=${BUILDLINK_PREFIX.uPDFParser}/lib/libupdfparser.so
+MAKE_FLAGS+= MANDIR=/${PKGMANDIR}
+
+REPLACE_SH+= scripts/setup.sh
+
+INSTALLATION_DIRS+= share/doc/libgourou
+
+# work around for using pkgsrc udfparser library
+pre-build:
+ ${MKDIR} -p ${WRKSRC}/lib/updfparser
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/libgourou
+
+.include "../../archivers/libzip/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/pugixml/buildlink3.mk"
+.include "../../wip/uPDFParser/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libgourou/PLIST b/libgourou/PLIST
new file mode 100644
index 0000000000..c05c5ade59
--- /dev/null
+++ b/libgourou/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+bin/acsmdownloader
+bin/adept_activate
+bin/adept_loan_mgt
+bin/adept_remove
+lib/libgourou.so
+lib/libgourou.so.0
+lib/libgourou.so.${PKGVERSION}
+man/man1/acsmdownloader.1
+man/man1/adept_activate.1
+man/man1/adept_loan_mgt.1
+man/man1/adept_remove.1
+share/doc/libgourou/README.md
diff --git a/libgourou/distinfo b/libgourou/distinfo
new file mode 100644
index 0000000000..59335ec79b
--- /dev/null
+++ b/libgourou/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (libgourou/v0.9.tar.gz) = e5234e18597a6dcfd4082b52650d2992c51eaa8ec0dce1f19588d93f65a79930
+SHA512 (libgourou/v0.9.tar.gz) = 9d1804efcc66689e3dda3060443cdfce16a553770e8e973c3eb990845076879beaf78a8ebf9d1b496defbcaf4c602d8528f0e214242ec02f146e13c187e40c7b
+Size (libgourou/v0.9.tar.gz) = 55613 bytes
+SHA1 (patch-Makefile) = face3f0b00911a51062275c542594212a80d4694
diff --git a/libgourou/patches/patch-Makefile b/libgourou/patches/patch-Makefile
new file mode 100644
index 0000000000..0bcd959b2f
--- /dev/null
+++ b/libgourou/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Avoid unportable cp(1) flag.
+
+--- Makefile.orig 2026-11-08 19:27:52.000000000 +0000
++++ Makefile
+@@ -107,7 +107,7 @@ install: $(TARGET_LIBRARIES)
+ install: $(TARGET_LIBRARIES)
+ install -d $(DESTDIR)$(PREFIX)$(LIBDIR)
+ # Use cp to preserver symlinks
+- cp --no-dereference $(TARGET_LIBRARIES) $(DESTDIR)$(PREFIX)$(LIBDIR)
++ cp -R $(TARGET_LIBRARIES) $(DESTDIR)$(PREFIX)$(LIBDIR)
+ $(MAKE) -C utils ROOT=$(PWD) CXX=$(CXX) AR=$(AR) DEBUG=$(DEBUG) STATIC_UTILS=$(STATIC_UTILS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
+
+ uninstall:
diff --git a/uPDFParser/DESCR b/uPDFParser/DESCR
new file mode 100644
index 0000000000..30fde8adfb
--- /dev/null
+++ b/uPDFParser/DESCR
@@ -0,0 +1,3 @@
+A very simple PDF parser that will load PDF objects without
+interpretation (zlib, streams, string encoding...). It's also
+possible to write a new PDF or update one.
diff --git a/uPDFParser/Makefile b/uPDFParser/Makefile
new file mode 100644
index 0000000000..857cd62196
--- /dev/null
+++ b/uPDFParser/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+DISTNAME= v0.1
+PKGNAME= uPDFParser-${DISTNAME:S,^v,,}
+CATEGORIES= print
+MASTER_SITES= https://forge.soutade.fr/soutade/uPDFParser/archive/
+DIST_SUBDIR= uPDFParser
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://forge.soutade.fr/soutade/updfparser
+COMMENT= Very simple PDF parser to load PDF objects without interpretation
+LICENSE= gnu-gpl-v3
+
+WRKSRC= ${WRKDIR}/updfparser
+USE_LANGUAGES= c++
+USE_TOOLS+= gmake
+# just builds a test binary
+#TEST_TARGET= test
+MAKE_FLAGS+= BUILD_SHARED=1
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
+
+INSTALLATION_DIRS+= include lib
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${PREFIX}/include
+ ${INSTALL_LIB} ${WRKSRC}/*.so ${DESTDIR}${PREFIX}/lib
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/uPDFParser/PLIST b/uPDFParser/PLIST
new file mode 100644
index 0000000000..4d3221deb9
--- /dev/null
+++ b/uPDFParser/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+include/uPDFObject.h
+include/uPDFParser.h
+include/uPDFParser_common.h
+include/uPDFTypes.h
+lib/libupdfparser.so
diff --git a/uPDFParser/buildlink3.mk b/uPDFParser/buildlink3.mk
new file mode 100644
index 0000000000..31a7f04517
--- /dev/null
+++ b/uPDFParser/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= uPDFParser
+
+.if !defined(UPDFPARSER_BUILDLINK3_MK)
+UPDFPARSER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.uPDFParser+= uPDFParser>=0.1
+BUILDLINK_PKGSRCDIR.uPDFParser?= ../../wip/uPDFParser
+.endif # UPDFPARSER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -uPDFParser
diff --git a/uPDFParser/distinfo b/uPDFParser/distinfo
new file mode 100644
index 0000000000..1792b09021
--- /dev/null
+++ b/uPDFParser/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (uPDFParser/v0.1.tar.gz) = 4e992c703601d579e01c42c7308349b15337d4a064c8300b1b5e0e30c397e595
+SHA512 (uPDFParser/v0.1.tar.gz) = fe90e45aebbe1f60010778002191be53955d6608d37dba05778eb43dc5d8933d0daf57d49635d97405cefefaf5ddd5916b9895cafd90367a22f4a9fdbcb3526a
+Size (uPDFParser/v0.1.tar.gz) = 14537 bytes
Home |
Main Index |
Thread Index |
Old Index