commit 5e438a7c6977522f0b45e1e9684f56e6e74eb159 Author: Stanisław Pitucha Date: Sat Jan 23 16:01:28 2016 +1100 [gnuradio] Enable doxygen during build Enable building documentation from doxygen, both external and included in the modules. This means standard gnuradio(-companion) package now provides proper tooltips and documentation for blocks in GUI. Also complete HTML documentation is available in the -docs package (split out because it's ~150MB). The -docs package does not need installing to get the GUI improvement since all the required elements are embedded in the python modules during build. diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 019454d..a6064f3 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: Dominik Heidler # Contributor: Jonatan Sastre pkgbase=gnuradio -pkgname=(gnuradio gnuradio-companion) +pkgname=(gnuradio gnuradio-companion gnuradio-docs) pkgver=3.7.9.1 pkgrel=1 pkgdesc="General purpose DSP and SDR toolkit. With drivers for usrp and fcd." @@ -12,12 +12,11 @@ url="http://gnuradio.org" license=('GPL') depends=('fftw' 'python2-numpy' 'cppunit' 'gsl' 'blas' 'boost-libs>=1.53' 'libusbx' 'portaudio' 'libuhd' 'zeromq') makedepends=('boost' 'cmake' 'python2-lxml' 'python2-cheetah' 'glu' 'swig' - 'pygtk' 'wxpython' 'python2-pyqwt' 'qwtplot3d') + 'pygtk' 'wxpython' 'python2-pyqwt' 'qwtplot3d' 'doxygen') install=gnuradio.install # todo # split the gui components? -# build doxygen docs? # gr-video-sdl ? # icons @@ -80,6 +79,8 @@ package_gnuradio() { install -Dm644 gnuradio-grc.desktop "$pkgdir/usr/share/applications/gnuradio-grc.desktop" cd "$srcdir/$pkgbase-$pkgver/build" make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/share/doc/gnuradio-$pkgver/xml + rm -r "$pkgdir"/usr/share/doc/gnuradio-$pkgver/html } package_gnuradio-companion() { @@ -92,6 +93,15 @@ package_gnuradio-companion() { # because more than five optdeps is too many for most people. } +package_gnuradio-docs() { + pkgdesc="HTML and XML documentation for gnuradio." + # there's no simple way to install with the current build system just the docs, so copy the + # directories directly + mkdir -p "$pkgdir/usr/share/doc/gnuradio-$pkgver" + cp -r "$srcdir/$pkgbase-$pkgver/build/docs/doxygen/xml" "$pkgdir/usr/share/doc/gnuradio-$pkgver" + cp -r "$srcdir/$pkgbase-$pkgver/build/docs/doxygen/html" "$pkgdir/usr/share/doc/gnuradio-$pkgver" +} + # options for armv6: # -Dhave_mfpu_neon=0 \ # -DCMAKE_CXX_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \