Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[S] BASH History Suggest Box ebuild gesucht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Tue Feb 24, 2015 6:24 pm    Post subject: [S] BASH History Suggest Box ebuild gesucht Reply with quote

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
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Thu Feb 26, 2015 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sat Feb 28, 2015 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Sun Mar 01, 2015 11:15 am    Post subject: Reply with quote

das sieht interessant aus, werd ich nächste Woche mal probieren. Danke für den Hinweis und ebuild.
Back to top
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Mon Mar 02, 2015 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon Mar 02, 2015 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Tue Mar 03, 2015 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue Mar 03, 2015 1:33 pm    Post subject: Reply with quote

Tinitus wrote:
Wie lautet die Sytax dafür?

man ebuild:
Code:
dobin Programm
insinto /usr/share/man/man3
doins manpage.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum