print/harfbuzz: convert to USES=meson

- Switch to Meson as autotools and manually uploaded distfile are no longer
  maintained. Both were gone in 2.7.0 but temporarily restored in 2.7.1
- Add option to exclude DOCS
- Drop now pruned transitive gettext dependency

PR:		248407
Submitted by:	daniel.engberg.lists@pyret.net
Approved by:	maintainer timeout (2 weeks)
This commit is contained in:
Jan Beich 2020-08-19 17:47:03 +00:00
parent 75fc0e67fa
commit 319328752e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545445
3 changed files with 160 additions and 122 deletions

View file

@ -5,7 +5,6 @@ PORTNAME= harfbuzz
DISTVERSION= 2.7.1
PORTREVISION?= 0
CATEGORIES= print
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
MAINTAINER= gnome@FreeBSD.org
COMMENT?= OpenType text shaping engine
@ -16,41 +15,41 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libgraphite2.so:graphics/graphite2
USES= compiler:c++11-lib gettext-runtime gmake gnome libtool \
pathfix pkgconfig tar:xz
USES= compiler:c++11-lib gnome meson \
pkgconfig python:build shebangfix
USE_GITHUB= yes
USE_GNOME= glib20 introspection:build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-graphite2 --with-gobject=yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
SHEBANG_GLOB= *.py
MESON_ARGS= -Dglib=enabled -Dgobject=enabled -Dgraphite=enabled \
-Dfreetype=enabled -Dbenchmark=disabled
PLIST_SUB+= LIBVER=0.20701.0
HARFBUZZ_SLAVE?= no
.if ${HARFBUZZ_SLAVE} == no
CONFIGURE_ARGS+= --without-icu --without-cairo
.elif ${HARFBUZZ_SLAVE} == icu
CONFIGURE_ARGS+= --with-icu \
--without-cairo \
--disable-gtk-doc-html
OPTIONS_DEFINE= DOCS TEST
OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= gtkdoc-scan:textproc/gtk-doc
DOCS_MESON_ENABLED= docs
TEST_MESON_ENABLED= tests
.endif
.if ${HARFBUZZ_SLAVE} == no
MESON_ARGS+= -Dicu=disabled -Dcairo=disabled
.elif ${HARFBUZZ_SLAVE} == icu
MESON_ARGS+= -Dicu=enabled -Dcairo=disabled -Ddocs=disabled \
-Dtests=disabled
LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz \
libicudata.so:devel/icu
.elif ${HARFBUZZ_SLAVE} == hb-view
CONFIGURE_ARGS+= --with-cairo \
--without-icu
MESON_ARGS+= -Dcairo=enabled -Dicu=disabled -Ddocs=disabled \
-Dtests=disabled
LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz
USE_GNOME+= cairo
.endif
.if ${HARFBUZZ_SLAVE} != no
post-patch:
${REINPLACE_CMD} -e 's|install-data-am: install-data-local|install-data-am:|g' \
${WRKSRC}/docs/Makefile.in
.endif
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1597135484
SHA256 (harfbuzz-2.7.1.tar.xz) = e95ee43b6bd0d3d1307e2aacf0f9c0050e5baceb21988b367b833028114aa569
SIZE (harfbuzz-2.7.1.tar.xz) = 9736236
TIMESTAMP = 1597479059
SHA256 (harfbuzz-harfbuzz-2.7.1_GH0.tar.gz) = 431c856ff18eeca89b2a36b58f2c2d56273cd522c34c0ffbc9dd6f7da4b9bd08
SIZE (harfbuzz-harfbuzz-2.7.1_GH0.tar.gz) = 16603949

View file

