Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519648 - dev-db/sqlitestudio-2.1.5 - an SQLite database manager
Summary: dev-db/sqlitestudio-2.1.5 - an SQLite database manager
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2014-08-11 15:10 UTC by Alex
Modified: 2016-08-10 19:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sqlitestudio-2.1.5.ebuild (sqlitestudio-2.1.5.ebuild,911 bytes, text/plain)
2014-08-11 15:10 UTC, Alex
Details
sqlitestudio-2.1.5-typofix.patch (sqlitestudio-2.1.5-typofix.patch,276 bytes, patch)
2014-08-11 15:11 UTC, Alex
Details | Diff
New version of ebuild (sqlitestudio-2.1.5.ebuild,865 bytes, text/plain)
2014-08-13 15:44 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2014-08-11 15:10:18 UTC
Created attachment 382678 [details]
sqlitestudio-2.1.5.ebuild

SqliteStudio is powerful, comfortable and lightweight front-end for managing Sqlite2/3 databases
Comment 1 Alex 2014-08-11 15:11:09 UTC
Created attachment 382680 [details, diff]
sqlitestudio-2.1.5-typofix.patch
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-11 15:21:47 UTC
Comment on attachment 382678 [details]
sqlitestudio-2.1.5.ebuild

>DESCRIPTION="SQLiteStudio is a SQLite database manager with many features"

DESCRIPTION need not include the name in this case, as ${PN} is basically the same.

>LICENSE="GPLv2"

That is invalid - it should be "GPL-2".

>SLOT="0"
>KEYWORDS="~amd64"
>IUSE=""

Drop the empty IUSE.

>DEPEND="
>        >=dev-db/sqlite-3.7[tcl]
>        =dev-tcltk/itcl-3.4.1
>        >=dev-tcltk/tktreectrl-2.3.2
>        >=dev-tcltk/tkpng-0.7
>        >=dev-tcltk/tkdnd-2.6
>        =dev-tcltk/itk-3.4_pre20090417-r1
>		dev-tcltk/thread"

Dubious whitespace - why the extra tab on that last line?

>RDEPEND="${DEPEND}"
>
>src_prepare() {
>  epatch "${FILESDIR}/${P}-typofix.patch"
>}
>
>src_install() {
>  mkdir -p ${D}/usr/share/${PN}

mkdir -> dodir

>  cp -av * ${D}/usr/share/${PN}

Need not be verbose.

>  mkdir -p ${D}/usr/bin

mkdir -> dodir

>  chmod +x ${D}/usr/bin/${PN}

fperms +x /usr/bin/${PN}
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-11 15:23:29 UTC
Comment on attachment 382678 [details]
sqlitestudio-2.1.5.ebuild

># Copyright 1999-2014 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>EAPI=5
>
>inherit eutils
>
>DESCRIPTION="SQLiteStudio is a SQLite database manager with many features"
>HOMEPAGE="http://sqlitestudio.pl/"
>SRC_URI="http://sqlitestudio.pl/files/free/stable/tar/${PN}-${PV}.tar.bz2"
>
>LICENSE="GPLv2"
>SLOT="0"
>KEYWORDS="~amd64"
>IUSE=""
>
>DEPEND="
>        >=dev-db/sqlite-3.7[tcl]
>        =dev-tcltk/itcl-3.4.1
>        >=dev-tcltk/tktreectrl-2.3.2
>        >=dev-tcltk/tkpng-0.7
>        >=dev-tcltk/tkdnd-2.6
>        =dev-tcltk/itk-3.4_pre20090417-r1
>		dev-tcltk/thread"
>RDEPEND="${DEPEND}"

Also, are you sure all of this is needed at build time, i.e. wouldn't setting these as RDEPEND only suffice?

>src_prepare() {
>  epatch "${FILESDIR}/${P}-typofix.patch"
>}
>
>src_install() {
>  mkdir -p ${D}/usr/share/${PN}
>  cp -av * ${D}/usr/share/${PN}
>  mkdir -p ${D}/usr/bin
>  echo -e "#!/bin/bash \ntclsh /usr/share/${PN}/main.tcl" > ${D}/usr/bin/${PN}
>  chmod +x ${D}/usr/bin/${PN}
>}
Comment 4 Alex 2014-08-13 15:44:07 UTC
Created attachment 382840 [details]
New version of ebuild
Comment 5 Alex 2014-08-13 15:48:42 UTC
(In reply to Jeroen Roovers from comment #3)
> Comment on attachment 382678 [details]
> sqlitestudio-2.1.5.ebuild
> 
> ># Copyright 1999-2014 Gentoo Foundation
> ># Distributed under the terms of the GNU General Public License v2
> ># $Header: $
> >
> >EAPI=5
> >
> >inherit eutils
> >
> >DESCRIPTION="SQLiteStudio is a SQLite database manager with many features"
> >HOMEPAGE="http://sqlitestudio.pl/"
> >SRC_URI="http://sqlitestudio.pl/files/free/stable/tar/${PN}-${PV}.tar.bz2"
> >
> >LICENSE="GPLv2"
> >SLOT="0"
> >KEYWORDS="~amd64"
> >IUSE=""
> >
> >DEPEND="
> >        >=dev-db/sqlite-3.7[tcl]
> >        =dev-tcltk/itcl-3.4.1
> >        >=dev-tcltk/tktreectrl-2.3.2
> >        >=dev-tcltk/tkpng-0.7
> >        >=dev-tcltk/tkdnd-2.6
> >        =dev-tcltk/itk-3.4_pre20090417-r1
> >		dev-tcltk/thread"
> >RDEPEND="${DEPEND}"
> 
> Also, are you sure all of this is needed at build time, i.e. wouldn't
> setting these as RDEPEND only suffice?
> 
> >src_prepare() {
> >  epatch "${FILESDIR}/${P}-typofix.patch"
> >}
> >
> >src_install() {
> >  mkdir -p ${D}/usr/share/${PN}
> >  cp -av * ${D}/usr/share/${PN}
> >  mkdir -p ${D}/usr/bin
> >  echo -e "#!/bin/bash \ntclsh /usr/share/${PN}/main.tcl" > ${D}/usr/bin/${PN}
> >  chmod +x ${D}/usr/bin/${PN}
> >}

Thanks for comments - I fixed the mistakes, and sorry for troubling you. I've wrote this ebuild just for my own purpose and decided to share it...
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-08-10 19:13:22 UTC
This has since been added to the tree.