mytop-1.9.1.ebuild 825 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit perl-module
  5. DESCRIPTION="mytop - a top clone for mysql"
  6. HOMEPAGE="http://www.mysqlfanboy.com/mytop-3/"
  7. SRC_URI="http://www.mysqlfanboy.com/mytop-3/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
  10. SLOT="0"
  11. IUSE=""
  12. RDEPEND="dev-perl/DBD-mysql
  13. virtual/perl-Getopt-Long
  14. dev-perl/TermReadKey
  15. virtual/perl-Term-ANSIColor
  16. virtual/perl-Time-HiRes"
  17. DEPEND="${RDEPEND}
  18. >=sys-apps/sed-4"
  19. PATCHES=( "${FILESDIR}/${PN}-1.9.1-global-status.patch"
  20. "${FILESDIR}/${PN}-1.9.1-queries-vs-questions-mysql-5.0.76.patch"
  21. )
  22. SRC_TEST="do"
  23. src_install() {
  24. perl-module_src_install
  25. sed -i -r\
  26. -e "s|socket( +)=> '',|socket\1=> '/var/run/mysqld/mysqld.sock',|g" \
  27. "${D}"/usr/bin/mytop
  28. }