Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] best way to install a costum app

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
DaNe
Apprentice
Apprentice
Posts: 192
Joined: Sat Apr 29, 2006 12:10 pm

[solved] best way to install a costum app

  • Quote

Post by DaNe » Tue Feb 12, 2008 9:46 pm

what is best way to install a costum souch way that when i want to remove it i can do it clean?


ps: the app that i want to install is http://supertech.csail.mit.edu/cilk/
Last edited by DaNe on Sun Feb 24, 2008 12:32 pm, edited 1 time in total.
Top
daschapa
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Fri Sep 01, 2006 7:32 pm

  • Quote

Post by daschapa » Tue Feb 12, 2008 10:10 pm

Normally, all apps' docs tells you where it puts those files installed when you "make install".
Read the docs carefully to know this.
In the other hand, keep in mind that most applications installs all files in one of the next two directory hierarchies:
  • /usr/
  • /usr/local/
In both cases, for both directory hierarchy, you should check the folders:
  • bin/
    share/
    lib/
There, you have to look for representative filenames for the application you want to delete.
Another thing you can do is making "make install" from an X console, then copy and paste the list of installed files in a txt. With this info you'll know how to clean it.
So:
  • Read the docs.
  • Check your lib, share and bin directories
  • Save a log of installed files
I hope this to be useful. Enjoy.
======================
Top
tuam
l33t
l33t
User avatar
Posts: 765
Joined: Tue May 04, 2004 9:09 am
Location: CGN, Germany

  • Quote

Post by tuam » Tue Feb 12, 2008 10:24 pm

Write an ebuild for it, and install it with emerge :wink:

FF,

Daniel
Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard
Top
twstd3bc
Apprentice
Apprentice
Posts: 289
Joined: Fri Feb 07, 2003 6:17 pm
Location: Los Angeles, USA

  • Quote

Post by twstd3bc » Wed Feb 13, 2008 1:52 pm

tuam wrote:Write an ebuild for it, and install it with emerge :wink:

FF,

Daniel
Here's a stab at it, say cilk-5.4.6.ebuild

Code: Select all

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Cilk is a language for multithreaded parallel programming based on ANSI C."
HOMEPAGE="http://supertech.csail.mit.edu/cilk/"
SRC_URI="http://supertech.csail.mit.edu/cilk/${P}.tar.gz"

LICENSE="GPL"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc"

DEPEND=""
RDEPEND=""

src_install() {
	emake DESTDIR="${D}" install || die "Install failed."
	dodoc doc/manual.pdf NEWS README THANKS
}
This won't compile if "-pipe" is in your CFLAGS because during the build an executable in the support directory is run with the CFLAGS but does not understand -pipe (and probably other stuff). So this ebuild needs work.
Top
twstd3bc
Apprentice
Apprentice
Posts: 289
Joined: Fri Feb 07, 2003 6:17 pm
Location: Los Angeles, USA

  • Quote

Post by twstd3bc » Wed Feb 13, 2008 2:05 pm

Oh, I see it's the cilkc command that doesn't accept the "-pipe" option. The cilkc program is used during the build, so you have to adjust your CFLAGS accordingly. This is a very, very interesting program. I'm going to play with it for a while.
Top
DaNe
Apprentice
Apprentice
Posts: 192
Joined: Sat Apr 29, 2006 12:10 pm

  • Quote

Post by DaNe » Mon Feb 18, 2008 11:26 pm

i installed in local anyway(and i noticed that to with the pipe)

is that ebuild a sketch or it works in fact?
Top
easy target
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Wed Jan 09, 2008 2:45 pm

  • Quote

Post by easy target » Tue Feb 19, 2008 12:38 am

DaNe wrote:is that ebuild a sketch or it works in fact?
Yes, it works and tests fine under my ~amd64.

I updated ebuild, added checks for use-flags 'doc' and 'examples' and filtered '-pipe' and '-ggdb'.

I don't know if there are other dependencies than latex for creating docs. AFAIK, cilk need threads, so maybe this ebuild should check for them.

Code: Select all

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit flag-o-matic

DESCRIPTION="Language for multithreaded parallel programming based on
ANSI C."
HOMEPAGE="http://supertech.csail.mit.edu/cilk/"
SRC_URI="http://supertech.csail.mit.edu/cilk/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc examples"

DEPEND=""
RDEPEND="doc? virtual/latex-base"

pkg_setup() {
	filter-flags "-pipe"
	filter-flags "-ggdb"
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed."
	if use doc; then
		dodoc NEWS README THANKS
		insinto /usr/share/doc/"${PF}"
		doins doc/manual.pdf
	fi

	if use examples; then
		insinto /usr/share/doc/"${PF}"/examples
		doins examples/*.cilk
		doins examples/*.c
		doins examples/*.h
	fi
}
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic