mathmod-4.1-r1.ebuild 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils gnome2-utils qmake-utils fdo-mime
  5. DESCRIPTION="Plot parametric and implicit surfaces"
  6. HOMEPAGE="https://www.facebook.com/pages/MathMod/529510253833102"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.src.zip"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. RDEPEND="dev-qt/qtwidgets:5 dev-qt/qtopengl:5"
  13. DEPEND="${RDEPEND}"
  14. S="${WORKDIR}"/${PN}-branches-274-trunk
  15. src_configure() {
  16. eqmake5 MathMod.pro
  17. }
  18. src_install() {
  19. exeinto /usr/bin
  20. doexe MathMod
  21. insinto /usr/share/${P}
  22. doins mathmodconfig.js mathmodcollection.js advancedmodels.js
  23. newicon -s 16 icon/catenoid_mini_16x16.png catenoid.png
  24. newicon -s 32 icon/catenoid_mini_32x32.png catenoid.png
  25. newicon -s 64 icon/catenoid_mini_64x64.png catenoid.png
  26. make_desktop_entry MathMod MathMod catenoid
  27. }
  28. pkg_postinst() {
  29. gnome2_icon_cache_update
  30. fdo-mime_desktop_database_update
  31. }
  32. pkg_postrm() {
  33. gnome2_icon_cache_update
  34. fdo-mime_desktop_database_update
  35. }