app-shells/ohmyzsh: new package

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Simon van der Maas <svdm-gentoo@protonmail.com>
This commit is contained in:
Simon van der Maas
2021-02-20 14:11:13 +01:00
parent 81deea9f47
commit 2a7be35ff1
4 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST ohmyzsh-0_pre20210209.tar.gz 696345 BLAKE2B a51a47dfc655ab36d6b2d9d73726caee5d9fbb9130b071feb17440c3d04269f8f2129e9f343594315f3e1f01b1de865cdc9bbee63ba370723d88188903d5dba3 SHA512 c66c87fd767748c7849cd2c799246cc145cdabc3001ab76653794b9a73100fb412e84a006386be57bc603b9dd66d823d758ae31afc6bc0f9faea1e41f38d69f6

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>svdm-gentoo@protonmail.com</email>
<name>Simon van der Maas</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,33 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
inherit git-r3
else
MY_COMMIT="f21e646ce6c09198f7f625c597f08af49551fdb0"
SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
fi
DESCRIPTION="A framework for managing your zsh configuration."
HOMEPAGE="https://ohmyz.sh"
LICENSE="MIT"
SLOT="0"
DEPEND="app-shells/zsh"
RDEPEND="${DEPEND}"
src_install() {
insinto "/usr/share/zsh/site-contrib/oh-my-zsh"
doins -r *
}
pkg_postinst() {
elog "In order to use ${PN}, copy /usr/share/zsh/site-contrib/oh-my-zsh/templates/zshrc.zsh-template over to your ~/.zshrc"
elog "and change the path of your oh-my-zsh installation to: 'export ZSH=/usr/share/zsh/site-contrib/oh-my-zsh'"
}

View File

@@ -0,0 +1,33 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
inherit git-r3
else
MY_COMMIT="f21e646ce6c09198f7f625c597f08af49551fdb0"
SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
fi
DESCRIPTION="A framework for managing your zsh configuration."
HOMEPAGE="https://ohmyz.sh"
LICENSE="MIT"
SLOT="0"
DEPEND="app-shells/zsh"
RDEPEND="${DEPEND}"
src_install() {
insinto "/usr/share/zsh/site-contrib/oh-my-zsh"
doins -r *
}
pkg_postinst() {
elog "In order to use ${PN}, copy /usr/share/zsh/site-contrib/oh-my-zsh/templates/zshrc.zsh-template over to your ~/.zshrc"
elog "and change the path of your oh-my-zsh installation to: 'export ZSH=/usr/share/zsh/site-contrib/oh-my-zsh'"
}