Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Draftsight cad package and KDE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Thu Jul 07, 2016 3:32 am    Post subject: Draftsight cad package and KDE Reply with quote

The following is the installation of Draftsight into KDE plasma 5 using info from fitzcarraldoblog, betagarden's overlay and other Gentoo info.
I used a local overlay to help with ebuild and process changes to get the setup I wanted.
I like this cad package since it works very similar to Autocad.

Reference:
https://wiki.gentoo.org/wiki/Overlay/Local_overlay
http://www.3ds.com/products-services/draftsight-cad-software/free-download/
https://fitzcarraldoblog.wordpress.com/2015/08/08/installing-the-draftsight-free-2d-cad-application-in-gentoo-linux/
https://fitzcarraldoblog.wordpress.com/2016/03/13/installing-draftsight-2016-pre-release-in-gentoo-linux/
https://gpo.zugaina.org/media-gfx/draftsight-bin/RDep

1. Add overlay:
Code:
layman -a betagarden

2. Create overlay:
Code:
mkdir -p /usr/local/portage/{metadata,profiles} && echo 'youroverlay' > /usr/local/portage/profiles/repo_name && echo 'masters = gentoo' > /usr/local/portage/metadata/layout.conf && chown -R portage:portage /usr/local/portage

3. Setup local overlay sync.
Code:
/etc/portage/repos.conf/local.conf
[youroverlay]
location = /usr/local/portage
masters = gentoo
auto-sync = no

4. Create a directory for the ebuild.
Code:
mkdir -p /usr/local/portage/media-gfx/draftsight-bin

5. Copy the modified ebuild to the new local overlay. (****copy the files folder****)
Code:
cp /var/lib/layman/betagarden/media-gfx/draftsight-bin/draftsight-bin-1.6.1_beta.ebuild /usr/local/portage/media-gfx/draftsight-bin/draftsight-bin-1.7.0_beta.ebuild
cp -vr /var/lib/layman/betagarden/media-gfx/draftsight-bin/files /usr/local/portage/media-gfx/draftsight-bin/files
chown -R portage:portage /usr/local/portage

6. Download deb file and copy to /usr/portage/distfiles:
Code:
cp /home/username/Downloads/draftSight.deb /usr/portage/distfiles/draftsight-1.7.0_beta.deb

7. Create manifest.
Code:
pushd /usr/local/portage/media-gfx/draftsight-bin
cd /usr/local/portage/media-gfx/draftsight-bin
repoman manifest
popd

or
Code:
pushd /usr/local/portage/media-gfx/draftsight-bin && cd /usr/local/portage/media-gfx/draftsight-bin && repoman manifest && popd

8. Add the following to package.accept_keywords:
Code:
media-gfx/draftsight-bin ~amd64

9. Install package.
Code:
emerge -av media-gfx/draftsight-bin

10. Install package: libpng-1.2.56 even though ver libpng-1.6.19 is already installed. Will error if not installed "error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory".
Code:
emerge -av =media-libs/libpng-1.2.56


Ebuild changes to use QT5:
Code:
-  dev-qt/qtcore:4
+  dev-qt/qtcore:5
-  dev-qt/qtdbus:4
+  dev-qt/qtdbus:5
-  dev-qt/qtgui:4
+  dev-qt/qtgui:5
-  dev-qt/qtopengl:4
+  dev-qt/qtopengl:5
-  dev-qt/qtsql:4
+  dev-qt/qtsql:5
-  dev-qt/qtwebkit:4
+  dev-qt/qtwebkit:5
-  dev-qt/qtsvg:4
+  dev-qt/qtsvg:5
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Mon Aug 08, 2016 4:13 pm    Post subject: Reply with quote

The following step is no longer needed using Draftsight version 2016 SP2 (version 2016 SP1 was used in the initial installation):

10. Install package: libpng-1.2.56 even though ver libpng-1.6.19 is already installed. Will error if not installed "error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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