mintmenu-5.1.6

Published: 16.08.2011

MintMenu supports filtering, favorites, easy-uninstallation, autosession, and many other features.

Project homepage: MintMenu

This is ebuild for MintMenu, nice looking searchable menu for Gnome graphical environment available in Linux Mint distribution.

This is ebuild I found in this bug report.

The authors prepared the ebuild for installation in Gentoo Linux environment by adding two additional use flags: terminal and portato.

Setting terminal use flag will change the default terminal from x-terminal-emulator to gnome-terminal. Unsettling the flag will disable terminal icon in menu.

Setting portato use flag will make Gentoo Linux Portato available as package manager. Unsettling the flag will disable package manger icon in menu.

Additional awn use flag is responsible for installing the Avant Window Manager integration.

To use this ebuild run following commands in terminal:

echo "=gnome-extra/mintmenu-5.1.6" >> /etc/portage/package.keywords
emerge -av =gnome-extra/mintmenu-5.1.6

View the source of the ebuild
  1. # Copyright 1999-2011 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4.  
  5. inherit eutils
  6.  
  7. DESCRIPTION="MintMenu supports filtering, favorites, easy-uninstallation, autosession, and many other features."
  8. SRC_URI="http://packages.linuxmint.com/pool/main/m/mintmenu/${PN}_${PV}.tar.gz
  9. awn? ( http://ppa.launchpad.net/neelance/awn/ubuntu/pool/main/a/awn-mintmenu/awn-${PN}_1.0-2.tar.gz )"
  10. MINT_TRANSLATIONS="mint-translations_2011.02.01.tar.gz"
  11. LANG_URL="http://packages.linuxmint.com/pool/main/m/mint-translations/${MINT_TRANSLATIONS}"
  12. HOMEPAGE="http://linuxmint.com
  13. https://launchpad.net/~neelance/+archive/awn"
  14. LICENSE="GPL-2"
  15. KEYWORDS="~amd64 ~x86"
  16. SLOT="0"
  17. IUSE="portato terminal awn"
  18.  
  19. LANGS="af am ar ast be ber bg bn bs ca ckb csb cs cy da de el en_AU en_CA en_GB eo es et eu fa fi fo fr gl gv"
  20. LANGS="${LANGS} he hi hr hu hy id is it ja jv kk kn ko lt lv mk ml mr ms nb nds nl nn oc pa pl pt_BR pt ro ru"
  21. LANGS="${LANGS} si sk sl sq sr sv ta te th tr uk ur vi zh_CN zh_HK zh_TW"
  22.  
  23. for X in ${LANGS} ; do
  24. IUSE="${IUSE} linguas_${X}"
  25. SRC_URI="${SRC_URI} linguas_${X}? ( ${LANG_URL} )"
  26. done
  27.  
  28. RDEPEND=">=dev-lang/python-2.4.6
  29. <dev-lang/python-3.1.1-r1
  30. dev-python/pygtk
  31. dev-python/gnome-desktop-python
  32. dev-python/pyxdg
  33. x11-misc/alacarte
  34. gnome-extra/deskbar-applet
  35. terminal? ( x11-terms/gnome-terminal )
  36. portato? ( app-portage/portato )
  37. awn? ( gnome-extra/avant-window-navigator )"
  38.  
  39. DEPEND="${RDEPEND}
  40. sys-apps/sed"
  41.  
  42. S="${WORKDIR}"
  43.  
  44. src_install() {
  45. dobin mintmenu/usr/bin/mintmenu
  46. dodir /usr/lib/linuxmint/mintMenu
  47. insinto /usr/lib/linuxmint/mintMenu
  48. cp -R mintmenu/usr/lib/linuxmint/mintMenu/* ${D}usr/lib/linuxmint/mintMenu
  49. dodir /usr/lib/bonobo/servers
  50. insinto /usr/lib/bonobo/servers
  51. doins mintmenu/usr/lib/bonobo/servers/mintMenu.server
  52. dodoc mintmenu/debian/changelog mintmenu/debian/control
  53.  
  54. [[ -f ${MINT_TRANSLATIONS} ]] && unpack ${MINT_TRANSLATIONS}
  55. for X in ${LANGS} ; do
  56. if use linguas_${X}; then
  57. dodir /usr/share/linuxmint/locale/${X}/LC_MESSAGES
  58. insinto /usr/share/linuxmint/locale/${X}/LC_MESSAGES
  59. doins mint-translations*/usr/share/linuxmint/locale/${X}/LC_MESSAGES/mintmenu.mo
  60. fi
  61. done
  62.  
  63. if use awn ; then
  64. mkdir -p ${D}/usr/share/avant-window-navigator/applets
  65. cp awn-mintmenu-1.0/mintmenu.desktop ${D}/usr/share/avant-window-navigator/applets
  66. mkdir -p ${D}/usr/lib/linuxmint/mintMenu
  67. cp awn-mintmenu-1.0/mintMenuAwn.py ${D}/usr/lib/linuxmint/mintMenu
  68. fi
  69. }
  70.  
  71. pkg_preinst() {
  72. sed -i "s/share\/common\-licenses\/GPL/portage\/licenses\/GPL\-2/" ${D}usr/lib/linuxmint/mintMenu/mintMenu.py
  73. sed -i "/version.py\ mintmenu/d" ${D}usr/lib/linuxmint/mintMenu/mintMenu.py
  74. sed -i "s/set_version(version)/set_version(\"${PV}\")/" ${D}usr/lib/linuxmint/mintMenu/mintMenu.py
  75. sed -i "s/\"use_apt\",\ True/\"use_apt\",\ False/" ${D}usr/lib/linuxmint/mintMenu/plugins/applications.py
  76. sed -i "/activate\",\ self\.search\_mint\_tutorials\|ideas\|users\|software\|hardware)/,+1d" ${D}usr/lib/linuxmint/mintMenu/plugins/applications.py
  77. sed -i "s/\"show_software_manager\",\ True/\"show_software_manager\",\ False/" ${D}usr/lib/linuxmint/mintMenu/plugins/system_management.py
  78. if use terminal; then
  79. sed -i "s/x\-terminal\-emulator/gnome\-terminal/" ${D}usr/lib/linuxmint/mintMenu/plugins/system_management.py
  80. else
  81. sed -i "s/\"show_terminal\",\ True/\"show_terminal\",\ False/" ${D}usr/lib/linuxmint/mintMenu/plugins/system_management.py
  82. fi
  83. if use portato; then
  84. sed -i "s/sbin\/synaptic/bin\/portato/" ${D}usr/lib/linuxmint/mintMenu/plugins/system_management.py
  85. else
  86. sed -i "s/\"show_package_manager\",\ True/\"show_package_manager\",\ False/" ${D}usr/lib/linuxmint/mintMenu/plugins/system_management.py
  87. fi
  88. }

Here is the list of all the mintmenu ebuild versions that are available in my overlay:



Comments

If you have found something wrong with the information provided above or maybe you just want to speak your mind about it, feel free to leave a comment.
All comments will show up on page after being approved. Sorry for such policy but I want to make sure that my site will be free of abusive or vulgar content. I don't mind being criticized just do it using right words.

Leave a comment