View previous topic :: View next topic |
Author |
Message |
Tinitus Veteran
Joined: 20 Sep 2004 Posts: 1754
|
Posted: Tue Feb 24, 2015 6:24 pm Post subject: [S] BASH History Suggest Box ebuild gesucht |
|
|
Hallo,
ich bin im Internet auf diese interessante Bash Erweiterung gestoßen.
Hat da jemand schon ein ebuild für gebaut?
LinK: https://github.com/dvorka/hstr/blob/master/README.md
Grüße
Last edited by Tinitus on Thu Feb 26, 2015 6:17 pm; edited 1 time in total |
|
Back to top |
|
|
Tinitus Veteran
Joined: 20 Sep 2004 Posts: 1754
|
Posted: Thu Feb 26, 2015 5:40 pm Post subject: |
|
|
Habe mir mal ein ebuild erstellt:
app-misc/hh
nano hh-1.15.ebuild
Code: |
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
DESCRIPTION="Shell history suggest box for Bash"
HOMEPAGE="https://github.com/dvorka/hstr"
SRC_URI="https://github.com/dvorka/hstr/releases/download/${PV}/${P}-src.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
src_compile() {
cd "${WORKDIR}"/hstr
econf || die "econf failed."
emake || die "emake failed."
}
src_install() {
cd "${WORKDIR}"/hstr
dobin src/hh || die "dobin failed."
doman man/hh.1
}
pkg_postinst() {
elog "Run hh --show-configuration"
elog "to determine what will be appended to your Bash profile"
elog "Execute"
elog "hh --show-configuration >> ~/.bashrc"
elog "to change ~/.bashrc"
elog ""
elog "then do:"
elog ""
elog ". ~/.bashrc "
elog " to reload bashrc"
elog ""
}
|
Verwendung auf eigene Gefahr |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sat Feb 28, 2015 6:16 pm Post subject: |
|
|
Tinitus wrote: | Habe mir mal ein ebuild erstellt: |
Wenn Du noch ein EAPI="5" am Anfang und ein S="${WORKDIR}/hstr" später einfügst, kannst Du Dir src_compile(), sowie in src_install() das "cd" und "|| die" sparen, und hast ein ebuild, das länger mit dem aktuellen Portage-Baum kompatibel ist. Statt der "elog"-Oper würde ich die readme.gentoo eclass empfehlen; dann kann der Benutzer das auch später nachlesen, ohne in Logs herumzuwühlen. |
|
Back to top |
|
|
Christian99 Veteran
Joined: 28 May 2009 Posts: 1668
|
Posted: Sun Mar 01, 2015 11:15 am Post subject: |
|
|
das sieht interessant aus, werd ich nächste Woche mal probieren. Danke für den Hinweis und ebuild. |
|
Back to top |
|
|
Tinitus Veteran
Joined: 20 Sep 2004 Posts: 1754
|
Posted: Mon Mar 02, 2015 1:40 pm Post subject: |
|
|
mv wrote: | Tinitus wrote: | Habe mir mal ein ebuild erstellt: |
Wenn Du noch ein EAPI="5" am Anfang und ein S="${WORKDIR}/hstr" später einfügst, kannst Du Dir src_compile(), sowie in src_install() das "cd" und "|| die" sparen, und hast ein ebuild, das länger mit dem aktuellen Portage-Baum kompatibel ist. Statt der "elog"-Oper würde ich die readme.gentoo eclass empfehlen; dann kann der Benutzer das auch später nachlesen, ohne in Logs herumzuwühlen. |
Wo kann man das nachlesen? Habe nichts einfaches gefunden...
Wohin kommen die zu installierenden Dateien bei einem bin ebuild? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Mon Mar 02, 2015 8:57 pm Post subject: |
|
|
Tinitus wrote: | Wo kann man das nachlesen? |
app-doc/pms
Quote: | Wohin kommen die zu installierenden Dateien bei einem bin ebuild? |
${ED}? |
|
Back to top |
|
|
Tinitus Veteran
Joined: 20 Sep 2004 Posts: 1754
|
Posted: Tue Mar 03, 2015 11:29 am Post subject: |
|
|
Frage falsch gestellt.
emerge fängt ja das make install ab und installiert dann in die entsprechenden Ordner des Systems.
Wenn man ein bin Programm hat gibt es jedoch keine make install....sondern nur ein paar Dateien.
Wohin kommen die Lib's und die Binärdateien, man Dateien, etc. ?
Wie teile ich emerge das im Ebuild mit, wohin die Dateien kommen?
Wie lautet die Sytax dafür? Gibt es da ein Beispiel? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Tue Mar 03, 2015 1:33 pm Post subject: |
|
|
Tinitus wrote: | Wie lautet die Sytax dafür? |
man ebuild: Code: | dobin Programm
insinto /usr/share/man/man3
doins manpage.3 |
|
|
Back to top |
|
|
|