Diff harfbuzz-2.6.8 with a harfbuzz-9999

/usr/portage/media-libs/harfbuzz/harfbuzz-9999.ebuild 2020-07-26 12:39:00.000000000 +0300
14 14
	EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git"
15 15
	inherit git-r3
16 16
else
17
	SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
17
	SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
18 18
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
19 19
fi
20 20

  
21 21
LICENSE="Old-MIT ISC icu"
22 22
SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416
23 23

  
24
IUSE="+cairo debug +glib +graphite icu +introspection static-libs test +truetype"
24
IUSE="+cairo debug doc +glib +graphite icu +introspection static-libs test +truetype"
25 25
RESTRICT="!test? ( test )"
26 26
REQUIRED_USE="introspection? ( glib )"
27 27

  
......
34 34
	truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
35 35
"
36 36
DEPEND="${RDEPEND}
37
	>=dev-libs/gobject-introspection-common-1.34
37 38
	test? ( ${PYTHON_DEPS} )
38 39
"
39 40
BDEPEND="
40
	dev-util/gtk-doc-am
41 41
	virtual/pkgconfig
42
	doc? ( dev-util/gtk-doc )
42 43
"
43
# eautoreconf requires gobject-introspection-common
44
# ragel needed if regenerating *.hh files from *.rl
45
if [[ ${PV} = 9999 ]] ; then
46
	DEPEND+="
47
		>=dev-libs/gobject-introspection-common-1.34
48
		dev-util/ragel
49
	"
50
fi
51 44

  
52 45
pkg_setup() {
53 46
	use test && python-any-r1_pkg_setup
......
68 61
		sed -i \
69 62
			-e 's/\<LINK\>/CXXLINK/' \
70 63
			src/Makefile.am || die
71
		sed -i \
72
			-e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
73
			src/Makefile.in || die
74
		sed -i \
75
			-e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
76
			test/api/Makefile.in || die
77 64
	fi
78 65

  
79 66
	sed -i \
80 67
		-e 's:tests/macos.tests::' \
81 68
		test/shaping/data/in-house/Makefile.sources \
82
		test/shaping/data/in-house/Makefile.in || die # bug 726120
69
		|| die # bug 726120
70

  
71
	if ! use doc ; then
72
		# Taken from shipped autogen.sh script
73
		echo "EXTRA_DIST = " > gtk-doc.make
74
	fi
83 75

  
84 76
	eautoreconf
85 77
	elibtoolize # for Solaris
......
94 86
		--without-coretext
95 87
		--without-fontconfig #609300
96 88
		--without-uniscribe
89
		$(multilib_native_use_enable doc gtk-doc)
90
		$(multilib_native_use_enable doc gtk-doc-html)
97 91
		$(use_enable static-libs static)
98 92
		$(multilib_native_use_with cairo)
99 93
		$(use_with glib)
Thank you!