xombrero-9999.ebuild 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. if [[ ${PV} = *9999* ]]; then
  5. GIT_ECLASS=git-2
  6. fi
  7. inherit eutils fdo-mime toolchain-funcs ${GIT_ECLASS}
  8. DESCRIPTION="A minimalist web browser with sophisticated security features designed-in"
  9. HOMEPAGE="http://opensource.conformal.com/wiki/xombrero"
  10. if [[ ${PV} = *9999* ]]; then
  11. EGIT_REPO_URI="git://opensource.conformal.com/${PN}.git
  12. https://opensource.conformal.com/git/${PN}.git"
  13. EGIT_SOURCEDIR="${WORKDIR}/${P}"
  14. KEYWORDS=""
  15. else
  16. SRC_URI="http://opensource.conformal.com/snapshots/${PN}/${P}.tgz"
  17. KEYWORDS="~amd64 ~x86"
  18. fi
  19. LICENSE="ISC"
  20. SLOT="0"
  21. IUSE="examples"
  22. RDEPEND="dev-libs/glib:2
  23. dev-libs/libbsd
  24. dev-libs/libgcrypt:0
  25. net-libs/libsoup
  26. net-libs/gnutls
  27. net-libs/webkit-gtk:3
  28. x11-libs/gdk-pixbuf
  29. x11-libs/gtk+:3
  30. x11-libs/pango"
  31. DEPEND="${RDEPEND}
  32. dev-lang/perl
  33. sys-apps/groff
  34. dev-libs/atk
  35. dev-libs/libxml2
  36. media-libs/fontconfig
  37. media-libs/freetype
  38. media-libs/libpng:0
  39. x11-libs/cairo
  40. x11-libs/libdrm
  41. x11-libs/pixman"
  42. S="${WORKDIR}/${P}/linux"
  43. src_prepare() {
  44. sed -i \
  45. -e 's/-O2//' \
  46. -e 's/-ggdb3//' \
  47. -e 's#/usr/local#/usr#' \
  48. Makefile || die 'sed Makefile failed.'
  49. sed -i \
  50. -e 's#/usr/local#/usr#' \
  51. GNUmakefile || die 'sed GNUmakefile failed.'
  52. sed -i \
  53. -e 's#https://www\.cyphertite\.com#https://www.gentoo.org/#' \
  54. -e "s#/usr/local#/usr#" \
  55. ../xombrero.h || die 'sed ../xombrero.c failed.'
  56. sed -i \
  57. "s#Icon=#Icon=/usr/share/${PN}/#" \
  58. ../xombrero.desktop || die 'sed ../xombrero.desktop failed.'
  59. sed -i "s:Application;::" ../xombrero.desktop || die
  60. }
  61. src_compile() {
  62. CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDADD="${LDFLAGS}" emake
  63. }
  64. src_install() {
  65. emake \
  66. DESTDIR="${D}" \
  67. PREFIX=/usr \
  68. install
  69. if use examples;then
  70. insinto "/usr/share/doc/${PF}/examples"
  71. doins \
  72. ../${PN}.conf \
  73. ../playflash.sh \
  74. ../favorites
  75. fi
  76. }
  77. pkg_postinst() {
  78. fdo-mime_desktop_database_update
  79. fdo-mime_mime_database_update
  80. }
  81. pkg_postrm() {
  82. fdo-mime_desktop_database_update
  83. fdo-mime_mime_database_update
  84. }