@ -51,100 +51,139 @@ libdata/pkgconfig/harfbuzz-gobject.pc
libdata/pkgconfig/harfbuzz-subset.pc
libdata/pkgconfig/harfbuzz.pc
share/gir-1.0/HarfBuzz-0.0.gir
share/gtk-doc/html/harfbuzz/HarfBuzz.png
share/gtk-doc/html/harfbuzz/HarfBuzz.svg
share/gtk-doc/html/harfbuzz/a-clustering-example-for-levels-0-and-1.html
share/gtk-doc/html/harfbuzz/aat-shaping.html
share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html
share/gtk-doc/html/harfbuzz/annotation-glossary.html
share/gtk-doc/html/harfbuzz/api-index-full.html
share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html
share/gtk-doc/html/harfbuzz/building.html
share/gtk-doc/html/harfbuzz/ch01s03.html
share/gtk-doc/html/harfbuzz/ch03s02.html
share/gtk-doc/html/harfbuzz/ch03s03.html
share/gtk-doc/html/harfbuzz/ch12.html
share/gtk-doc/html/harfbuzz/ch13.html
share/gtk-doc/html/harfbuzz/ch14.html
share/gtk-doc/html/harfbuzz/ch15.html
share/gtk-doc/html/harfbuzz/clusters.html
share/gtk-doc/html/harfbuzz/complex-scripts.html
share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html
share/gtk-doc/html/harfbuzz/fonts-and-faces-custom-functions.html
share/gtk-doc/html/harfbuzz/fonts-and-faces-native-opentype.html
share/gtk-doc/html/harfbuzz/fonts-and-faces-variable.html
share/gtk-doc/html/harfbuzz/fonts-and-faces.html
share/gtk-doc/html/harfbuzz/getting-started.html
share/gtk-doc/html/harfbuzz/graphite-shaping.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-aat-layout.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-map.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-color.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-font.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-name.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-shape.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-var.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html
share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html
share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2
share/gtk-doc/html/harfbuzz/home.png
share/gtk-doc/html/harfbuzz/index.html
share/gtk-doc/html/harfbuzz/install-harfbuzz.html
share/gtk-doc/html/harfbuzz/integration-coretext.html
share/gtk-doc/html/harfbuzz/integration-freetype.html
share/gtk-doc/html/harfbuzz/integration-icu.html
share/gtk-doc/html/harfbuzz/integration-python.html
share/gtk-doc/html/harfbuzz/integration-uniscribe.html
share/gtk-doc/html/harfbuzz/integration.html
share/gtk-doc/html/harfbuzz/left-insensitive.png
share/gtk-doc/html/harfbuzz/left.png
share/gtk-doc/html/harfbuzz/level-2.html
share/gtk-doc/html/harfbuzz/object-model-blobs.html
share/gtk-doc/html/harfbuzz/object-model-lifecycle.html
share/gtk-doc/html/harfbuzz/object-model-object-types.html
share/gtk-doc/html/harfbuzz/object-model-user-data.html
share/gtk-doc/html/harfbuzz/object-model.html
share/gtk-doc/html/harfbuzz/opentype-shaping-models.html
share/gtk-doc/html/harfbuzz/pt01.html
share/gtk-doc/html/harfbuzz/pt02.html
share/gtk-doc/html/harfbuzz/reordering-in-levels-0-and-1.html
share/gtk-doc/html/harfbuzz/right-insensitive.png
share/gtk-doc/html/harfbuzz/right.png
share/gtk-doc/html/harfbuzz/setting-buffer-properties.html
share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html
share/gtk-doc/html/harfbuzz/shaping-concepts.html
share/gtk-doc/html/harfbuzz/shaping-opentype-features.html
share/gtk-doc/html/harfbuzz/shaping-operations.html
share/gtk-doc/html/harfbuzz/shaping-plans-and-caching.html
share/gtk-doc/html/harfbuzz/shaping-shaper-selection.html
share/gtk-doc/html/harfbuzz/style.css
share/gtk-doc/html/harfbuzz/text-runs.html
share/gtk-doc/html/harfbuzz/the-distinction-between-levels-0-and-1.html
share/gtk-doc/html/harfbuzz/unicode-character-categories.html
share/gtk-doc/html/harfbuzz/up-insensitive.png
share/gtk-doc/html/harfbuzz/up.png
share/gtk-doc/html/harfbuzz/utilities-common-types-apis.html
share/gtk-doc/html/harfbuzz/utilities-ucdn.html
share/gtk-doc/html/harfbuzz/utilities.html
share/gtk-doc/html/harfbuzz/what-harfbuzz-doesnt-do.html
share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html
share/gtk-doc/html/harfbuzz/why-do-i-need-a-shaping-engine.html
share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html
share/gtk-doc/html/harfbuzz/working-with-harfbuzz-clusters.html
%%DOCS%%share/gtk-doc/html/harfbuzz/HarfBuzz.png
%%DOCS%%share/gtk-doc/html/harfbuzz/HarfBuzz.svg
%%DOCS%%share/gtk-doc/html/harfbuzz/a-clustering-example-for-levels-0-and-1.html
%%DOCS%%share/gtk-doc/html/harfbuzz/aat-shaping.html
%%DOCS%%share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html
%%DOCS%%share/gtk-doc/html/harfbuzz/annotation-glossary.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-10.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-11.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-2.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-20.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-22.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-28.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-30.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-31.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-38.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-39.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-41.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-42.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-5.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-7.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-0-9-8.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-0-5.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-1-2.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-1-3.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-2-3.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-3-3.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-4-2.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-4-3.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-5-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-6-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-7-5.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-7-7.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-8-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-8-1.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-8-5.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-8-6.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-1-9-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-0-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-1-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-2-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-3-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-4-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-5-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-2-6-0.html
%%DOCS%%share/gtk-doc/html/harfbuzz/api-index-full.html
%%DOCS%%share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html
%%DOCS%%share/gtk-doc/html/harfbuzz/building.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch01s03.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch03s02.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch03s03.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch12.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch13.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch14.html
%%DOCS%%share/gtk-doc/html/harfbuzz/ch15.html
%%DOCS%%share/gtk-doc/html/harfbuzz/clusters.html
%%DOCS%%share/gtk-doc/html/harfbuzz/complex-scripts.html
%%DOCS%%share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html
%%DOCS%%share/gtk-doc/html/harfbuzz/deprecated-api-index.html
%%DOCS%%share/gtk-doc/html/harfbuzz/fonts-and-faces-custom-functions.html
%%DOCS%%share/gtk-doc/html/harfbuzz/fonts-and-faces-native-opentype.html
%%DOCS%%share/gtk-doc/html/harfbuzz/fonts-and-faces-variable.html
%%DOCS%%share/gtk-doc/html/harfbuzz/fonts-and-faces.html
%%DOCS%%share/gtk-doc/html/harfbuzz/getting-started.html
%%DOCS%%share/gtk-doc/html/harfbuzz/graphite-shaping.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-aat-layout.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-map.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-color.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-font.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-name.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-shape.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-var.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html
%%DOCS%%share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2
%%DOCS%%share/gtk-doc/html/harfbuzz/home.png
%%DOCS%%share/gtk-doc/html/harfbuzz/index.html
%%DOCS%%share/gtk-doc/html/harfbuzz/install-harfbuzz.html
%%DOCS%%share/gtk-doc/html/harfbuzz/integration-coretext.html
%%DOCS%%share/gtk-doc/html/harfbuzz/integration-freetype.html
%%DOCS%%share/gtk-doc/html/harfbuzz/integration-icu.html
%%DOCS%%share/gtk-doc/html/harfbuzz/integration-python.html
%%DOCS%%share/gtk-doc/html/harfbuzz/integration-uniscribe.html
%%DOCS%%share/gtk-doc/html/harfbuzz/integration.html
%%DOCS%%share/gtk-doc/html/harfbuzz/left-insensitive.png
%%DOCS%%share/gtk-doc/html/harfbuzz/left.png
%%DOCS%%share/gtk-doc/html/harfbuzz/level-2.html
%%DOCS%%share/gtk-doc/html/harfbuzz/object-model-blobs.html
%%DOCS%%share/gtk-doc/html/harfbuzz/object-model-lifecycle.html
%%DOCS%%share/gtk-doc/html/harfbuzz/object-model-object-types.html
%%DOCS%%share/gtk-doc/html/harfbuzz/object-model-user-data.html
%%DOCS%%share/gtk-doc/html/harfbuzz/object-model.html
%%DOCS%%share/gtk-doc/html/harfbuzz/opentype-shaping-models.html
%%DOCS%%share/gtk-doc/html/harfbuzz/pt01.html
%%DOCS%%share/gtk-doc/html/harfbuzz/pt02.html
%%DOCS%%share/gtk-doc/html/harfbuzz/reordering-in-levels-0-and-1.html
%%DOCS%%share/gtk-doc/html/harfbuzz/right-insensitive.png
%%DOCS%%share/gtk-doc/html/harfbuzz/right.png
%%DOCS%%share/gtk-doc/html/harfbuzz/setting-buffer-properties.html
%%DOCS%%share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html
%%DOCS%%share/gtk-doc/html/harfbuzz/shaping-concepts.html
%%DOCS%%share/gtk-doc/html/harfbuzz/shaping-opentype-features.html
%%DOCS%%share/gtk-doc/html/harfbuzz/shaping-operations.html
%%DOCS%%share/gtk-doc/html/harfbuzz/shaping-plans-and-caching.html
%%DOCS%%share/gtk-doc/html/harfbuzz/shaping-shaper-selection.html
%%DOCS%%share/gtk-doc/html/harfbuzz/style.css
%%DOCS%%share/gtk-doc/html/harfbuzz/text-runs.html
%%DOCS%%share/gtk-doc/html/harfbuzz/the-distinction-between-levels-0-and-1.html
%%DOCS%%share/gtk-doc/html/harfbuzz/unicode-character-categories.html
%%DOCS%%share/gtk-doc/html/harfbuzz/up-insensitive.png
%%DOCS%%share/gtk-doc/html/harfbuzz/up.png
%%DOCS%%share/gtk-doc/html/harfbuzz/utilities-common-types-apis.html
%%DOCS%%share/gtk-doc/html/harfbuzz/utilities-ucdn.html
%%DOCS%%share/gtk-doc/html/harfbuzz/utilities.html
%%DOCS%%share/gtk-doc/html/harfbuzz/what-harfbuzz-doesnt-do.html
%%DOCS%%share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html
%%DOCS%%share/gtk-doc/html/harfbuzz/why-do-i-need-a-shaping-engine.html
%%DOCS%%share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html
%%DOCS%%share/gtk-doc/html/harfbuzz/working-with-harfbuzz-clusters.html