Name libgraphite2-3
Description Font rendering engine for Complex Scripts -- library
Version 1.3.14-2+b1
Package Base graphite2
Homepage https://graphite.sil.org/
Maintainers ['Debian LibreOffice Maintainers <debian-openoffice@lists.debian.org>']
Contributors ['Daniel Glassey <wdg@debian.org>,', 'Rene Engelhard <rene@debian.org>']
Distro-repo https://salsa.debian.org/libreoffice-team/graphite2
Sources ['https://sources.debian.org/data/main/g/graphite2/1.3.14-2/debian/watch', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/do-not-require-future.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/do-not-require-sse2.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/explicit-pdflatex.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/ffloat-store.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/no-explicit-dot-font-settings.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/no-icons.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/non-linux.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/python-libgraphite-SONAME.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/reproducible-build.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/series', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/spell-out-lesser-and-greater.diff', 'https://sources.debian.org/src/graphite2/1.3.14-2/debian/patches/test-timeout.diff']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['cmake', 'debhelper-compat', 'dh-exec', 'dh-python', 'python3', 'python3-fonttools <!nocheck>']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash e3ca92b45f951d65542c9309e7d68b1fc36e6aa3cc3de69b5123859fd6988d25
#!/usr/bin/make -f

export DPKG_EXPORT_BUILDFLAGS = 0
include /usr/share/dpkg/architecture.mk

%:
	dh $@ --with python3 --buildsystem=cmake --builddirectory=build

override_dh_auto_build-indep:
	@echo "Building docs"
	dh_auto_build --no-parallel -- docs

override_dh_auto_install-arch:
	dh_auto_install -a

override_dh_auto_install-indep:

override_dh_install-indep:
	set -e ; for v in `py3versions -v -s`; do \
		python$$v setup.py -v install --prefix=/usr --root=$(CURDIR)/debian/python3-graphite2; \
	done

override_dh_auto_test: export LD_LIBRARY_PATH := $(CURDIR)/build/src
override_dh_auto_test:
	set -e; if [ -f ./build/src/libgraphite2.so.3 ]; then \
		dh_auto_test; \
	fi

override_dh_auto_clean:
	-find . -name "CTestCostData.txt" | xargs rm
	-find . -name "LastTest.log"  | xargs rm
	rm -f tests/graphite.pyc
	rm -rf tests/__pycache__
	rm -rf python/graphite2/__pycache__
	rm -rf python/graphite2.egg-info
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DGRAPHITE2_NTRACING:BOOL=ON -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) -DPYTHON_EXECUTABLE=$(shell which python3)
	find . -type f ! -name "rules" ! -name "changelog" \
		-exec sed -i -e 's/\-O3//g' {} \;