Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188217 - media-gfx/fim (new ebuild)
Summary: media-gfx/fim (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2007-08-09 12:23 UTC by Michele Martone
Modified: 2013-11-27 09:24 UTC (History)
2 users (show)

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


Attachments
This is a proposed ebuild for Fim. (fim-0.1.ebuild,2.86 KB, text/plain)
2007-08-09 12:31 UTC, Michele Martone
Details
A revised ebuild for Fim (fim-0.1.ebuild,1.70 KB, text/plain)
2007-08-09 12:50 UTC, Michele Martone
Details
A revised ebuild for Fim (fim-0.1.ebuild,1.70 KB, text/plain)
2007-08-09 12:58 UTC, Michele Martone
Details
media-gfx/fim-0.1_alpha.ebuild (fim-0.1_alpha.ebuild,1.22 KB, text/plain)
2007-08-09 13:16 UTC, Jakub Moc (RETIRED)
Details
This is an updated ebuild for fim-0.1-alpha with a new repository URL. (fim-0.1_alpha.ebuild,1.30 KB, text/plain)
2008-01-02 16:42 UTC, Michele Martone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Martone 2007-08-09 12:23:38 UTC
This is an ebuild for the Fim program.

Reproducible: Always
Comment 1 Michele Martone 2007-08-09 12:28:08 UTC
# Copyright 1999-2007 Gentoo Foundation

# Fim custom ebuild by dezperado
# Distributed under the terms of the GNU General Public License v2

# $Id$

# Please note that this file is still experimental !
# 
# if you wonder how to use this ebuild :

# su
# FIM=fim-0.1
# wget http://www.autistici.org/dezperado/fim/${FIM}.tar.gz -O /usr/portage/distfiles/${FIM}.tgz
# mkdir -p /usr/local/portage/media-gfx/fim
# tar xvzf   /usr/portage/distfiles/${FIM}.tar.gz ${FIM}/distros/gentoo/media-gfx/fim/${FIM}.ebuild
# cd /usr/local/portage/media-gfx/fim
# ebuild  ${FIM}.ebuild digest
# echo PORTDIR_OVERLAY=/usr/local/portage >> /etc/make.conf
# emerge fim

# but read first any suggestions in the README file shipped with the Fim package!




# the description 
DESCRIPTION="FIM : Fbi IMproved is a framebuffer image viewer based on Fbi and inspired from Vim"

# the official web page
HOMEPAGE="http://www.autistici.org/dezperado/fim"

# the official mirror
SRC_URI="http://www.autistici.org/dezperado/fim/${P}.tar.gz"

# for testing
#SRC_URI="ftp://127.0.0.1/${P}.tar.gz"
#SRC_URI="http://code.autistici.org/svn/fim"


LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
IUSE="png jpeg gif tiff fbcon pdf"

DEPEND="media-libs/libpng
	media-libs/jpeg
	media-libs/tiff
	media-libs/giflib
	sys-libs/readline
	sys-devel/flex
	sys-devel/bison"

# fim depends optionally on graphics libraries
RDEPEND="jpeg? ( >=media-libs/jpeg-6b )
	png? ( media-libs/libpng )
	gif? ( media-libs/giflib )
	pdf? ( virtual/ghostscript media-libs/tiff )
	tiff? ( media-libs/tiff )
	sys-libs/readline
	sys-devel/flex
	sys-devel/bison"
# but it is constrained on flex and bison !

RDEPEND=""

src_unpack() {
	unpack ${A}
	cd ${S}
}

src_compile() {
	# Let autoconf do its job and then fix things to build fbida
	# according to our specifications

	CONFIGURE_FLAGS=
	if use jpeg; then
		CONFIGURE_FLAGS="jpeg $CONFIGURE_FLAGS"
	else
		CONFIGURE_FLAGS="--disable-jpeg $CONFIGURE_FLAGS"
	fi

	if use png; then
		CONFIGURE_FLAGS="--with-png $CONFIGURE_FLAGS"
	else
		CONFIGURE_FLAGS="--disable-png $CONFIGURE_FLAGS"
	fi

	if use tiff ; then
		CONFIGURE_FLAGS="--with-tiff $CONFIGURE_FLAGS"
	else
		CONFIGURE_FLAGS="--disable-tiff $CONFIGURE_FLAGS"
	fi

	if use gif ; then
		CONFIGURE_FLAGS="--with-gif $CONFIGURE_FLAGS"
	else
		CONFIGURE_FLAGS="--disable-gif $CONFIGURE_FLAGS"
	fi

	econf $CONFIGURE_FLAGS ||  die "econf failed for ${P}"
	emake || die "emake failed for ${P}"
}

src_install() {
# this is wrong : gonna discover why
#	make install || die

# this is good : gonna discover why
        make \
                DESTDIR=${D} \
                prefix=/usr \
                install || die

#	if ! use pdf; then
#		rm -f ${D}/usr/bin/fimgs ${D}/usr/share/man/man1/fimgs.1
#	fi
}

# more docs for lamers :P :
# www.gentoo.org/devel/handbook.xml
# http://linuxreviews.org/gentoo/ebuilds
# man 5 ebuild
# 

Comment 2 Michele Martone 2007-08-09 12:31:10 UTC
Created attachment 127353 [details]
This is a proposed ebuild for Fim.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-09 12:34:05 UTC
Please, don't paste ebuilds inline, that's what attachments are for.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap2

- this needs a standard copyright header (see /usr/portage/header.txt)
- nuke the lots of redundant comments
- bison/flex is hardly a runtime dependency
- emake doesn't work for install?
Comment 4 Michele Martone 2007-08-09 12:50:40 UTC
Created attachment 127354 [details]
A revised ebuild for Fim
Comment 5 Michele Martone 2007-08-09 12:58:45 UTC
Created attachment 127356 [details]
A revised ebuild for Fim

With quoted variables.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-08-09 13:16:26 UTC
Created attachment 127358 [details]
media-gfx/fim-0.1_alpha.ebuild

fixed ebuild (econf, dependencies etc.)
Comment 7 Michele Martone 2008-01-02 16:42:41 UTC
Created attachment 139883 [details]
This is an updated ebuild for fim-0.1-alpha with a new repository URL.
Comment 8 Michele Martone 2008-01-02 16:45:12 UTC
In attachment 
http://bugs.gentoo.org/attachment.cgi?id=139883
i posted a new ebuild for Fim with an updated download path.