Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 68261
Collapse All | Expand All

(-)/usr/portage/net-www/mozilla-firefox/mozilla-firefox-1.0_pre-r2.ebuild (-1 / +61 lines)
Lines 15-21 Link Here
15
KEYWORDS="~alpha amd64 ia64 ppc sparc x86"
15
KEYWORDS="~alpha amd64 ia64 ppc sparc x86"
16
SLOT="0"
16
SLOT="0"
17
LICENSE="MPL-1.1 | NPL-1.1"
17
LICENSE="MPL-1.1 | NPL-1.1"
18
IUSE="java gtk2 ipv6 moznoxft truetype xinerama"
18
IUSE="java gtk2 ipv6 moznoxft truetype xinerama ssl"
19
19
20
RDEPEND="virtual/x11
20
RDEPEND="virtual/x11
21
	!moznoxft? ( virtual/xft )
21
	!moznoxft? ( virtual/xft )
Lines 87-92 Link Here
87
	edit_makefiles
87
	edit_makefiles
88
88
89
	emake MOZ_PHOENIX=1 || die
89
	emake MOZ_PHOENIX=1 || die
90
91
    ####################################
92
    #   
93
    #  Build Firefox NSS
94
    #   
95
    ####################################
96
        
97
    # Build the NSS/SSL support
98
    if use ssl; then
99
        einfo "Building Firefox NSS..."
100
101
        # Fix #include problem
102
        cd ${S}/security/coreconf || die "cd coreconf failed"
103
        echo 'INCLUDES += -I$(DIST)/include/nspr -I$(DIST)/include/dbm' >>headers.mk
104
        emake -j1 || die "make security headers failed"
105
    
106
        cd ${S}/security/nss || die "cd nss failed"
107
        emake -j1 moz_import || die "make moz_import failed"
108
        emake -j1 || die "make nss failed"
109
    fi
90
}
110
}
91
111
92
src_install() {
112
src_install() {
Lines 101-106 Link Here
101
	#fix permissions
121
	#fix permissions
102
	chown -R root:root ${D}/usr/lib/MozillaFirefox
122
	chown -R root:root ${D}/usr/lib/MozillaFirefox
103
123
124
    einfo "Installing includes and idl files..."
125
    # Copy the include and idl files
126
    dodir /usr/lib/MozillaFirefox/include/idl /usr/include
127
    cd ${S}/dist
128
    cp -LfR include/* ${D}/usr/lib/MozillaFirefox/include
129
    cp -LfR idl/* ${D}/usr/lib/MozillaFirefox/include/idl
130
    dosym /usr/lib/MozillaFirefox/include /usr/include/mozilla
131
132
    # Install the development tools in /usr
133
    dodir /usr/bin
134
    mv ${D}/usr/lib/MozillaFirefox/{xpcshell,xpidl,xpt_dump,xpt_link} ${D}/usr/bin
135
136
    # Install the NSS/SSL libs, headers and tools
137
    if use ssl; then
138
        einfo "Installing Firefox NSS..."
139
        # Install the headers ('make install' do not work for headers ...)
140
        insinto /usr/lib/MozillaFirefox/include/nss
141
        [ -d ${S}/dist/public/nss ] && doins ${S}/dist/public/nss/*.h
142
        [ -d ${S}/dist/public/seccmd ] && doins ${S}/dist/public/seccmd/*.h
143
        [ -d ${S}/dist/public/security ] && doins ${S}/dist/public/security/*.h
144
        # These come with zlib ...
145
        rm -f ${D}/usr/lib/MozillaFirefox/include/nss/{zconf.h,zlib.h}
146
147
        cd ${S}/security/nss
148
149
        mkdir -p ${WORKDIR}/nss/{bin,lib}
150
        export SOURCE_BIN_DIR=${WORKDIR}/nss/bin
151
        export SOURCE_LIB_DIR=${WORKDIR}/nss/lib
152
153
        make install || die
154
        # Gets installed as symbolic links ...
155
        cp -Lf ${WORKDIR}/nss/bin/* ${D}/usr/bin
156
        cp -Lf ${WORKDIR}/nss/lib/* ${D}/usr/lib/MozillaFirefox
157
158
        # Need to unset these incase we want to rebuild, else the build
159
        # gets newked.
160
        unset SOURCE_LIB_DIR
161
        unset SOURCE_BIN_DIR
162
    fi
163
104
	# Plugin path setup (rescuing the existent plugins)
164
	# Plugin path setup (rescuing the existent plugins)
105
	src_mv_plugins /usr/lib/MozillaFirefox/plugins
165
	src_mv_plugins /usr/lib/MozillaFirefox/plugins
106
166
(-) (+11 lines)
Added Link Here
1
prefix=/usr
2
exec_prefix=/usr
3
libdir=${exec_prefix}/lib/MozillaFirefox
4
includedir=${prefix}/include/mozilla/nspr
5
6
Name: mozilla-nspr
7
Description: Mozilla NSPR
8
Version: 1.0
9
Requires: 
10
Libs: -L${libdir}
11
Cflags: -I${includedir}
(-) (+11 lines)
Added Link Here
1
prefix=/usr
2
exec_prefix=/usr
3
libdir=${exec_prefix}/lib/MozillaFirefox
4
includedir=${prefix}/include/mozilla/nss
5
6
Name: mozilla-nss
7
Description: Mozilla NSS
8
Version: 1.0
9
Requires: 
10
Libs: -L${libdir}
11
Cflags: -I${includedir}
(-) (+11 lines)
Added Link Here
1
prefix=/usr
2
exec_prefix=/usr
3
libdir=${exec_prefix}/lib/MozillaFirefox
4
includedir=${prefix}/include/mozilla/xpcom
5
6
Name: mozilla-xpcom
7
Description: Mozilla XPCOM
8
Version: 1.0
9
Requires: 
10
Libs: -L${libdir}
11
Cflags: -I${includedir}

Return to bug 68261