# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 USE_RUBY="ruby31 ruby32 ruby33" COMMIT=b9cea578ef6738ce675243296c3abf91b9323e11 inherit elisp ruby-single DESCRIPTION="Major mode for editing Ruby files" HOMEPAGE="https://github.com/zenspider/enhanced-ruby-mode" SRC_URI="https://github.com/zenspider/enhanced-ruby-mode/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/enhanced-ruby-mode-${COMMIT}" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64" SITEFILE="50${PN}-gentoo.el" DOCS="README.rdoc" DEPEND="test? ( dev-ruby/rake )" IUSE="test" RESTRICT="!test? ( test )" src_test() { rake || die } src_install() { elisp_src_install elisp-install ${PN}/ruby ruby/* }