pcmanfm-9999.ebuild 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. PLOCALES="ar be bg bn ca cs da de el en_GB es et eu fa fi fo fr gl he hr hu id
  5. is it ja kk km ko lg lt lv ms nl pa pl pt pt_BR ro ru si sk sl sr sr@latin sv
  6. te th tr tt_RU ug uk vi zh_CN zh_TW"
  7. PLOCALE_BACKUP="en_GB"
  8. inherit autotools eutils fdo-mime l10n readme.gentoo
  9. if [[ ${PV} == *9999* ]]; then
  10. EGIT_REPO_URI="git://git.lxde.org/git/lxde/${PN}"
  11. inherit git-r3
  12. KEYWORDS=""
  13. else
  14. SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.xz"
  15. KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~x86"
  16. fi
  17. MY_PV="${PV/_/}"
  18. MY_P="${PN}-${MY_PV}"
  19. DESCRIPTION="Fast lightweight tabbed filemanager"
  20. HOMEPAGE="http://pcmanfm.sourceforge.net/"
  21. LICENSE="GPL-2"
  22. SLOT="0"
  23. IUSE="debug"
  24. RDEPEND=">=dev-libs/glib-2.18:2
  25. >=x11-libs/gtk+-2.16:2
  26. >=lxde-base/menu-cache-0.3.2
  27. x11-misc/shared-mime-info
  28. >=x11-libs/libfm-${PV}:=[gtk(+)]
  29. virtual/eject
  30. virtual/freedesktop-icon-theme"
  31. DEPEND="${RDEPEND}
  32. app-arch/xz-utils
  33. >=dev-util/intltool-0.40
  34. virtual/pkgconfig
  35. sys-devel/gettext"
  36. S="${WORKDIR}"/${MY_P}
  37. DOCS=( AUTHORS )
  38. DOC_CONTENTS="PCmanFM can optionally support the menu://applications/
  39. location. You should install lxde-base/lxmenu-data for that functionality."
  40. src_prepare() {
  41. intltoolize --force --copy --automake || die
  42. # drop -O0 -g. Bug #382265 and #382265
  43. sed -i -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" "${S}"/configure.ac || die
  44. #Remove -Werror for automake-1.12. Bug #421101
  45. sed -i "s:-Werror::" configure.ac || die
  46. eautoreconf
  47. export LINGUAS="${LINGUAS:-${PLOCALE_BACKUP}}"
  48. l10n_get_locales > "${S}"/po/LINGUAS
  49. epatch_user
  50. }
  51. src_configure() {
  52. econf --sysconfdir="${EPREFIX}/etc" $(use_enable debug)
  53. }
  54. pkg_postinst() {
  55. fdo-mime_desktop_database_update
  56. fdo-mime_mime_database_update
  57. readme.gentoo_print_elog
  58. }
  59. pkg_postrm() {
  60. fdo-mime_desktop_database_update
  61. fdo-mime_mime_database_update
  62. }