wmtz-0.7.ebuild 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=3
  4. inherit eutils multilib toolchain-funcs
  5. DESCRIPTION="dockapp that shows the time in multiple timezones"
  6. HOMEPAGE="https://www.gentoo.org/"
  7. SRC_URI="mirror://gentoo/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc sparc x86"
  11. IUSE=""
  12. RDEPEND="x11-libs/libX11
  13. x11-libs/libXext
  14. x11-libs/libXpm"
  15. DEPEND="${RDEPEND}
  16. x11-proto/xextproto"
  17. S=${WORKDIR}/${P}/${PN}
  18. src_prepare() {
  19. epatch "${FILESDIR}"/${P}.patch
  20. #Honour Gentoo LDFLAGS, see bug #337890.
  21. sed -e "s/\$(FLAGS) -o wmtz/\$(LDFLAGS) -o wmtz/" -i Makefile
  22. cd "${WORKDIR}"/${P} || die
  23. epatch "${FILESDIR}"/${P}-list.patch
  24. }
  25. src_compile() {
  26. emake CC="$(tc-getCC)" FLAGS="${CFLAGS}" \
  27. LIBDIR="-L/usr/$(get_libdir)" || die "emake failed."
  28. }
  29. src_install() {
  30. dobin ${PN}
  31. doman ${PN}.1
  32. insinto /etc
  33. doins wmtzrc
  34. dodoc ../{BUGS,CHANGES,README}
  35. }