amiwm-0.21_p2.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils multilib toolchain-funcs
  5. MY_P=${PN}${PV/_p/pl}
  6. DESCRIPTION="Windowmanager ala Amiga(R) Workbench(R)"
  7. HOMEPAGE="http://www.lysator.liu.se/~marcus/amiwm.html"
  8. SRC_URI="ftp://ftp.lysator.liu.se/pub/X11/wm/${PN}/${MY_P}.tar.gz"
  9. LICENSE="amiwm"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~ppc ~x86"
  12. IUSE=""
  13. COMMON_DEPEND="x11-libs/libX11
  14. x11-libs/libXmu
  15. x11-libs/libXext"
  16. RDEPEND="${COMMON_DEPEND}
  17. media-gfx/xloadimage
  18. x11-apps/xrdb
  19. x11-apps/xsetroot
  20. x11-terms/xterm"
  21. DEPEND="${COMMON_DEPEND}
  22. x11-proto/xproto
  23. x11-proto/xextproto"
  24. S="${WORKDIR}/${MY_P}"
  25. PATCHES=(
  26. "${FILESDIR}/${P}-gentoo.diff"
  27. "${FILESDIR}/${P}-implicts.patch"
  28. "${FILESDIR}/${P}-flex-2.6.3-fix.patch"
  29. )
  30. pkg_setup() {
  31. tc-export CC
  32. }
  33. src_prepare() {
  34. default
  35. sed -e "s:\$(exec_prefix)/lib:\$(exec_prefix)/$(get_libdir):" \
  36. -e '/^STRIPFLAG/s@-s@@' \
  37. -e '/$(LN_S)/s@$(DESTDIR)$(AMIWM_HOME)@../..$(AMIWM_HOME)@' \
  38. -i Makefile.in || die
  39. sed -i -e "s:/bin/ksh:/bin/sh:g" Xsession{,2}.in || die
  40. cat <<- EOF > "${T}"/amiwm
  41. #!/bin/sh
  42. exec /usr/bin/amiwm
  43. EOF
  44. }
  45. src_install() {
  46. local DOCS=( README* )
  47. default
  48. exeinto /etc/X11/Sessions
  49. doexe "${T}"/amiwm
  50. }