Makepkg: How to include source-bundled 'man pages' in the package?

I'm trying to create a PKGBUILD for my own Python program.
The source code has been packaged using Python's distutils.  Now, AFAICT distutils do not help you in any intelligent way to include a man page, so I just used a MANIFEST template to add the file to the source package.
As for the PKGBUILD, I'm currently using an 'install -D -m0644' command (in the 'package' function) to copy the page from a directory under $srcdir to "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz".
However, seeing that makepkg has some built-in functions for compressing man pages, I figured that maybe it could deal with the proper placement too? My manual approach works nicely, but well, I figure the less of a hack job, the better.
Thanks in advance - this is my first program and package build so I wanna get it right :)

Thanks joyfulgirl - I guess I hadn't really thought through what kind of a deal makepkg is.
At any rate, I figured I wouldn't have been the only Pythonista dealing with this issue and starting reading other people's setup scripts and according to Mutagen's setup.py putting desktop software man pages in 'share/man/man1' under the 'installation prefix' (a local variable, usually '/usr' or '/usr/local') can be considered a POSIX universal. Don''t know if this is reliable or just one hack replacing another, but it would mean being able to let Python's setup script take care of pretty much everything.

Similar Messages

  • How to include source code in web dynpro java deployment

    Hi,
    We dont have NWDI.
    We are creating ear files out of web dynpro applications packaging them as sca files and deploying them in server.
    But the source  code is not included in ear.
    How to include source code with your ear/sca , so that when anyone downloads the sca file later, they are build the Project in the studio.
    How would they typically download? Do they require NWDI ,
    Right now we dont have NWDI in place, but we want to do is parcel the applications such that the source code should be available at a later time for download.
    This is possible with .par files , but what about web dynpro?
    Thanks,
    Deb

    If you are not using NWDI use the _comp file.

  • How to include iview from one page to another using FPM

    Dear experts
    using ECC6 NetWeaver 7
    I have followed this WIKI guide step by step.
    How to include iview from one page to another using FPM?
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=118423928
    On step 4 I couldnu2019t create an Iview based on view u201Cpersonal datau201D u2013 it was not possible.
    The view wasnu2019t there (in comprehend to the  WIKI)
    What could be the reason?
    I have full authorization on the portal.
    Thank in advance for your help.

    Please check this.
    Re: Organizational History iView
    /thread/370447 [original link is broken]
    Regards,
    Sandip

  • How can I print a Safari page without the links being printed and cover other text?

    How can I print a Safari page without the links being printed and covering other text?

    Try printing the page as PDF.
    From your Safari menu bar click File > Print > Save As PDF then print the PDF file.
    If you don't want to do it that way, reset the print system.
    Mac OS X: How to reset the printing system

  • How can I view a recto page on the right?

    This used to be automatic in old versions of Acrobat. Now that I am using Acrobat X I cannot get the view I want.  In a 2-page view, how can I view a recto page on the right and a verso page on the left? Now all I get is a recto on the left and a verso on the right! Is there a setting to view, say, a book? or some other way to get the first page to be alone on the right and the rest to be a 2-page view with pages side by side correctly?

    View > Page Display > Show Cover Page During 2-Up

  • How to put 'Continue in next page' below the table.

    Hi,
    I have an invoice where all the lines are not fitting into one page. So some of the lines are getting printed in the second page. But in this case I wanted to put a message below the first page as "continue on next page"
    Since Iam a newbie to XML/BI Publisher I kinda stuck here. Tons of thanks in advance.
    This is how I need the output
    --- PAge1 --
    heading1
    line1
    line2
    line3
    line4
    line5
    line6
    line7
    line8
    line9
    line10
    Continue on next page
    -- page 2--
    heading1
    line11
    line12
    line13
    line14
    line15
    line16
    line17
    _________

    There are so many threads for this lately,..
    Go here
    http://winrichman.blogspot.com/...
    Here is some of the thread people were desperately looking for answers :).
    how can we get "Page Continued" at footer of page.
    Re: How do I print the word "Continued" at the bottom of page in BI publisher?
    How to Display 'Continued' in second& subsequent page but not in last page?
    Re: Printing signature on footer section of every page
    Re: How to put 'Continue in next page' below the table.
    Re: How do I check the last page?
    Help needed in XML Publisher rtf file
    Re: Different value in footer
    Changing header information within a document
    Re: Invoice Page break
    Re: Footer information in very page
    Re: Check Printing
    Oops, I initially thought , there would less number of threads,
    Hope my blog helps them :)

  • Man pages in the wiki?

    Hi all,
    I think it would be handy to add man pages in the wiki so that an article could refer to it if need be. So the questions are:
    1) Has this been discussed before?
    2) What do you think of the idea?
    Cheers,
    X

    chimeric wrote:
    There's a even "nicer" resource for man pages than google, namely http://www.man.cx. Just append the program you want to read the man page for after the '/'. For example:
    http://man.cx/ls
    Maybe one of the wiki admins could add an interwikilink (eg. [[man>ls]]) if that's possible in mediawiki (not sure atm).
    Wow! That's cool, I have also noticed that you can actually add your own comments to the man pages, that's very useful.

  • How can I upload my web page to the internet?

    How can I upload  my web page to the internet. When I click on "publish" it automatically takes me to mobileme - which is no longer accepting members..

    http://financialbin.com/2011/06/13/steve-jobs-confirms-discontinuation-of-iweb-i n-icloud-transition/
    I don't think you can upload pages from iWeb anymore.
    Information about the MobileMe transition

  • How to include hyperlink in Endeca page

    I have a requirement about including hyperlink into Endeca page. I have an endeca page including external web contents, let's say the url is http://localhost:8080/web/guest/a. I have another endeca page showing orders. When user click on an order on that endeca page, it should go to http://localhost:8080/web/guest/. I just want to know how to implement this feature in Endeca. Any help is appreciated.

    For now I can click one of the items in the guided navigation and then go to another endeca page which has OA page in it. Another question for this, could I get the data for what user choose? Say user choose item1 in the guided navigation, then the OA page knows user choose this item and user does not need to enter item id to update the quantity of this item (say the filed of item id is filled automatically because OA page gets data from endeca). The reason why I want to do like this is Endeca cannot update data so I need to use OA framework to update. Does anyone know how to implement this scenario?

  • How to include Chart in Web Page not as seperate image file?

    Hi, I am using JCharts and am trying to figure out how (or if it is even possible) to create a chart and then place it in a web page. All the examples I've seen show you how to create a JPEG of the chart and then link to this image from your web page. Is it not possible to surround the JPEG chart with other HTML so that I can keep my web page logo and menu etc on the same page as the chart?
    I can't find any examples which show how to surround your images with HTML as JCharts creates a JPG file and returns that in the Http Response e.g. "ServletEncoderHelper.encodeJPEG13(axisChart, 1.0f, response);".
    My environment is Java 1.4.2, Struts and Tomcat 4.1.30.
    Is there a way of drawing charts directly into a web page rather than displaying them on a seperate page as an image file?
    many thanks in advance,
    James.

    If you understand html, you know that to display an image, you must provide a reference to the image's location within the html code (there's no way to embed the image itself, directly in the html).
    An image's reference is just an url of where the image can be loaded from. Provide an url which goes to your dynamic chart servlet and requests the appropriate chart (i.e., you may have to pass in certain parameters in the url).

  • How do I create a new page with the existing layout of the one I've already created?

    Okay, I'm extremely new to DreamWeaver, just an FYI. I've been commisioned to develop a site for a company. There will be like 10 pages total on the site. I've created the home page, and I'm now attempting to make the second one. But I don't know how I can take the basic layout I created in the home page so I can add information for the other pages later. I tried saving as template, but I had to create editable regions and those got in the way. I even tried copying all the code from the original, but then the Spry menus won't work properly. I hope I conveyed my problem correctly. Any assistance will be more than helpful.
    Thanks.

    There are basicly two methods, firstly the template method you have already tried, and secondly the "includes" method. Some people use one or the other, some people mix the two. I use only the includes method.
    The includes method can be done in several ways. The PHP language has it's own method of doing includes. That's what I ususally use. You can also use the SHTML method. With the SHTML method, the material you wish to include is put in a normal HTML file, then in the file where the include will be put, it is done like this:
    <!--#include virtual="../includes/banner.html" -->
    . . .and the pages/files must have the shtml suffix, not html. That informs the server that yo are using server script in the file.
    I don't use Spry menus (or spry anything) so I can't suggest a reason you encountered a problem with it.

  • How do I go back a page on the Ipad mini? I do not see any arrows anywhere. Also when I go to my yahoo email account and open an email I can not find how to go back and log out. This is our first Ipad and it is very different frm android. Thanks

    We just purchased our first Ipad. It is a mini with retina display 16 GB. How do I go back a page? I see no arrows to page back. Also when I log into  a yahoo email account and open an email I see now way to log out? Thank you for any help

    In Safari, (the web browser), there are specific arrows to go back and forward through website pages.
    In other Apps, it will depend on how the App is built.
    As to Yahoo Mai it depends on where you are viewing the email.  If you are using the Mail App, then you don't log out.     The Mail accounts in the Mail App are always there.
    If you are using the Yahoo App, You can Tap on the folder at the top, then on your account/name, and then on Sign Out.

  • How do I remove my iWeb pages from the Home folder so I can publish to a new host?

    I have moved my MobileMe site to a new service (GoDaddy).  The basic transfer went very smoothly.  With one tiny hitch:  the new URL text.
    IWeb places web  pages in folders, each folder being a  "site." The name of the root folder automatically becomes a "pointer" to the web site -- and part of the URL text.
    My current root folder  is named DavidChartrand -- me.  So..... when I published everything over to GoDaddy the text "DavidChartrand" was attached to my URL. 
    Instead of seeing www.davidchartrand.com in the URL bar, visitors  see:   www.davidchartrand.com.com/DavidChartrand
    GoDaddy staff says this is simply a quirk in iWeb's design.  Fine, but it's annoying.  Is there anyway I can keep using iWeb but somehow remove the root folder.....that is, remove my site pages from the root folder and and then re-publish? GoDaddy tech support swears it  has many former MobileMe/iWeb users who have done this successfully but offered had no idea how.
    David

    The way iWeb publishes its websites, in its own folder, the normal URL is http://www.domain_name.com/Site_name/Page_name.html.  This is a normal URL for any web host.
    If you want to get rid of the site name you will need to publish your website to a folder on your hard drive and upload only the contents of the website folder to your server with a 3rd party FTP client like YummyLite, Transmit or Cyberduck.  That will get rid of the site name in the URL. 
    Of course remove the existing website foldr from the server beforehand.
    I believe the folder you publish to on GoDaddy is named public_html.  You might try renaming your website to "public_html" and publish to GoDaddy.  In theory iWeb will see the website's folder already on the server and publish the website file into it. 
    It works that way with HostExcellence.com which names the home folder the same as the domain name associated with it. This tutorial explains more about it: iW16 - Using HostExcellence.com with iWeb
    OT

  • How can I use Dropbox with pages for the iPad?

    TO make a long story short, a thunderstorm fried my desktop iMac which was the computer I was sharing my Pages documents with.  I don't have an AirPrint compatible printer and I need to be able to print documents that I create in Pages.  Since it might be 6 months or more before we can replace the old computer, I would like to use DropBox to share files between my windows computers and the ones at where I volunteer.  I was told that Pages for the iPad was compatible so how can I make this work for me? 
    TIna

    A google search on "pages ipad dropbox" will give you lots of stuff.  One is
    https://discussions.apple.com/thread/3944647?start=0&tstart=0

  • How can I HIDE a web Page From the Index above?

    I sometimes would like to directly link one page to another instead of listing every single page in the INDEX. For instance, I have a "Renovations" page with two other renovation pages following.....Can this be done from page to page with Hyperlinks ONLY? Is there a way to "hide" the titles in the Index listings above each page so they don't show with the web pages that I DO WANT listed?
    G5   Mac OS X (10.4.6)  

    Welcome twincrks
    You can use Inspector, Page Tab and uncheck "Include
    Page in navigation menu", this will stop the page
    being displayed in the navigation bar at the top of
    the screen.
    You can then manually create links to your other
    pages (see www.willg4pb.com - Hyperlinks for
    creating hyperlinks). Then, again using Inspector,
    this time the Link Tab, choose to Link To: One of My
    Pages, and choose the page you wish to link to from
    the drop down list.
    Will
    AWESOME! I just knew that there was a genius out there to help me. Thank you Will! Kathy

Maybe you are looking for