You are not logged in.

#1 2004-12-24 18:07:54

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

[development:web editor] nvu 0.60

Update 2005-01-06: As long as you prefer an older version, this one is obsolete now, refer to the new nvu-0.70 package http://bbs.archlinux.org/viewtopic.php?t=9083

Update 2005-01-06: I forgot to upload nvu.desktop, that's the problem many people may have with the package.  People who would like the icon download that file and rebuild the package.  Those who do not want to rebuild just copy it to /usr/share/applications.  Sorry!

PKGBUILD

pkgname=nvu
pkgver=0.60
pkgrel=1
pkgdesc="A WYSIWG web editor for linux similiar to Dreamweaver"
url="http://www.nvu.com/"
license=""
depends=(gtk2 libidl)
makedepends=(doxygen gawk gcc perl zip)
conflicts=()
replaces=()
backup=()
install=
source=(http://cvs.nvu.com/download/$pkgname-$pkgver-sources.tar.bz2)
md5sums=()

build() {
  cd $startdir/src/mozilla
  sed "s@#CFLAGS#@$CFLAGS@g" $startdir/mozconfig >.mozconfig
  patch -p0 < ../../nvu-0.50-dir.patch

  # Make & Install
  make -f client.mk build_all || return 1
  mkdir -p $startdir/pkg/opt/nvu $startdir/pkg/usr/share/applications $startdir/pkg/usr/bin
  make -f client.mk DESTDIR=$startdir/pkg install || die

  # put links & shortcut
  ln -sf $startdir/pkg/opt/nvu/bin/nvu $startdir/pkg/usr/bin/nvu
  cp $startdir/nvu.desktop $startdir/pkg/usr/share/applications
}

mozconfig (updated 2005/01/03) V1.1
1. Change --enable-freetype2 to --disable-freetype2 due to compilation problems with freetype 2.1.9

export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1

export MOZ_STANDALONE_COMPOSER=1
mk_add_options MOZ_STANDALONE_COMPOSER=1

#compile options
ac_add_options --with-default-mozilla-five-home=/opt/nvu/lib/Nvu
ac_add_options --prefix=/opt/nvu
ac_add_options --enable-optimize="#CFLAGS#"
ac_add_options --disable-svg
ac_add_options --without-system-mng
ac_add_options --without-system-png
ac_add_options --disable-debug
ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --disable-installer
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-tests
ac_add_options --disable-oji
ac_add_options --disable-necko-disk-cache
ac_add_options --disable-profilesharing
ac_add_options --enable-extensions=wallet,spellcheck,xmlextras,pref,universalchardet,editor/cascades,venkman,inspector
ac_add_options --enable-image-decoders=png,gif,jpeg
ac_add_options --enable-necko-protocols=http,ftp,file,jar,viewsource,res,data
ac_add_options --disable-pedantic
ac_add_options --disable-short-wchar
ac_add_options --enable-xprint
ac_add_options --enable-strip-libs
ac_add_options --enable-crypto
ac_add_options --disable-mathml
ac_add_options --with-system-zlib
ac_add_options --disable-freetype2
ac_add_options --enable-toolkit=gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft

#replace gmake for make 
ac_cv_path_MAKE=${ac_cv_path_MAKE=/usr/bin/make}

nvu.desktop (updated 2005/01/06) V1.0
My fault, sorry I forgot to upload this one

[Desktop Entry]
Name=Nvu
Comment=WYSIWYG Web Editor
Exec=/opt/nvu/bin/nvu
Icon=/opt/nvu/lib/Nvu/icons/mozicon16.xpm
Terminal=false
Type=Application
Categories=Application;Development;
Encoding=UTF-8

nvu-0.50-dir.patch Just right click this link and select Save As.

Instructions
1. Put all four files on the same dir (i.e. /var/abs/local/nvu)
2. type makepkg
3. Take a break 

Notes:
1. The line ac_cv_path_MAKE=${ac_cv_path_MAKE=/usr/bin/make} in mozconfig override the current behavior of nvu which looks for a gmake instead of make, without this hack, it will not compile. Another way of doing this is a gmake symlink in /usr/bin which of course cannot be done on this package.

2. The package is installed in /opt/nvu thus following the same path as other mozilla packages on Arch. Also a nvu symlink is placed on /usr/bin for easy execution from a shell.

3. Non KDE users should check if the Icon is placed on the correct menu.  On KDE it is accessible from Development menu.

Offline

#2 2004-12-28 21:52:34

Pierluigi
Member
Registered: 2004-04-10
Posts: 90
Website

Re: [development:web editor] nvu 0.60

darkcoder wrote:

My Christmas present for the forum.

thanks. I have just compiled it. smile

Offline

#3 2004-12-30 06:40:53

blum
Member
From: Plovdiv, Bulgaria
Registered: 2004-04-05
Posts: 77
Website

Re: [development:web editor] nvu 0.60

Hello darkcoder, and thank you for your present smile It was very nice thing to do, I was hoping for a log time that someone will help me with it.
But I got some errors about freetype2 while I was compiling with this PKGBUILD, and I found this
http://forum.nvudev.org/viewtopic.php?t … =freetype2
I'm afraid I lost the exact exception, and I don't want to have another 2 hours ot compiling just to have it again :>

It's written that freetype2 is compatible with gtk2 but it's incompatible with xft... and I just disabled freetype2 and succeeded with the compilation. It works just fine, and the fonts are OK. I'm using gcc 3.4.3.

Thank you once again, and have a nice new-year's-eve celebration. Everybody. smile


..,

Offline

#4 2005-01-03 01:33:33

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

That was very interesting, since I was able to compile it without problems. But when I made the package the freetype2 available on Current repository was 2.1.7.

Offline

#5 2005-01-03 04:02:52

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

Recompile the package with my current setup (freetype 2.1.7) before updating and it compiles without problem.  Then perform the system update which includes freetype 2.1.9, and now the package gave this error:

nsFreeType.cpp:285: error: `nsresult nsFreeType2::ImageCacheLookup' is not a static member of `class nsFreeType2'
nsFreeType.cpp:285: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:285: error: `FTC_Image_Desc' was not declared in this scope
nsFreeType.cpp:285: error: `desc' was not declared in this scope
nsFreeType.cpp:286: error: expected primary-expression before "glyphID"
nsFreeType.cpp:286: error: expected primary-expression before '*' token
nsFreeType.cpp:286: error: `glyph' was not declared in this scope
nsFreeType.cpp:287: error: initializer expression list treated as compound expression
nsFreeType.cpp:287: error: expected `,' or `;' before '{' token
nsFreeType.cpp:323: error: `FTC_Image_Cache' has not been declared
nsFreeType.cpp:324: error: ISO C++ forbids declaration of `cache' with no type
nsFreeType.cpp:392: error: `nsresult nsFreeType2::GetImageCache' is not a static member of `class nsFreeType2'
nsFreeType.cpp:392: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:392: error: `aCache' was not declared in this scope
nsFreeType.cpp:393: error: expected `,' or `;' before '{' token
nsFreeType.cpp: In member function `void nsFreeType2::ClearGlobals()':
nsFreeType.cpp:429: error: `mImageCache' undeclared (first use this function)
nsFreeType.cpp:429: error: (Each undeclared identifier is reported only once for each function it appears in.)
nsFreeType.cpp: In member function `PRBool nsFreeType2::InitLibrary()':
nsFreeType.cpp:668: error: `mImageCache' undeclared (first use this function)
make[5]: *** [nsFreeType.o] Error 1
make[5]: Leaving directory `/var/abs/local/nvu/src/mozilla/gfx/src/freetype'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/var/abs/local/nvu/src/mozilla/gfx/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/var/abs/local/nvu/src/mozilla/gfx'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/var/abs/local/nvu/src/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/abs/local/nvu/src/mozilla'
make: *** [build] Error 2
==> ERROR: Build Failed.  Aborting...

Offline

#6 2005-01-03 05:33:19

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

Anyone with Gnome can tell me if an icon is created on a menu?

Offline

#7 2005-01-03 08:10:14

blum
Member
From: Plovdiv, Bulgaria
Registered: 2004-04-05
Posts: 77
Website

Re: [development:web editor] nvu 0.60

..not on mine.
I just had to comment:

# put links & shortcut
  ln -sf $startdir/pkg/opt/nvu/bin/nvu $startdir/pkg/usr/bin/nvu
  cp $startdir/nvu.desktop $startdir/pkg/usr/share/applications


..,

Offline

#8 2005-01-05 16:33:53

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

blum wrote:

..not on mine.

You mean the package do not create an icon or do not compile at all.

Offline

#9 2005-01-05 16:37:48

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

darkcoder wrote:
blum wrote:

..not on mine.

You mean the package do not create an icon or do not compile at all.

And check commenting only the last one

cp $startdir/nvu.desktop $startdir/pkg/usr/share/applications

since the other line only creates a shortcut.  Anyway I will take a look to the package.

Offline

#10 2005-01-06 07:30:52

blum
Member
From: Plovdiv, Bulgaria
Registered: 2004-04-05
Posts: 77
Website

Re: [development:web editor] nvu 0.60

I mean it just doesn't create the icons... it quits and returns error for missing location. But the application is compiled and works well without the icons too. :>


..,

Offline

#11 2005-01-06 20:05:57

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

can you post the error message?

I´m working right now with nvu 0.70 and would like to iron this out.

Offline

#12 2005-01-06 20:24:56

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

Oopps, my fault I see what's wrong... forgot a file.  :?

The file I forgot is nvu.desktop (responsible for the icon).  That made the missing file error and the lack of icon on the menu.

Offline

#13 2005-01-06 22:31:47

blum
Member
From: Plovdiv, Bulgaria
Registered: 2004-04-05
Posts: 77
Website

Re: [development:web editor] nvu 0.60

smile
Can you post a PKGBUILD for nvu 0.70 too? smile thanx in advance, and good luck.


..,

Offline

#14 2005-01-07 00:07:33

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [development:web editor] nvu 0.60

New version can be found here

Offline

Board footer

Powered by FluxBB