Advertisement
sanyo

lazarus-9999.ebuild

Mar 14th, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. # Copyright 1999-2011 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4.  
  5. EAPI=3
  6.  
  7. inherit eutils subversion
  8.  
  9. RESTRICT="strip" #269221
  10.  
  11. SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
  12. LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-linking-exception"
  13. KEYWORDS="~x86 ~amd64"
  14. DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi."
  15. HOMEPAGE="http://www.lazarus.freepascal.org/"
  16. IUSE=""
  17. ESVN_REPO_URI="http://svn.freepascal.org/svn/lazarus/trunk"
  18.  
  19. FPCVER="2.4.4"
  20. #use fpc240 && FPCVER="2.4.0"
  21.  
  22. DEPEND="~dev-lang/fpc-${FPCVER}[source]
  23. net-misc/rsync
  24. >=x11-libs/gtk+-2.0"
  25. RDEPEND="${DEPEND}
  26. !=gnome-base/librsvg-2.16.1"
  27. DEPEND="${DEPEND}
  28. >=sys-devel/binutils-2.19.1-r1"
  29.  
  30. S=${WORKDIR}/${PN}
  31.  
  32. src_prepare() {
  33. ewarn
  34. ewarn "you've selected to use fpc-$FPCVER !"
  35. ewarn
  36. epatch "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch
  37.  
  38. # Use default configuration (minus stripping) unless specifically requested otherwise
  39. if ! test ${PPC_CONFIG_PATH+set} ; then
  40. local FPCVER=$(fpc -iV)
  41. export PPC_CONFIG_PATH="${WORKDIR}"
  42. sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg |
  43. sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die
  44. #sed -i -e '/^-Xs/d' "${PPC_CONFIG_PATH}"/fpc.cfg || die
  45. fi
  46. }
  47.  
  48. src_compile() {
  49. LCL_PLATFORM=qt emake -j1 || die "make failed!"
  50. }
  51.  
  52. src_install() {
  53. diropts -m0755
  54. dodir /usr/share
  55. # Using rsync to avoid unnecessary copies and cleaning...
  56. # Note: *.o and *.ppu are needed
  57. rsync -a \
  58. --exclude="CVS" --exclude=".cvsignore" \
  59. --exclude="*.ppw" --exclude="*.ppl" \
  60. --exclude="*.ow" --exclude="*.a"\
  61. --exclude="*.rst" --exclude=".#*" \
  62. --exclude="*.~*" --exclude="*.bak" \
  63. --exclude="*.orig" --exclude="*.rej" \
  64. --exclude=".xvpics" --exclude="*.compiled" \
  65. --exclude="killme*" --exclude=".gdb_hist*" \
  66. --exclude="debian" --exclude="COPYING*" \
  67. --exclude="*.app" \
  68. "${S}" "${D}"usr/share \
  69. || die "Unable to copy files!"
  70.  
  71. dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
  72. dosym ../share/lazarus/startlazarus /usr/bin/lazarus
  73. dosym ../share/lazarus/lazbuild /usr/bin/lazbuild
  74. dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png
  75.  
  76. make_desktop_entry startlazarus "Lazarus IDE" "lazarus" || die "Failed making desktop entry!"
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement