Advertisement
Guest User

cde-9999.ebuild

a guest
Jul 14th, 2014
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.28 KB | None | 0 0
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4.  
  5. EAPI=4
  6.  
  7. inherit git-r3
  8.  
  9. DESCRIPTION="The Common Desktop Environment, the classic UNIX desktop"
  10. HOMEPAGE="http://cdesktopenv.sourceforge.net/"
  11. SRC_URI=""
  12.  
  13. LICENSE="LGPL-2.1"
  14. SLOT="0"
  15. KEYWORDS="~x86 ~amd64"
  16. IUSE=""
  17.  
  18. EGIT_REPO_URI="git://git.code.sf.net/p/cdesktopenv/code"
  19. S="${WORKDIR}/${P}/cde"
  20.  
  21. DEPEND="x11-libs/libXp
  22.         x11-libs/libXt
  23.         x11-libs/libXmu
  24.         x11-libs/libXft
  25.         x11-libs/libXinerama
  26.         x11-libs/libXpm
  27.         >=x11-libs/motif-2.3
  28.         x11-libs/libXaw
  29.         x11-libs/libX11
  30.         x11-libs/libXScrnSaver
  31.         net-libs/libtirpc
  32.         x11-apps/xset
  33.         media-libs/jpeg:62
  34.         media-libs/freetype:2
  35.         dev-lang/tcl
  36.         app-shells/ksh
  37.         app-arch/ncompress
  38.         media-fonts/font-adobe-100dpi
  39.         media-fonts/font-adobe-utopia-100dpi
  40.         media-fonts/font-bh-100dpi
  41.         media-fonts/font-bh-lucidatypewriter-100dpi
  42.         media-fonts/font-bitstream-100dpi
  43.         net-nds/rpcbind
  44.         x11-misc/xbitmaps"
  45. RDEPEND="${DEPEND}"
  46.  
  47. src_prepare() {
  48.     mkdir -p imports/x11/include
  49.     cd imports/x11/include
  50.     ln -s /usr/include/X11 .
  51. }
  52.  
  53. src_compile() {
  54.     #
  55.     # The make invokation below accomplishes the following:
  56.     #
  57.     # (1) xmakefiles need to be generated before anything else.  
  58.     #     Maybe there's a more intelligent way to ensure this than to
  59.     #     disable parallel make.
  60.     #
  61.     # (2) Build process shouldn't die, as this is alpha code and some
  62.     #     things are expected not to compile.  So we use make instead
  63.     #     emake, which dies on non-zero return value from build.
  64.     MAKEOPTS="${MAKEOPTS} -j1" make World || true
  65. }
  66.  
  67. src_install() {
  68.     #
  69.     # Install CDE files
  70.     #
  71.     # The following is based on the installCDE script.
  72.     cd admin/IntegTools/dbTools
  73.     DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
  74.                     CDE-MSG-C CDE-HELP-C CDE-SHLIBS CDE-HELP-PRG \
  75.                     CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \
  76.                     CDE-FONTS CDE-INFO CDE-INFOLIB-C"
  77.     DATABASE_DIR="${S}"/databases
  78.     for db in ${DATABASE_FILES}; do
  79.         einfo "Fileset ${db}"
  80.         einfo "    ${DATABASE_DIR}/${db}.udb -> ${T}/${db}.lst"
  81.         /bin/ksh ./udbToAny.ksh -toLst -ReleaseStream linux \
  82.             "${DATABASE_DIR}"/"${db}".udb > "${T}"/"${db}".lst
  83.         einfo "    ${T}/${db}.lst -> ${D}"
  84.         /bin/ksh ./mkProd -D "${D}" -S "${S}" "${T}"/"${db}".lst
  85.     done
  86.     # Move stuff that we can out of /usr/dt to comply with FHS
  87.     # as much as possible (more probably requires patching)
  88.     einfo "Relocating some files to comply with FHS as much as"
  89.     einfo "possible.  More probably requires patching ..."
  90.     mv -v "${D}"/usr/dt/{bin,lib} "${D}"/usr/
  91.     mkdir -pv "${D}"/usr/share/man
  92.     mv -v "${D}"/usr/dt/share/man/* "${D}"/usr/share/man/
  93.     ln -sfv "${D}"/usr/share/man "${D}"/usr/dt/man
  94.     #
  95.     # Misc directories
  96.     #
  97.     # These are required according to CDE website wiki
  98.     # (complying with FHS probably requires patching)
  99.     dodir /var/dt
  100.     fperms 0777 /var/dt
  101.     dodir /usr/spool/calendar
  102.     #
  103.     # env.d for /usr/dt paths
  104.     #doenvd "${FILESDIR}"/95cde  # NO LONGER REQUIRED WITH mv ABOVE
  105. }
  106.  
  107. pkg_postinst() {
  108.     ewarn "The rpcbind daemon must be running for many CDE apps to work."
  109.     ewarn
  110.     ewarn "For now, rpcbind must run in insecure mode.  This is "
  111.     ewarn "accomplished by passing the '-i' command line parameter."
  112.     ewarn "(See /etc/conf.d/rpcbind .)"
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement