diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-29 16:53:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-29 16:53:27 +0100 |
commit | 1173ad5704ce725916e0c332416aff326d850d06 (patch) | |
tree | d48d60977ce19864893dfb2222bf2982ffb4262a /net-print/cups/cups-9999.ebuild | |
parent | 8c364c784966be1700ea39ae45028f3e9be9cae0 (diff) |
gentoo resync : 29.03.2018
Diffstat (limited to 'net-print/cups/cups-9999.ebuild')
-rw-r--r-- | net-print/cups/cups-9999.ebuild | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/net-print/cups/cups-9999.ebuild b/net-print/cups/cups-9999.ebuild index b3f5292bcee6..b971a2a2cdcf 100644 --- a/net-print/cups/cups-9999.ebuild +++ b/net-print/cups/cups-9999.ebuild @@ -9,10 +9,9 @@ inherit autotools gnome2-utils flag-o-matic linux-info xdg-utils \ multilib multilib-minimal pam python-single-r1 user versionator \ java-pkg-opt-2 systemd toolchain-funcs -MY_P=${P/_rc/rc} -MY_P=${MY_P/_beta/b} -MY_PV=${PV/_rc/rc} -MY_PV=${MY_PV/_beta/b} +MY_PV="${PV/_rc/rc}" +MY_PV="${MY_PV/_beta/b}" +MY_P="${PN}-${MY_PV}" if [[ ${PV} == *9999 ]]; then inherit git-r3 @@ -21,14 +20,17 @@ if [[ ${PV} == *9999 ]]; then EGIT_BRANCH=branch-${PV/.9999} fi else - SRC_URI="https://github.com/apple/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~m68k-mint" + #SRC_URI="https://github.com/apple/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/apple/cups/releases/download/v${MY_PV}/${MY_P}-source.tar.gz" + if [[ "${PV}" != *_beta* ]] && [[ "${PV}" != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~m68k-mint" + fi fi DESCRIPTION="The Common Unix Printing System" HOMEPAGE="https://www.cups.org/" -LICENSE="GPL-2" +LICENSE="Apache-2.0" SLOT="0" IUSE="acl dbus debug java kerberos lprng-compat pam python selinux +ssl static-libs systemd +threads usb X xinetd zeroconf" @@ -56,10 +58,6 @@ CDEPEND=" X? ( x11-misc/xdg-utils ) xinetd? ( sys-apps/xinetd ) zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] ) - abi_x86_32? ( - !<=app-emulation/emul-linux-x86-baselibs-20140508 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] - ) " DEPEND="${CDEPEND} @@ -93,6 +91,8 @@ MULTILIB_CHOST_TOOLS=( /usr/bin/cups-config ) +S="${WORKDIR}/${MY_P}" + pkg_setup() { enewgroup lp enewuser lp -1 -1 -1 lp @@ -153,13 +153,11 @@ multilib_src_configure() { einfo LINGUAS=\"${LINGUAS}\" - local myeconfargs=() - # explicitly specify compiler wrt bug 524340 # # need to override KRB5CONFIG for proper flags # https://github.com/apple/cups/issues/4423 - myeconfargs+=( + local myeconfargs=( CC="$(tc-getCC)" CXX="$(tc-getCXX)" KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config @@ -209,10 +207,12 @@ multilib_src_configure() { sed -i -e "s:cups_serverbin=.*:cups_serverbin=\"${EPREFIX}/usr/libexec/cups\":" cups-config || die # additional path corrections needed for prefix, see bug 597728 - sed -i -e "s:ICONDIR.*:ICONDIR = ${EPREFIX}/usr/share/icons:" Makedefs || die - sed -i -e "s:INITDIR.*:INITDIR = ${EPREFIX}/etc:" Makedefs || die - sed -i -e "s:DBUSDIR.*:DBUSDIR = ${EPREFIX}/etc/dbus-1:" Makedefs || die - sed -i -e "s:MENUDIR.*:MENUDIR = ${EPREFIX}/usr/share/applications:" Makedefs || die + sed \ + -e "s:ICONDIR.*:ICONDIR = ${EPREFIX}/usr/share/icons:" \ + -e "s:INITDIR.*:INITDIR = ${EPREFIX}/etc:" \ + -e "s:DBUSDIR.*:DBUSDIR = ${EPREFIX}/etc/dbus-1:" \ + -e "s:MENUDIR.*:MENUDIR = ${EPREFIX}/usr/share/applications:" \ + -i Makedefs || die } multilib_src_compile() { @@ -240,11 +240,11 @@ multilib_src_install_all() { dodoc {CHANGES,CREDITS,README}.md # move the default config file to docs - dodoc "${ED}"/etc/cups/cupsd.conf.default - rm -f "${ED}"/etc/cups/cupsd.conf.default + dodoc "${ED%/}"/etc/cups/cupsd.conf.default + rm -f "${ED%/}"/etc/cups/cupsd.conf.default # clean out cups init scripts - rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups} + rm -rf "${ED%/}"/etc/{init.d/cups,rc*,pam.d/cups} # install our init script local neededservices @@ -253,7 +253,7 @@ multilib_src_install_all() { [[ -n ${neededservices} ]] && neededservices="need${neededservices}" cp "${FILESDIR}"/cupsd.init.d-r3 "${T}"/cupsd || die sed -i \ - -e "s/@neededservices@/$neededservices/" \ + -e "s/@neededservices@/${neededservices}/" \ "${T}"/cupsd || die doinitd "${T}"/cupsd @@ -264,16 +264,16 @@ multilib_src_install_all() { # correct path sed -i \ -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \ - "${ED}"/etc/xinetd.d/cups-lpd || die + "${ED%/}"/etc/xinetd.d/cups-lpd || die # it is safer to disable this by default, bug #137130 - grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \ - { sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; } + grep -w 'disable' "${ED%/}"/etc/xinetd.d/cups-lpd || \ + { sed -i -e "s:}:\tdisable = yes\n}:" "${ED%/}"/etc/xinetd.d/cups-lpd || die ; } # write permission for file owner (root), bug #296221 fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed" else # always configure with --with-xinetd= and clean up later, # bug #525604 - rm -rf "${ED}"/etc/xinetd.d + rm -rf "${ED%/}"/etc/xinetd.d fi keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \ @@ -281,24 +281,26 @@ multilib_src_install_all() { keepdir /etc/cups/{interfaces,ppd,ssl} - use X || rm -r "${ED}"/usr/share/applications + if ! use X ; then + rm -r "${ED%/}"/usr/share/applications || die + fi # create /etc/cups/client.conf, bug #196967 and #266678 - echo "ServerName ${EPREFIX}/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf + echo "ServerName ${EPREFIX}/run/cups/cups.sock" >> "${ED%/}"/etc/cups/client.conf # the following file is now provided by cups-filters: - rm -r "${ED}"/usr/share/cups/banners || die + rm -r "${ED%/}"/usr/share/cups/banners || die # the following are created by the init script - rm -r "${ED}"/var/cache/cups || die - rm -r "${ED}"/run || die + rm -r "${ED%/}"/var/cache/cups || die + rm -r "${ED%/}"/run || die # for the special case of running lprng and cups together, bug 467226 if use lprng-compat ; then - rm -fv "${ED}"/usr/bin/{lp*,cancel} - rm -fv "${ED}"/usr/sbin/lp* - rm -fv "${ED}"/usr/share/man/man1/{lp*,cancel*} - rm -fv "${ED}"/usr/share/man/man8/lp* + rm -fv "${ED%/}"/usr/bin/{lp*,cancel} + rm -fv "${ED%/}"/usr/sbin/lp* + rm -fv "${ED%/}"/usr/share/man/man1/{lp*,cancel*} + rm -fv "${ED%/}"/usr/share/man/man8/lp* ewarn "Not installing lp... binaries, since the lprng-compat useflag is set." ewarn "Unless you plan to install an exotic server setup, you most likely" ewarn "do not want this. Disable the useflag then and all will be fine." |