diff --git a/print/Makefile b/print/Makefile index a0ab32b9ea00..550ec7fa3165 100644 --- a/print/Makefile +++ b/print/Makefile @@ -1,268 +1,269 @@ COMMENT = Desktop publishing SUBDIR += R-cran-knitr SUBDIR += R-cran-tinytex SUBDIR += a2pdf SUBDIR += a2ps SUBDIR += abcm2ps SUBDIR += adobe-cmaps SUBDIR += afm SUBDIR += alignmargins SUBDIR += ansiprint SUBDIR += asprint SUBDIR += auctex SUBDIR += bibcursed SUBDIR += bibview SUBDIR += brlaser SUBDIR += c2ps SUBDIR += catdvi SUBDIR += cdlabelgen SUBDIR += cups SUBDIR += cups-bjnp SUBDIR += cups-filters SUBDIR += cups-fxlinuxprint SUBDIR += cups-pdf SUBDIR += cups-pk-helper SUBDIR += cups-smb-backend SUBDIR += deforaos-pdfviewer SUBDIR += derelict-ft SUBDIR += detex SUBDIR += dot2tex SUBDIR += dvi2tty SUBDIR += dvips2ascii SUBDIR += dvisvg SUBDIR += dymo-cups-drivers SUBDIR += easylatex SUBDIR += enscript-a4 SUBDIR += enscript-letter SUBDIR += enscript-letterdj SUBDIR += epson-inkjet-printer-201401w SUBDIR += epson-inkjet-printer-201601w SUBDIR += epson-inkjet-printer-escpr SUBDIR += epson-inkjet-printer-escpr2 SUBDIR += epsonepl SUBDIR += fig2dev SUBDIR += flpsed SUBDIR += font-amsfonts SUBDIR += font2svg SUBDIR += fontforge SUBDIR += foo2zjs SUBDIR += foomatic-db SUBDIR += foomatic-db-engine SUBDIR += foomatic-db-hpijs SUBDIR += foomatic-filters SUBDIR += fpc-libcups SUBDIR += fpdf SUBDIR += freetype SUBDIR += freetype2 SUBDIR += ft2demos SUBDIR += ghostscript7-base SUBDIR += ghostscript7-commfont SUBDIR += ghostscript7-jpnfont SUBDIR += ghostscript7-korfont SUBDIR += ghostscript7-x11 SUBDIR += ghostscript8-base SUBDIR += ghostscript8-x11 SUBDIR += ghostscript9-agpl-base SUBDIR += ghostscript9-agpl-x11 SUBDIR += ghostscript9-base SUBDIR += ghostscript9-x11 SUBDIR += gimp-gutenprint SUBDIR += gl2ps SUBDIR += gsfonts SUBDIR += gspdf SUBDIR += gtklp SUBDIR += gutenprint SUBDIR += gv SUBDIR += harfbuzz SUBDIR += harfbuzz-hb-view SUBDIR += harfbuzz-icu SUBDIR += hp2xx SUBDIR += hplip SUBDIR += hplip-plugin SUBDIR += hs-hscolour SUBDIR += html2latex SUBDIR += html2ps SUBDIR += hyperlatex SUBDIR += indexinfo SUBDIR += kde_poster SUBDIR += latex-beamer SUBDIR += latex-biber SUBDIR += latex-ltablex SUBDIR += latex-resume SUBDIR += latex2rtf SUBDIR += latexdiff SUBDIR += lgrind SUBDIR += libharu SUBDIR += libijs SUBDIR += libmspub01 SUBDIR += libotf SUBDIR += libpagemaker SUBDIR += libpaper SUBDIR += libraqm SUBDIR += libspectre SUBDIR += lilypond SUBDIR += lilypond-devel SUBDIR += limereport SUBDIR += linux-c7-cups-libs SUBDIR += linux-c7-freetype SUBDIR += linux-c7-harfbuzz SUBDIR += lout SUBDIR += lprps SUBDIR += lyx SUBDIR += magicfilter SUBDIR += makeindex SUBDIR += mftrace SUBDIR += miktex SUBDIR += min12xxw SUBDIR += mp-a4 SUBDIR += mp-letter SUBDIR += mpage SUBDIR += muttprint SUBDIR += nenscript SUBDIR += okc321 SUBDIR += openprinting SUBDIR += p5-Font-FreeType SUBDIR += p5-Net-CUPS SUBDIR += p5-Net-Printer SUBDIR += p5-PDF-Template SUBDIR += p5-PDFLib SUBDIR += p5-PostScript SUBDIR += p5-PostScript-PPD SUBDIR += p5-PostScript-Simple SUBDIR += p5-Text-PDF SUBDIR += p5-XML-ApacheFOP SUBDIR += p5-XML-Handler-AxPoint SUBDIR += p910nd SUBDIR += panda SUBDIR += papersize-default-a4 SUBDIR += papersize-default-letter SUBDIR += paps SUBDIR += pcal SUBDIR += pdf-redact-tools SUBDIR += pdf-renderer SUBDIR += pdf-tools SUBDIR += pdf4tcl SUBDIR += pdfbox SUBDIR += pdfchain SUBDIR += pdflib SUBDIR += pdflib-perl SUBDIR += pdfstitch SUBDIR += pdftk SUBDIR += pear-File_PDF SUBDIR += pecl-pdflib SUBDIR += pfbtopfa SUBDIR += photoprint SUBDIR += pic2fig SUBDIR += pkfonts118 SUBDIR += pkfonts240 SUBDIR += pkfonts300 SUBDIR += pkfonts360 SUBDIR += pkfonts400 SUBDIR += pkfonts600 SUBDIR += pnm2ppa SUBDIR += posterazor SUBDIR += print-manager SUBDIR += ps2eps SUBDIR += pscal SUBDIR += psdim SUBDIR += pslib SUBDIR += pstotext SUBDIR += psutils SUBDIR += py-collidoscope SUBDIR += py-dehinter SUBDIR += py-font-v SUBDIR += py-fontaine SUBDIR += py-fontbakery SUBDIR += py-fontparts SUBDIR += py-fontpens SUBDIR += py-fonttools SUBDIR += py-fonttools3 SUBDIR += py-fpdf SUBDIR += py-frescobaldi SUBDIR += py-glyphtools SUBDIR += py-pdf SUBDIR += py-pdf2 SUBDIR += py-pollyreports SUBDIR += py-preppy SUBDIR += py-psautohint SUBDIR += py-pycups SUBDIR += py-pycups1 SUBDIR += py-python-ly SUBDIR += py-qt5-printsupport SUBDIR += py-relatorio SUBDIR += py-reportlab SUBDIR += py-rtf SUBDIR += py-ttfautohint-py SUBDIR += py-ufolib2 + SUBDIR += py-uharfbuzz SUBDIR += py-weasyprint SUBDIR += qpdf SUBDIR += qpdfview SUBDIR += qt5-printsupport SUBDIR += rlpr SUBDIR += rtf2latex2e SUBDIR += rubygem-afm SUBDIR += rubygem-color SUBDIR += rubygem-color-tools SUBDIR += rubygem-pdf-core SUBDIR += rubygem-pdf-core07 SUBDIR += rubygem-pdf-reader SUBDIR += rubygem-pdf-writer SUBDIR += rubygem-prawn SUBDIR += rubygem-prawn-core SUBDIR += rubygem-prawn-flexible-table SUBDIR += rubygem-prawn-format SUBDIR += rubygem-prawn-graph SUBDIR += rubygem-prawn-icon SUBDIR += rubygem-prawn-js SUBDIR += rubygem-prawn-layout SUBDIR += rubygem-prawn-security SUBDIR += rubygem-prawn-svg SUBDIR += rubygem-prawn-table SUBDIR += rubygem-prawn-templates SUBDIR += rubygem-prawn_shapes SUBDIR += rubygem-rbpdf SUBDIR += rubygem-rbpdf-font SUBDIR += rubygem-ttfunk SUBDIR += scribus-devel SUBDIR += sgf2tex SUBDIR += shrinkpdf SUBDIR += simple-fb2-reader SUBDIR += splix SUBDIR += system-config-printer SUBDIR += t1utils SUBDIR += tex-aleph SUBDIR += tex-basic-engines SUBDIR += tex-dvipdfmx SUBDIR += tex-dvipsk SUBDIR += tex-formats SUBDIR += tex-jadetex SUBDIR += tex-luatex SUBDIR += tex-ptexenc SUBDIR += tex-xdvik SUBDIR += tex-xetex SUBDIR += tex-xmltex SUBDIR += texinfo SUBDIR += texlive-base SUBDIR += texlive-docs SUBDIR += texlive-full SUBDIR += texlive-texmf SUBDIR += texlive-texmf-source SUBDIR += texlive-tlmgr SUBDIR += texvc SUBDIR += tgif2tex SUBDIR += transfig SUBDIR += trueprint SUBDIR += ttf2pt1 SUBDIR += ttfautohint SUBDIR += ttftot42 SUBDIR += txtbdf2ps SUBDIR += typetools SUBDIR += utopia SUBDIR += xmbibtex SUBDIR += xpdfopen SUBDIR += xreader SUBDIR += xtexsh SUBDIR += yatex .include diff --git a/print/py-uharfbuzz/Makefile b/print/py-uharfbuzz/Makefile new file mode 100644 index 000000000000..19fe9b8d261d --- /dev/null +++ b/print/py-uharfbuzz/Makefile @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= uharfbuzz +PORTVERSION= 0.16.0 +CATEGORIES= print python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Streamlined Cython bindings for the harfbuzz shaping engine + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} +LIB_DEPENDS= libharfbuzz.so:print/harfbuzz + +USES= compiler:c++11-lang python:3.6+ zip +USE_PYTHON= autoplist concurrent cython distutils + +post-patch: + @${RM} -fr ${WRKSRC}/harfbuzz/ + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py ${WRKSRC}/src/uharfbuzz/_harfbuzz.cpp + +.include diff --git a/print/py-uharfbuzz/distinfo b/print/py-uharfbuzz/distinfo new file mode 100644 index 000000000000..f795973ad7c4 --- /dev/null +++ b/print/py-uharfbuzz/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620928545 +SHA256 (uharfbuzz-0.16.0.zip) = 70f11ccfbb59028dec6ce768960ffcc4d44eee0e095d7b58421799d5e84cb17a +SIZE (uharfbuzz-0.16.0.zip) = 1128591 diff --git a/print/py-uharfbuzz/files/patch-setup.py b/print/py-uharfbuzz/files/patch-setup.py new file mode 100644 index 000000000000..694e58bff25e --- /dev/null +++ b/print/py-uharfbuzz/files/patch-setup.py @@ -0,0 +1,16 @@ +--- setup.py.orig 2021-05-09 03:05:20 UTC ++++ setup.py +@@ -28,10 +28,10 @@ if platform.system() == 'Darwin': + extra_link_args.extend(['-framework', 'ApplicationServices']) + + extension = Extension( +- 'uharfbuzz._harfbuzz', ++ 'uharfbuzz', + define_macros=define_macros, +- include_dirs=['harfbuzz/src'], +- sources=['src/uharfbuzz/_harfbuzz.pyx', 'harfbuzz/src/harfbuzz.cc'], ++ include_dirs=['%%LOCALBASE%%/include/harfbuzz'], ++ sources=['src/uharfbuzz/_harfbuzz.pyx'], + language='c++', + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, diff --git a/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp b/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp new file mode 100644 index 000000000000..67e37280fd56 --- /dev/null +++ b/print/py-uharfbuzz/files/patch-src-uharfbuzz-_harfbuzz.cpp @@ -0,0 +1,17 @@ +--- src/uharfbuzz/_harfbuzz.cpp.orig 2021-05-09 03:05:40 UTC ++++ src/uharfbuzz/_harfbuzz.cpp +@@ -18,13 +18,12 @@ + "-std=c++11" + ], + "include_dirs": [ +- "harfbuzz/src" ++ "%%LOCALBASE%%/include/harfbuzz" + ], + "language": "c++", + "name": "uharfbuzz._harfbuzz", + "sources": [ + "src/uharfbuzz/_harfbuzz.pyx", +- "harfbuzz/src/harfbuzz.cc" + ] + }, + "module_name": "uharfbuzz._harfbuzz" diff --git a/print/py-uharfbuzz/pkg-descr b/print/py-uharfbuzz/pkg-descr new file mode 100644 index 000000000000..1ec6489325af --- /dev/null +++ b/print/py-uharfbuzz/pkg-descr @@ -0,0 +1,3 @@ +uharfbuzz provides streamlined Cython bindings for the HarfBuzz shaping engine. + +WWW: https://github.com/harfbuzz/uharfbuzz