View previous topic :: View next topic |
Author |
Message |
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed Apr 18, 2012 2:12 pm Post subject: [HOWTO] Build a functioning qsampler [OBSOLETE] |
|
|
1/ NEED
Gentoo Portage tree gets an ebuild for qsampler.
However, it is broken since the 0.2.2 version crashes on startup when built with qt-gui > 4.5 and qt-gui-4.5 is no longer in portage tree.
Apparently LinuxSampler no longer produces official releases on tarballs but requests we directly take the source code from an svn repository.
I additionally understand from the Gentoo Dev Manual that Subversion ebuilds should not generally be added to the tree so there is just no way to suggest any ebuild update...
So... let's do this the quick & dirty mode.
2/ BUILD YOUR OWN SOURCE PACKAGE
2.0/ Install Subversion or skip to 2.1 if you already get Subversion installed on your system
Emerging with default use flags, that is : [apache2, berkdb, ctypes-python, debug, doc, +dso, emacs, extras, gnome-keyring, java, kde, nls, perl, python, ruby, sasl, vim-syntax, +webdav-neon, webdav-serf, bash-completion, java] will fit our purpose, so you can simply :
Code: | # emerge subversion |
2.1/ Check the project's repository
Under console, set your working dir according to your preferences then fire Code: | # svn co https://svn.linuxsampler.org/svn/qsampler/trunk qsampler |
This should result in a new directory entry named qsampler under which you should find the image of the repository.
2.2/ Build your source distribution
At the time of this post, latest qsampler directory revision is 2342. So let's extract this version under a new directory named qsampler-2432 Code: | # svn export qsampler qsampler-2432 |
At this stage, the configure script will be missing, no trouble, you just need to generate it : Code: | # cd qsampler-2432
# make -f Makefile.svn |
2.3/ Pack the source distribution
Using your preferred archiver, make a tarball of the qsampler-2432 directory, you can also just : Code: | # cd ..
# tar -czf qsampler-2432.tar.gz qsampler-2432 |
Then put the result in your portage distfile directory with appropriate owner & group. Assuming all these are default : Code: | # mv qsampler-2432.tar.gz /usr/portage/distfiles
# chown portage /usr/portage/distfiles/qsampler-2432.tar.gz
# chgrp portage /usr/portage/distfiles/qsampler-2432.tar.gz |
3/ ORGANIZE APPROPRIATE PORTAGE'S ENTRIES
Fortunately the existing ebuild for qsampler 0.2.2 can cope with our new source distribution, so, basically, we will just copy it to our local overlay.
Assuming it is located in /usr/local/portage, if not, simply adapt to the value of your $PORTDIR_OVERLAY
Code: | # cd /usr/local/portage |
Check if you already get a media-sound directory, if not, create it : Code: | # mkdir media-sound |
Then, assuming your Gentoo portage tree is located in /usr/portage, if not simply adapt to the value of your $PORTDIR Code: | # cp -r /usr/portage/media-sound/qsampler media-sound
# chown -R portage media-sound
# chgrp -R portage media-sound
# cd media-sound/qsampler |
Rename the ebuild : Code: | mv qsampler-0.2.2.ebuild qsampler-2432.ebuild |
If you named your tarball exactly following the instructions above, then that should suffice.
If not then edit the ebuild and adapt the SRC_URI variable accordingly.
Check miscellaneous QA thingies and create the Manifest :
That's it ! you can now and...
ENJOY !
Thanks to : steveL original idea about synfig and DaggyStyle for his comment. _________________
Last edited by aCOSwt on Wed Jul 04, 2012 10:05 am; edited 1 time in total |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Wed Jul 04, 2012 9:32 am Post subject: |
|
|
There is now an updated snapshot ebuild in the portage tree. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed Jul 04, 2012 10:04 am Post subject: |
|
|
Yes indeed and thank you for this, yngwin.
I flag this thread obsolete. _________________
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|