Gentoo Archives: gentoo-dev

From: "Gerhard W. Gruber" <sparhawk@×××.at>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] PF is null when trying to ebuild custom ebuild
Date: Fri, 09 Jan 2004 08:45:22
Message-Id: k7qsvvsa113o497jn322mjg54rd7a0cv1m@4ax.com
1 I try to build an ebuild for using wine with CVS. I looked into an older
2 version of winex-cvs and took over what I thought is needed. When I try to
3 "compile" it with this commandline
4 ebuild /usr/local/portage/app-emulation/wine-cvs/wine-cvs.ebuild digest
5 I get an error
6 !!! Error: PF is null; exiting.
7
8 I looked on the website from gentoo and I found a description of what PF
9 means, but there PF is listed as the user should only read this. Now I wonder
10 what I do wrong and how to fix this.
11
12 The ebuild looks like this:
13 ----------------------------------
14
15 # Copyright 1999-2003 Gentoo Technologies, Inc.
16 # Distributed under the terms of the GNU General Public License v2
17 # $Header: /home/cvsroot/gentoo-x86/dev-games/crystalspace-cvs/crystalspace-cvs-0.97.ebuild,v 1.8 2003/12/10 05:32:55 mr_bones_ Exp $
18
19 ECVS_USER="cvs"
20 ECVS_PASS="cvs"
21 ECVS_SERVER="cvs.winehq.com:/home/wine"
22 ECVS_MODULE="wine"
23 ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
24 S=${WORKDIR}/${ECVS_MODULE}
25
26 inherit cvs
27
28 DESCRIPTION="Windows WIN32 API emulation for running MS-Windows software natively in Linux"
29 SRC_URI=""
30 HOMEPAGE="http://www.winehq.com/"
31
32 SLOT="0"
33 LICENSE="LGPL-2"
34 KEYWORDS="~x86 ~ppc"
35
36 #DEPEND=">=media-libs/libpng-1.2.1
37
38 newdepend "sys-devel/gcc
39 sys-devel/flex
40 dev-util/yacc
41 >=media-libs/freetype-2.0.0
42 X? ( virtual/x11
43 dev-lang/tcl
44 dev-lang/tk )
45 opengl? ( virtual/opengl )
46 cups? ( net-print/cups )"
47 # !>=sys-libs/glibc-2.3.2"
48
49
50
51 WINE_PREFIX=/opt/wine
52
53 src_unpack() {
54 if ! [ -z "`perl -V:archname 2> /dev/null | grep 'thread-multi'`" ]
55 then
56 eerror "Sorry - can't build winex against threaded perl!"
57 eerror "Please remerge perl and libperl WITHOUT 'USE=threads'"
58 die "Not compatible with threaded perl"
59 fi
60 cvs_src_unpack
61 }
62
63 src_compile() {
64 ./configure --prefix=${WINE_PREFIX} || die
65 emake all || die
66 }
67
68 src_install() {
69 dodir ${WINE_PREFIX}
70 make INSTALL_DIR=${D}/${WINE_PREFIX} install || die
71 # dodir /usr/bin
72 # dosym ${WINE_PREFIX}/bin/cs-config /usr/bin/cs-config
73 # find ${D}/${WINE_PREFIX} -type f -exec chmod a+r '{}' \;
74 # find ${D}/${WINE_PREFIX} -type d -exec chmod a+rx '{}' \;
75 # chmod a+rx ${D}/${WINE_PREFIX}/{bin,lib}/*
76 # dodir /etc/env.d
77 # echo "WINE=\"${WINE_PREFIX}\"" > ${D}/etc/env.d/90crystalspace
78 }
79 --
80 Gerhard Gruber
81 Maintainer of
82 SoftICE for Linux - http://sourceforge.net/projects/pice
83 Fast application launcher - http://sourceforge.net/projects/launchmenu
84
85 --
86 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] PF is null when trying to ebuild custom ebuild Seemant Kulleen <seemant@g.o>