Revision: 1387 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1387&view=re... Author: eht16 Date: 2010-05-23 10:23:15 +0000 (Sun, 23 May 2010)
Log Message: ----------- Add GeanyGenDoc plugin to the Waf build system
Modified Paths: -------------- trunk/geany-plugins/wscript
Modified: trunk/geany-plugins/wscript =================================================================== --- trunk/geany-plugins/wscript 2010-05-23 07:50:15 UTC (rev 1386) +++ trunk/geany-plugins/wscript 2010-05-23 10:23:15 UTC (rev 1387) @@ -78,6 +78,7 @@ Plugin('codenav', None, [ 'codenav/src' ]), Plugin('geanydoc', None, [ 'geanydoc/src' ]), Plugin('geanyextrasel', None, [ 'geanyextrasel/src' ]), + Plugin('geanygendoc', None, [ 'geanygendoc/src' ], [ [ 'ctpl', '0.2', True ] ]), Plugin('geanyinsertnum', None, [ 'geanyinsertnum/src' ]), Plugin('geanylatex', None, [ 'geanylatex/src']), Plugin('geanylipsum', None, [ 'geanylipsum/src']), @@ -419,6 +420,19 @@ bld.install_files('%s/geany-plugins/geanylua/work' % datadir, 'geanylua/examples/work/*.lua')
+ def build_gendoc(bld): + # install docs + docdir = '${G_PREFIX}/doc/plugins/geanygendoc/help' \ + if is_win32 else '${DOCDIR}/geanygendoc/help' + if os.path.exists('geanygendoc/docs/help/manual.html'): + bld.install_files(docdir, 'geanygendoc/docs/help/manual.html') + bld.install_files(docdir, 'geanygendoc/docs/help/manual.rst') + # install examples (Waf doesn't support installing files recursively, yet) + datadir = '${G_PREFIX}/share/' if is_win32 else '${DATADIR}' + bld.install_files('%s/geany-plugins/geanygendoc/filetypes' % datadir, \ + 'geanygendoc/data/filetypes/*.conf') + + def build_debug(bld, p, libs): bld.new_task_gen( features = 'cc cprogram', @@ -454,6 +468,9 @@ if p.name == 'geanylua': build_lua(bld, p, libs) # build additional lib for the lua plugin
+ if p.name == 'geanygendoc': + build_gendoc(bld) # install data files + if p.name == 'geanygdb': build_debug(bld, p, libs) # build additional binary for the debug plugin
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.