Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups/
Date: Fri, 10 Nov 2017 09:08:00
Message-Id: 1510304870.a2b444ae5d5177766e770190cd7c57b1f3c3126f.polynomial-c@gentoo
1 commit: a2b444ae5d5177766e770190cd7c57b1f3c3126f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 10 09:04:56 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 10 09:07:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2b444ae
7
8 pnet-print/cups: Sync live ebuild.
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 net-print/cups/cups-9999.ebuild | 93 +++++++++++++++++++++--------------------
13 1 file changed, 48 insertions(+), 45 deletions(-)
14
15 diff --git a/net-print/cups/cups-9999.ebuild b/net-print/cups/cups-9999.ebuild
16 index f32e1a41dda..af840a3d0aa 100644
17 --- a/net-print/cups/cups-9999.ebuild
18 +++ b/net-print/cups/cups-9999.ebuild
19 @@ -5,7 +5,7 @@ EAPI=6
20
21 PYTHON_COMPAT=( python2_7 )
22
23 -inherit autotools fdo-mime gnome2-utils flag-o-matic linux-info \
24 +inherit autotools gnome2-utils flag-o-matic linux-info xdg-utils \
25 multilib multilib-minimal pam python-single-r1 user versionator \
26 java-pkg-opt-2 systemd toolchain-funcs
27
28 @@ -54,7 +54,7 @@ CDEPEND="
29 pam? ( virtual/pam )
30 python? ( ${PYTHON_DEPS} )
31 ssl? (
32 - >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}]
33 + >=net-libs/gnutls-2.12.23-r6:0=[${MULTILIB_USEDEP}]
34 )
35 systemd? ( sys-apps/systemd )
36 usb? ( virtual/libusb:1 )
37 @@ -88,7 +88,7 @@ RESTRICT="test"
38 # systemd-socket.patch from Fedora
39 PATCHES=(
40 "${FILESDIR}/${PN}-2.2.0-dont-compress-manpages.patch"
41 - "${FILESDIR}/${PN}-2.2.4-fix-install-perms.patch"
42 + "${FILESDIR}/${PN}-2.2.6-fix-install-perms.patch"
43 "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
44 "${FILESDIR}/${PN}-2.0.2-rename-systemd-service-files.patch"
45 "${FILESDIR}/${PN}-2.0.1-xinetd-installation-fix.patch"
46 @@ -159,51 +159,54 @@ multilib_src_configure() {
47 einfo LANGS=\"${LANGS}\"
48 einfo LINGUAS=\"${LINGUAS}\"
49
50 - local myconf=()
51 + local myeconfargs=()
52 +
53 + # explicitly specify compiler wrt bug 524340
54 + #
55 + # need to override KRB5CONFIG for proper flags
56 + # https://github.com/apple/cups/issues/4423
57 + myeconfargs+=(
58 + CC="$(tc-getCC)"
59 + CXX="$(tc-getCXX)"
60 + KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config
61 + --libdir="${EPREFIX}"/usr/$(get_libdir)
62 + --localstatedir="${EPREFIX}"/var
63 + --with-exe-file-perm=755
64 + --with-rundir="${EPREFIX}"/run/cups
65 + --with-cups-user=lp
66 + --with-cups-group=lp
67 + --with-docdir="${EPREFIX}"/usr/share/cups/html
68 + --with-languages="${LINGUAS}"
69 + --with-system-groups=lpadmin
70 + --with-xinetd="${EPREFIX}"/etc/xinetd.d
71 + $(multilib_native_use_enable acl)
72 + $(use_enable dbus)
73 + $(use_enable debug)
74 + $(use_enable debug debug-guards)
75 + $(use_enable debug debug-printfs)
76 + $(multilib_native_use_with java)
77 + $(use_enable kerberos gssapi)
78 + $(multilib_native_use_enable pam)
79 + $(multilib_native_use_with python python "${PYTHON}")
80 + $(use_enable static-libs static)
81 + $(use_enable threads)
82 + $(use_enable ssl gnutls)
83 + $(use_enable systemd)
84 + $(multilib_native_use_enable usb libusb)
85 + $(use_enable zeroconf avahi)
86 + --disable-dnssd
87 + --without-perl
88 + --without-php
89 + $(multilib_is_native_abi && echo --enable-libpaper || echo --disable-libpaper)
90 + )
91
92 if tc-is-static-only; then
93 - myconf+=(
94 + myeconfargs+=(
95 --disable-shared
96 )
97 fi
98
99 - # explicitly specify compiler wrt bug 524340
100 - #
101 - # need to override KRB5CONFIG for proper flags
102 - # https://github.com/apple/cups/issues/4423
103 - econf \
104 - CC="$(tc-getCC)" \
105 - CXX="$(tc-getCXX)" \
106 - KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config \
107 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
108 - --localstatedir="${EPREFIX}"/var \
109 - --with-rundir="${EPREFIX}"/run/cups \
110 - --with-cups-user=lp \
111 - --with-cups-group=lp \
112 - --with-docdir="${EPREFIX}"/usr/share/cups/html \
113 - --with-languages="${LINGUAS}" \
114 - --with-system-groups=lpadmin \
115 - --with-xinetd="${EPREFIX}"/etc/xinetd.d \
116 - $(multilib_native_use_enable acl) \
117 - $(use_enable dbus) \
118 - $(use_enable debug) \
119 - $(use_enable debug debug-guards) \
120 - $(use_enable debug debug-printfs) \
121 - $(multilib_native_use_with java) \
122 - $(use_enable kerberos gssapi) \
123 - $(multilib_native_use_enable pam) \
124 - $(multilib_native_use_with python python "${PYTHON}") \
125 - $(use_enable static-libs static) \
126 - $(use_enable threads) \
127 - $(use_enable ssl gnutls) \
128 - $(use_enable systemd) \
129 - $(multilib_native_use_enable usb libusb) \
130 - $(use_enable zeroconf avahi) \
131 - --disable-dnssd \
132 - --without-perl \
133 - --without-php \
134 - $(multilib_is_native_abi && echo --enable-libpaper || echo --disable-libpaper) \
135 - "${myconf[@]}"
136 + econf "${myeconfargs[@]}"
137
138 # install in /usr/libexec always, instead of using /usr/lib/cups, as that
139 # makes more sense when facing multilib support.
140 @@ -240,7 +243,7 @@ multilib_src_install() {
141 }
142
143 multilib_src_install_all() {
144 - dodoc {CHANGES,CREDITS,README}.txt
145 + dodoc {CHANGES,CREDITS,README}.md
146
147 # move the default config file to docs
148 dodoc "${ED}"/etc/cups/cupsd.conf.default
149 @@ -315,7 +318,7 @@ pkg_preinst() {
150 pkg_postinst() {
151 # Update desktop file database and gtk icon cache (bug 370059)
152 gnome2_icon_cache_update
153 - fdo-mime_desktop_database_update
154 + xdg_desktop_database_update
155
156 local v
157
158 @@ -342,5 +345,5 @@ pkg_postinst() {
159 pkg_postrm() {
160 # Update desktop file database and gtk icon cache (bug 370059)
161 gnome2_icon_cache_update
162 - fdo-mime_desktop_database_update
163 + xdg_desktop_database_update
164 }