Skip to content

Commit

Permalink
app-emacs/shrink-path: new package; add 0.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Barć <[email protected]>
  • Loading branch information
xgqt committed Jan 19, 2023
1 parent 05ecae0 commit aedfcfd
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-emacs/shrink-path/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST shrink-path.el-v0.3.1.tar.bz2 15743 BLAKE2B 8f5db089737f2d31c9f5852265f1b33679de3cc72989bf04b8d50871b3b8fa356da6823177759561b99ee5b032fb10ba1c51f49cdd7d74daafb1d6cac44ba2b7 SHA512 f4cc191186c2a2e706ff08fbcd43f24dd67297a368c42da72626d70e3522d5b24ceba45a2e17821f6288576f10e0208e3d643946108edd6180502dd1bad019ed
1 change: 1 addition & 0 deletions app-emacs/shrink-path/files/50shrink-path-gentoo.el
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(add-to-list 'load-path "@SITELISP@")
13 changes: 13 additions & 0 deletions app-emacs/shrink-path/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">

<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo GNU Emacs project</name>
</maintainer>
<upstream>
<bugs-to>https://gitlab.com/bennya/shrink-path.el/-/issues/</bugs-to>
<remote-id type="gitlab">bennya/shrink-path.el</remote-id>
</upstream>
</pkgmetadata>
43 changes: 43 additions & 0 deletions app-emacs/shrink-path/shrink-path-0.3.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

NEED_EMACS=24

inherit elisp

DESCRIPTION="Fish-style path truncation for GNU Emacs"
HOMEPAGE="https://gitlab.com/bennya/shrink-path.el/"
SRC_URI="https://gitlab.com/bennya/${PN}.el/-/archive/v${PV}/${PN}.el-v${PV}.tar.bz2"
S="${WORKDIR}"/${PN}.el-v${PV}

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
app-emacs/s
app-emacs/dash
app-emacs/f
"
BDEPEND="
${RDEPEND}
test? ( app-emacs/buttercup )
"

DOCS=( README.org )
SITEFILE="50${PN}-gentoo.el"

src_prepare() {
sed -i 's|it "same as shrink-path"|xit "same as shrink-path"|' \
"${S}"/test/shrink-path-test.el || die

default
}

src_test() {
buttercup -L . -L test --traceback full test || die
}

0 comments on commit aedfcfd

Please sign in to comment.