diff options
author | prlw1 <prlw1@pkgsrc.org> | 2021-05-04 14:12:05 +0000 |
---|---|---|
committer | prlw1 <prlw1@pkgsrc.org> | 2021-05-04 14:12:05 +0000 |
commit | c764672342e26dfcf131370d29b9488eb5a479a6 (patch) | |
tree | 7c2737cc884c0a2b1bc8f983d8424dbec8801d28 /print/libharu | |
parent | bf814d169605266fac4fd6cbc1457af52f8eb0e9 (diff) | |
download | pkgsrc-c764672342e26dfcf131370d29b9488eb5a479a6.tar.gz |
Add libharu 2.4.0
Version 2.4.0 is the name given by kitware to version 2.3.0 + 2 patches
Haru is a free, cross platform, open-sourced software library for generating
PDF. It supports the following features:
1. Generating PDF files with lines, text, images.
2. Outline, text annotation, link annotation.
3. Compressing document with deflate-decode.
4. Embedding PNG, Jpeg images.
5. Embedding Type1 font and TrueType font.
6. Creating encrypted PDF files.
7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI8-R).
8. Supporting CJK fonts and encodings.
The project is looking for a maintainer.
Diffstat (limited to 'print/libharu')
-rw-r--r-- | print/libharu/DESCR | 13 | ||||
-rw-r--r-- | print/libharu/Makefile | 40 | ||||
-rw-r--r-- | print/libharu/PLIST | 35 | ||||
-rw-r--r-- | print/libharu/buildlink3.mk | 15 | ||||
-rw-r--r-- | print/libharu/distinfo | 14 |
5 files changed, 117 insertions, 0 deletions
diff --git a/print/libharu/DESCR b/print/libharu/DESCR new file mode 100644 index 00000000000..d02b9c6f8e9 --- /dev/null +++ b/print/libharu/DESCR @@ -0,0 +1,13 @@ +Haru is a free, cross platform, open-sourced software library for generating +PDF. It supports the following features: + + 1. Generating PDF files with lines, text, images. + 2. Outline, text annotation, link annotation. + 3. Compressing document with deflate-decode. + 4. Embedding PNG, Jpeg images. + 5. Embedding Type1 font and TrueType font. + 6. Creating encrypted PDF files. + 7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI8-R). + 8. Supporting CJK fonts and encodings. + +The project is looking for a maintainer. diff --git a/print/libharu/Makefile b/print/libharu/Makefile new file mode 100644 index 00000000000..4690d018050 --- /dev/null +++ b/print/libharu/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2021/05/04 14:12:05 prlw1 Exp $ + +PKGNAME= libharu-2.4.0 +DISTNAME= libharu-2.3.0 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_GITHUB:=libharu/} +GITHUB_TAG= RELEASE_2_3_0 +DIST_SUBDIR= libharu + +# Kitware (vtk) calls this version 2.4.0 with the addition of +PATCHFILES= 157.diff 187.diff +PATCH_SITES= ${MASTER_SITE_GITHUB:=libharu/}libharu/pull/ + +MAINTAINER= prlw1@cam.ac.uk +HOMEPAGE= https://github.com/libharu/libharu/ +COMMENT= Software library for generating PDF +LICENSE= zlib + +USE_CMAKE= yes +USE_LANGUAGES= c c++ + + +CMAKE_ARGS+= -DLIBHPDF_STATIC=OFF + +PATCH_DIST_STRIP= -p1 +SUBST_CLASSES+= version +SUBST_STAGE.version= pre-configure +SUBST_MESSAGE.version= Change version to 2.4.0 +SUBST_FILES.version= include/hpdf_version.h +SUBST_SED.version= -e 's/3/4/' +SUBST_SED.version+= -e 's/RC2/dev/' + +INSTALLATION_DIRS= include lib +do-install: + ${INSTALL_DATA} ${WRKSRC}/include/*.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/src/libhpdf.so ${DESTDIR}${PREFIX}/lib + +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/print/libharu/PLIST b/print/libharu/PLIST new file mode 100644 index 00000000000..3aa36601b11 --- /dev/null +++ b/print/libharu/PLIST @@ -0,0 +1,35 @@ +@comment $NetBSD: PLIST,v 1.1 2021/05/04 14:12:05 prlw1 Exp $ +include/hpdf.h +include/hpdf_3dmeasure.h +include/hpdf_annotation.h +include/hpdf_catalog.h +include/hpdf_conf.h +include/hpdf_config.h +include/hpdf_consts.h +include/hpdf_destination.h +include/hpdf_doc.h +include/hpdf_encoder.h +include/hpdf_encrypt.h +include/hpdf_encryptdict.h +include/hpdf_error.h +include/hpdf_exdata.h +include/hpdf_ext_gstate.h +include/hpdf_font.h +include/hpdf_fontdef.h +include/hpdf_gstate.h +include/hpdf_image.h +include/hpdf_info.h +include/hpdf_list.h +include/hpdf_mmgr.h +include/hpdf_namedict.h +include/hpdf_objects.h +include/hpdf_outline.h +include/hpdf_page_label.h +include/hpdf_pages.h +include/hpdf_pdfa.h +include/hpdf_streams.h +include/hpdf_types.h +include/hpdf_u3d.h +include/hpdf_utils.h +include/hpdf_version.h +lib/libhpdf.so diff --git a/print/libharu/buildlink3.mk b/print/libharu/buildlink3.mk new file mode 100644 index 00000000000..be405317e37 --- /dev/null +++ b/print/libharu/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/05/04 14:12:05 prlw1 Exp $ + +BUILDLINK_TREE+= libharu + +.if !defined(LIBHARU_BUILDLINK3_MK) +LIBHARU_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libharu+= libharu>=2.4.0 +BUILDLINK_PKGSRCDIR.libharu?= ../../print/libharu + +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.endif # LIBHARU_BUILDLINK3_MK + +BUILDLINK_TREE+= -libharu diff --git a/print/libharu/distinfo b/print/libharu/distinfo new file mode 100644 index 00000000000..eb18c2061a9 --- /dev/null +++ b/print/libharu/distinfo @@ -0,0 +1,14 @@ +$NetBSD: distinfo,v 1.1 2021/05/04 14:12:05 prlw1 Exp $ + +SHA1 (libharu/157.diff) = afe64b18d45496403871a55ff85d6bdfa9761635 +RMD160 (libharu/157.diff) = 5ad7c01511cd944b2f5aaa594f9d12bfccadd140 +SHA512 (libharu/157.diff) = f2ddb22b54b4eccc79400b6a4b2d245a221898f75456a5a559523eab7a523a87dfc5dfd0ec5fb17a771697e03c7ea6ed4c6095eff73e0a4302cd6eb24584c957 +Size (libharu/157.diff) = 15274 bytes +SHA1 (libharu/187.diff) = 421a60d6e092c6266bebcfcad51ca8feac28dc7e +RMD160 (libharu/187.diff) = 54a3f93274c420738fc0732c02fb9897fd6ab153 +SHA512 (libharu/187.diff) = f0d9b0774f108d1dc09b62428ae568c4ca0ed6116209418dbe2d430f2ac6b9ad7fdfb5cf7dd7eec6a45980981be2182c19ed05a44a9d732abe9d79a79c44591f +Size (libharu/187.diff) = 2416 bytes +SHA1 (libharu/libharu-2.3.0.tar.gz) = 434177d4baaf2a37b2d2d16467dd786961919e0d +RMD160 (libharu/libharu-2.3.0.tar.gz) = c90ec08c3cc04e4d93f6aa9565368dd3a31a74bc +SHA512 (libharu/libharu-2.3.0.tar.gz) = ebcabf1e8488e21185a231e97b4c16f9de742ae0ac2ebc7535b72b6b8e2045c2619bc6a94a820f7f923b0dfeceb217408f4e4c613ef3602104373cdf000d3f41 +Size (libharu/libharu-2.3.0.tar.gz) = 1396413 bytes |