tagattie / FreeBSD-Atom

Atom port for FreeBSD
12 stars 2 forks source link

Documentation on how to build with poudriere #11

Closed ehaupt closed 5 months ago

ehaupt commented 3 years ago

Prompted by https://github.com/tagattie/FreeBSD-Atom/issues/10 I've written a short howto on how to build atom packages with poudriere. It might not be that obvious to users after it has been removed from the official ports tree.

How to build atom ide with poudriere

Description

This describes how to build FreeBSD packages of atom with poudriere. This howto assumes that you already have a working poudriere instance.

Steps

Checkout the latest atom and electron repositories:

mkdir ~/repos
cd ~/repos
git clone https://github.com/tagattie/FreeBSD-Atom
git clone https://github.com/tagattie/FreeBSD-Electron

Update your poudriere ports tree:

poudriere ports -u

Copy the the checked out version of electron6 and atom to the poudriere ports tree:

cp -Rp FreeBSD-Electron/devel/electron6 /usr/local/poudriere/ports/default/devel/
cp -Rp FreeBSD-Atom/editors/atom /usr/local/poudriere/ports/default/editors/

Since electron9 and atom has been removed from the ports tree we need to remove the entries in ports/MOVED otherwise the framework won't proceed with the build:

sed -i'' -e '/editors\/atom/d'  /usr/local/poudriere/ports/default/MOVED
sed -i'' -e '/devel\/electron/d'  /usr/local/poudriere/ports/default/MOVED

Build atom for your desired version:

poudriere bulk -j 130amd64 editors/atom
ehaupt commented 5 months ago

Closing, as this is outdated.