weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [patch #6918] Fix installation's directories.


From: anonymous
Subject: [Weechat-dev] [patch #6918] Fix installation's directories.
Date: Wed, 16 Sep 2009 22:17:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; fr-FR; rv:1.8.1.22) Gecko/20090724 SeaMonkey/1.1.17

URL:
  <http://savannah.nongnu.org/patch/?6918>

                 Summary: Fix installation's directories.
                 Project: WeeChat
            Submitted by: None
            Submitted on: mer 16 sep 2009 22:17:22 UTC
                Category: compilation
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                IRC nick: XwZ

    _______________________________________________________

Details:

First of all, when you specify the LIBDIR with cmake, the value is replaced
by the default value.
Next, the plugins' CMakeLists.txt don't use $LIBDIR but have a static path.

to fix the plugins' CMakeLists.txt, go in weechat-0.3.0 and execute the next
commands :
To fix the generals plugins :
sed -i -e 's/lib\/${PROJECT_NAME}/${LIBDIR}\/${PROJECT_NAME}/'
src/plugins/*/CMakeLists.txt

To fix the scripts languages support :
sed -i -e 's/lib\/${PROJECT_NAME}/${LIBDIR}\/${PROJECT_NAME}/'
src/plugins/scripts/{lua,perl,ruby}/CMakeLists.txt

And the python CMakeLists.txt have an other problem, the ${PROJECT_NAME} is
not used, it use a static value "weechat" so you have replace this line : 
INSTALL(TARGETS python LIBRARY DESTINATION lib/weechat/plugins)
By :
INSTALL(TARGETS python LIBRARY DESTINATION
${LIBDIR}/${PROJECT_NAME}/plugins)
in src/plugins/scripts/python/CMakeLists.txt.

Finaly to fix the overwrite problem you can download the root CMakeLists.txt.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: mer 16 sep 2009 22:17:22 UTC  Name: CMakeLists.txt  Size: 5 ko   By:
None

<http://savannah.nongnu.org/patch/download.php?file_id=18725>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6918>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]