Create a .bep file for HaikuPorter to build hqx Haiku
Status: Closed Time to complete: 72 hrs Mentors: Barrett Tags:

This tasks requires creating a .bep file to allow Haikuporter to build from source code the listed package.

You will need a working installation of Haiku, this could be on real hardware or in a VM, and haikuporter which can be installed by following the install instructions at HaikuPorts

Some knowledge of C, C++ may or may not be required in order to complete this task. Knowledge of the GNU autotools and/or cmake may also be helpful. The package may or may not require some patching to get it to work on Haiku. For these cases don't be afraid to ask for help. Many compile issues can be figured out by reading through the various wiki pages at HaikuPorts. Also google (or other web search engine) may be of help in finding solutions to build issues that you may run into, irc channel #haiku on freenode might also be of help. Be sure to follow the correct format for creating your .bep file, including the license and copyright entries.

Links:

http://ports.haiku-files.org/ticket/485

http://code.google.com/p/hqx/

Uploaded Work
File name/URL File size Date submitted
http://pastebin.com/Sd7h9tqP n/a December 09 2012 02:52 UTC
hqx-1.1.bep 677 bytes December 09 2012 21:14 UTC
Comments
Zbaker1398 on December 8 2012 18:38 UTC Task Claimed

I would like to work on this task.

Scott McCreary on December 8 2012 18:39 UTC Task Assigned

This task has been assigned to Zbaker1398. You have 72 hours to complete this task, good luck!

Zbaker1398 on December 8 2012 18:39 UTC Some direction Please

Hi! I'd love to help out with this task but im afraid i don't really know how to go about it. Ive never used a .bep file or anything but i do have experience with haiku, and with C. Could you give me some general steps? THank you and I can't wait to begin!

Scott McCreary on December 8 2012 18:48 UTC haikuporter

First step since you already know your way around haiku is to open a terminal, from there you will install haikuporter.  On the haikuports web site front page is a one line command that should trigger the install for you.  Once it's installed you can use it to build packages.  The various packages are in the haikuports tree in /boot/common/develop/haikuports.  They are ordered much like the ones found at gentoo-portage.com


Try haikuporter out and watch it build a small package such as ctags.


haikuporter -c -d ctags


you'll notice it just starts running, this is becasue there is only one version of ctags, had there been more than one haikuporter would have shown the versions available, in which case you'd then pick the one you wanted to build.  Play around with it a bit and then try taking on the task of making a bep file yourself.  There's a few wiki pages on the haikuports site explainig their format.


If you have any questions don't be afraid to ask, here or on irc #haiku, as there's many mentors who hang out there, most have some knowledge of bep files.


 


 

Zbaker1398 on December 9 2012 02:55 UTC Check it out, but i havent tested it!

Hi, thanks for your comment! Ive been slowly working on it (I know it dosen't look like much but ive never written a .bep file before) and ive posted it. Now i want to test it but i don't know how. People have told me to find where the gentoo file is and then add that to haikuports? Sorry but i have no experience with gentoo and little with haiku ports so if you could please help me again with this part it would be awesome. Thanks again!

Richie Nyhus on December 9 2012 05:10 UTC Haiku porter and gentoo

Both HaikuPorts and Gentoo-portage use the same nomenclature for software categories and other information. 


 


However I don't think HQX is on Gentoo-portage.

Zbaker1398 on December 9 2012 16:44 UTC Now what

Ok, so if it is not on the Gentoo-portage how would i go about testing it? Do i make a new folder that contains the .bep along with other files? I just don't know what to do from this point. Thank you for your response though

Zbaker1398 on December 9 2012 21:14 UTC Ready for review

The work on this task is ready to be reviewed.

Zbaker1398 on December 10 2012 02:51 UTC Done!

alright, I finished the task! It is the second uPload, the actual file. Thanks!

Zbaker1398 on December 10 2012 20:42 UTC thank you, help though?

Scott,


You have been an awesome help to me and I finnaly finished it! Now though, I want my task to be reviewed and I have yet too see Barrett (mentor) comment on this. Is there anyway you could get him/her or another mentor to review my work before my dedline is passed? Thank you so much!

Barrett on December 10 2012 21:32 UTC Task Closed

Congratulations, this task has been completed successfully.

Scott McCreary on December 18 2012 00:33 UTC applied in r2169

run haikuporter -g


to update your ports tree to see it.  I cleaned up the formatting a bit in r2170.  The setgcc gcc4 text I copy / pasted from transmission-2.73.bep


 


http://ports.haiku-files.org/changeset/2169


http://ports.haiku-files.org/changeset/2170