Diff rbpdf-font-1.19.1-r1 with a rbpdf-font-1.19.1-r2

/usr/portage/dev-ruby/rbpdf-font/rbpdf-font-1.19.1-r2.ebuild 2023-10-09 14:52:30.456368374 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
# This gem bundles dejavu fonts, freefonts, and ttf2ufm
7
# ttf2ufm is a precompiled 32-bit binary
6
# This gem bundles dejavu fonts, freefonts
8 7

  
9
USE_RUBY="ruby27 ruby30 ruby31 ruby32"
8
USE_RUBY="ruby30 ruby31 ruby32"
10 9

  
11 10
RUBY_FAKEGEM_EXTRADOC="CHANGELOG"
11
RUBY_FAKEGEM_GEMSPEC="rbpdf-font.gemspec"
12 12

  
13
inherit ruby-fakegem
13
inherit ruby-fakegem toolchain-funcs
14 14

  
15 15
DESCRIPTION="Font files for the Ruby on Rails RBPDF plugin"
16 16
HOMEPAGE="https://github.com/naitoh/rbpdf"
17
SRC_URI="https://github.com/naitoh/rbpdf/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
18
RUBY_S="rbpdf-${PV}/rbpdf-font"
17 19

  
18 20
LICENSE="LGPL-2.1+"
19 21
SLOT="0"
......
25 27
all_ruby_prepare() {
26 28
	sed -i -e "/bundler/d" Rakefile || die
27 29
	sed -i -e '2igem "test-unit", "~>3.0"' test/test_helper.rb || die
30

  
31
	pushd lib/fonts/src || die
32
	tar xf ttf2ufm-src.tar.gz || die
33
	emake -C ttf2ufm-src clean
34
	sed -i -e '/^CFLAGS_SYS=/ s/-O/$(CFLAGS)/' -e '/CFLAGS.*LIBS/ s/CFLAGS/LDFLAGS/' ttf2ufm-src/Makefile || die
35
	popd || die
36
}
37

  
38
each_ruby_prepare() {
39
	rm -rf lib/fonts/src || die
40
}
41

  
42
all_ruby_compile() {
43
	emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C lib/fonts/src/ttf2ufm-src
44
}
45

  
46
each_ruby_install() {
47
	cp "${WORKDIR}/all/${RUBY_S}/lib/fonts/src/ttf2ufm-src/ttf2pt1" lib/fonts/ttf2ufm/ttf2ufm || die
48

  
49
	each_fakegem_install
28 50
}
Thank you!