Re: Standalone version of Kile

Benjamin Reed <[email protected]> Thu, 11 Mar 2004 10:30:44 -0500
Newsgroups gmane.comp.kde.darwin
Organization DFT
Message-ID <[email protected]>
Kevin Walzer wrote:

> I decided to give building a standalone version of Kile another try last 
> night:
> 
> 1. Creating a Carbon bundle/app in Xcode resulted in a file that was 2 
> gigs. I know that won't work. Since I didn't know exactly what went into 
> the KDE libs and KDE support packages, I just added everything in 
> /opt/kde/libs, as well as Qt. Is there any way to get a handle on only 
> the packages in KDE libs and KDE support? When Ranger Rick a standalone 
> version of Scribus last summer, I believe the bundle he built included 
> both kdelibs and Qt, and was only about 20 megabytes.

Well, you could do an lsbom on the .bom files in /Library/Receipts/<foo> 
to get an idea of what's in each.  The way I make the binary packages 
that exist now, is by doing:

source ~/cvs/kde-darwin/tools/setup-prebinding-environment.sh
~/cvs/kde-darwin/tools/configure-kde
make
make install DESTDIR=/opt/roots/<packagename>
~/cvs/kde-darwin/tools/generateapps.pl -d /opt/roots/<packagename>
~/cvs/kde-darwin/tools/fix-prebinding.pl -d /opt/roots/<packagename>

...that way you have just your app in the /opt/roots/<packagename> 
section, all ready to tar up (or install up).

This still doesn't give you a standalone app bundle, you'd need to 
hand-build that, but it shouldn't be *too* hard, I'll see if I can 
script something up that does "package up foo with all kdelibs deps" 
sometime.

> 2. Is there any way to modify generateapps.sh so that it only builds a 
> single app? Say, by copying it into the Kile source directory? I don't 
> know Perl so I wouldn't know where to begin this on my own.

I accomplish this by doing the destroot thing, then it doesn't generate 
stuff for anything other than what's in the destroot.

> 3. How does one pick an image to be the icon for the app bundle that is 
> built by generateapps.sh?

It looks for .desktop files in /opt/kde/share/ for each app, and locates 
the closest matching .png file from the Icon field in the desktop file.

> 4. I'd love to just have a drag-and-drop app bundle of Kile for 
> distribution. If that won't work, and if I want to put together a single 
> package installer for OS X LaTex users not interested in all the other 
> KDE stuff, I'm thinking that a mkpkg installer including Ranger Rick's 
> pkg installers of Kdelibs, Qt, KDEsupport  (plus of course Kile) would 
> be the simplest approach. Or is there a better way?

At the very least, if you can give me what I need to do to build kile, I 
can add it as an app to the kde.opendarwin.org bits -- just like 
konversation or kxmleditor or whatever...


-- 
Benjamin Reed, a.k.a. RangerRick
[email protected] / http://ranger.befunk.com/
Now Playing: "Merry Go Bye Bye/Nothing" by Mr Bungle