# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 USE_RUBY="ruby31 ruby32 ruby33" COMMIT=7e76d754e1632b4fc9a024fa393c3fc837bcc86b 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 )" RESTRICT="!test? ( test )" IUSE="test" src_test() { rake || die } src_install() { elisp_src_install elisp-install ${PN}/ruby ruby/* }