/[gentoo-x86]/app-sci/qcad-parts/qcad-parts-2.0.1.2.ebuild
Gentoo

Contents of /app-sci/qcad-parts/qcad-parts-2.0.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Dec 27 21:25:27 2004 UTC (15 years ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Moving to sci-misc/qcad-parts

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/qcad-parts/qcad-parts-2.0.1.2.ebuild,v 1.6 2004/11/02 15:13:46 phosphan Exp $
4
5 MY_PN="partlibrary"
6 MY_PV="${PV}-1"
7
8 DESCRIPTION="Collection of CAD files that can be used from the library browser of QCad"
9 HOMEPAGE="http://www.ribbonsoft.com/qcad_library.html"
10 SRC_URI="http://www.ribbonsoft.com/archives/partlibrary/partlibrary-${MY_PV}.zip"
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 ppc amd64"
14 IUSE=""
15
16 DEPEND="app-arch/unzip"
17 RDEPEND=""
18
19 S=${WORKDIR}/${MY_PN}-${MY_PV}
20
21 src_unpack() {
22 einfo "Will unpack when installing"
23 }
24
25 src_compile() {
26 einfo "Nothing to compile"
27 }
28
29 src_install() {
30 mkdir -p ${D}/usr/share/${PF}
31 cd ${D}/usr/share/${PF}
32 unpack ${A}
33 mv partli*/* .
34 rmdir partlib*
35 einfo "Adjusting permissions..."
36 chown -R root:root .
37 find . -type d -not -perm -005 | while read dir; do
38 echo "Fixing directory $dir"; chmod ugo+rx $dir; done
39 find . -type f -not -perm -004 | while read file; do
40 echo "Fixing file $file"; chmod ugo+r $file; done
41 }
42
43 pkg_postinst() {
44 einfo
45 einfo "The QCad parts library was installed in"
46 einfo "/usr/share/${PF}"
47 einfo "Please set this path in QCad's preferences to access it."
48 einfo "(Edit->Application Preferences->Paths->Part Libraries)"
49 einfo
50 einfo "After restarting QCad, you can use the library by selecting"
51 einfo "View->Views->Library Browser"
52 einfo
53 }

  ViewVC Help
Powered by ViewVC 1.1.20